0
Fork 0
mirror of https://codeberg.org/ziglang/zig synced 2026-11-18 07:05:05 +00:00
zig/std
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
..
atomic rename std lib files to new convention 2019-03-02 16:46:04 -05:00
build rename std lib files to new convention 2019-03-02 16:46:04 -05:00
c rename std lib files to new convention 2019-03-02 16:46:04 -05:00
crypto rename std lib files to new convention 2019-03-02 16:46:04 -05:00
debug breaking changes to std.mem.Allocator interface API 2019-03-15 17:57:21 -04:00
event fixed broken casts in std 2019-03-31 16:47:34 -05:00
fmt rename std lib files to new convention 2019-03-02 16:46:04 -05:00
hash rename std lib files to new convention 2019-03-02 16:46:04 -05:00
io rename std lib files to new convention 2019-03-02 16:46:04 -05:00
math std.mulWide() whose return is twice as wide 2019-03-28 15:51:10 -04:00
meta rename std lib files to new convention 2019-03-02 16:46:04 -05:00
os fix thread local variables for non- position independent code 2019-04-04 01:08:26 -04:00
rand rename std lib files to new convention 2019-03-02 16:46:04 -05:00
special fix thread local variables for non- position independent code 2019-04-04 01:08:26 -04:00
valgrind remove the valgrind integration with std.mem.Allocator 2019-03-11 13:34:51 -04:00
zig zig fmt: Allow one-line for loops 2019-04-01 11:31:00 -04:00
array_list.zig breaking changes to std.mem.Allocator interface API 2019-03-15 17:57:21 -04:00
ascii.zig fix std.ascii type error and inverted logic 2019-03-29 12:18:42 -04:00
atomic.zig rename std lib files to new convention 2019-03-02 16:46:04 -05:00
base64.zig rename std lib files to new convention 2019-03-02 16:46:04 -05:00
buf_map.zig rename std lib files to new convention 2019-03-02 16:46:04 -05:00
buf_set.zig rename std lib files to new convention 2019-03-02 16:46:04 -05:00
buffer.zig breaking changes to std.mem.Allocator interface API 2019-03-15 17:57:21 -04:00
build.zig handle LibExeObjStep.disable_gen_h 2019-04-03 18:31:25 -04:00
c.zig munmap allows address 0 2019-03-25 16:04:25 -04:00
coff.zig rename std lib files to new convention 2019-03-02 16:46:04 -05:00
crypto.zig rename std lib files to new convention 2019-03-02 16:46:04 -05:00
cstr.zig rename std lib files to new convention 2019-03-02 16:46:04 -05:00
debug.zig print a message instead of returning an error when debug info comes from a source file not found (for example compiled on another computer) 2019-03-16 15:34:14 +01:00
dwarf.zig self-hosted: create tmp dir for .o files and emit .o file for fn 2018-07-16 20:52:50 -04:00
dynamic_library.zig rename std lib files to new convention 2019-03-02 16:46:04 -05:00
elf.zig rename std lib files to new convention 2019-03-02 16:46:04 -05:00
event.zig update std lib API for I/O 2018-09-30 17:28:35 -04:00
fmt.zig fixed broken casts in std 2019-03-31 16:47:34 -05:00
hash.zig rename std lib files to new convention 2019-03-02 16:46:04 -05:00
hash_map.zig introduce the enum literal type 2019-03-24 00:44:18 -04:00
heap.zig fix regressions on Windows from previous commit 2019-03-15 18:57:07 -04:00
io.zig Changes as suggested by andrewrk 2019-04-03 20:05:24 +00:00
io_test.zig (De)serializer now uses enum instead of bool to determine packing mode (byte/bit). 2019-04-03 15:47:46 +00:00
json.zig rename std lib files to new convention 2019-03-02 16:46:04 -05:00
json_test.zig rename std lib files to new convention 2019-03-02 16:46:04 -05:00
lazy_init.zig rename std lib files to new convention 2019-03-02 16:46:04 -05:00
linked_list.zig rename std lib files to new convention 2019-03-02 16:46:04 -05:00
macho.zig New Zig formal grammar (#1685) 2018-11-13 05:08:37 -08:00
math.zig fix tests for math.mulWide 2019-03-29 12:17:48 -04:00
mem.zig breaking changes to std.mem.Allocator interface API 2019-03-15 17:57:21 -04:00
meta.zig breaking: fix @typeInfo handling of global error set type 2019-03-14 11:57:56 -04:00
mutex.zig rename std lib files to new convention 2019-03-02 16:46:04 -05:00
net.zig rename std lib files to new convention 2019-03-02 16:46:04 -05:00
os.zig fix thread local variables for non- position independent code 2019-04-04 01:08:26 -04:00
pdb.zig rename std lib files to new convention 2019-03-02 16:46:04 -05:00
priority_queue.zig breaking changes to std.mem.Allocator interface API 2019-03-15 17:57:21 -04:00
rand.zig rename std lib files to new convention 2019-03-02 16:46:04 -05:00
rb.zig rename std lib files to new convention 2019-03-02 16:46:04 -05:00
segmented_list.zig breaking changes to std.mem.Allocator interface API 2019-03-15 17:57:21 -04:00
sort.zig rename std lib files to new convention 2019-03-02 16:46:04 -05:00
spinlock.zig rename std lib files to new convention 2019-03-02 16:46:04 -05:00
statically_initialized_mutex.zig rename std lib files to new convention 2019-03-02 16:46:04 -05:00
std.zig add std.ascii to std.std test "std" 2019-03-29 12:18:42 -04:00
testing.zig introduce the enum literal type 2019-03-24 00:44:18 -04:00
unicode.zig rename std lib files to new convention 2019-03-02 16:46:04 -05:00
valgrind.zig remove the valgrind integration with std.mem.Allocator 2019-03-11 13:34:51 -04:00
zig.zig rename std lib files to new convention 2019-03-02 16:46:04 -05:00