# add stack protector safety when linking libc · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/a32b5929ccf8cbf79396d8924097a1a911985dac)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: a32b5929ccf8cbf79396d8924097a1a911985dac

Requested commit: a32b5929ccf8cbf79396d8924097a1a911985dac

Commit: a32b5929ccf8cbf79396d8924097a1a911985dac

Tree: c45c7413d1fb6eab9ba102f3a0b7d48df1738164

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
add stack protector safety when linking libc

 * introduce zigrt file. it contains only weak symbols so that
   multiple instances can be merged. it contains __zig_panic
   so that multiple .o files can call the same panic function.
 * remove `@setFnVisible` builtin and add @setGlobalLinkage builtin
   which is more powerful
 * add `@panic` builtin function.
 * fix collision of symbols with extern prototypes and internal
   function names
 * add stack protector safety when linking against libc. To add
   the safety mechanism without libc requires implementing
   Thread Local Storage. See #276

```

## Parents

- [8aeea72654b2efbd068abe207b42170c4d27ee03](https://git.cafe/gitcafe/zig/commit/8aeea72654b2efbd068abe207b42170c4d27ee03?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/a32b5929ccf8cbf79396d8924097a1a911985dac?format=markdown)
