0
Fork 0
mirror of https://codeberg.org/ziglang/zig synced 2026-11-18 07:05:05 +00:00
zig/test
Andrew Kelley e4d595a8ba
fix thread local variables for non- position independent code
This fixes comes thanks to Rich Felker from the musl libc project,
who gave me this crucial information:

"to satisfy the abi, your init code has to write the same value
to that memory location as the value passed to the [arch_prctl]
syscall"

This commit also changes the rules for when to build statically
by default. When building objects and static libraries, position
independent code is disabled if no libraries will be dynamically
linked and the target does not require position independent code.

closes #2063
History 2019-04-04 01:08:26 -04:00
..
stage1 fix thread local variables for non- position independent code 2019-04-04 01:08:26 -04:00
stage2 fix race conditions in self-hosted compiler; add test 2018-07-24 21:28:54 -04:00
standalone zig build: do a better job of detecting system paths 2019-03-11 15:22:05 -04:00
assemble_and_link.zig use * for pointer type instead of & 2018-05-31 17:28:07 -04:00
build_examples.zig c_abi: activate tests on windows 2019-03-19 22:41:27 +01:00
cli.zig Merge remote-tracking branch 'origin/master' into llvm8 2019-03-10 13:48:06 -04:00
compare_output.zig remove octal and hex floats from the language 2019-03-23 14:04:52 -04:00
compile_errors.zig added error for implicit cast from *const T to *[1]T. credit: @kristate 2019-03-31 16:47:34 -05:00
gen_h.zig New Zig formal grammar (#1685) 2018-11-13 05:08:37 -08:00
runtime_safety.zig implement allowzero pointer attribute 2019-03-25 12:55:45 -04:00
tests.zig fix translate-c regression 2019-03-18 20:09:27 -04:00
translate_c.zig Merge pull request #2069 from ziglang/glibc-assert-translation 2019-03-18 14:43:17 -04:00