diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2021-12-08 22:32:31 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2021-12-08 22:32:31 -0700 |
| commit | 808b9239a3f5d32ffb5207ce48ef417e56a80720 (patch) | |
| tree | bacf3eb2cb68413a7715c920466a62f8093f10f5 /lib/std | |
| parent | 83a668195526df745362b1174bfd643a0cdfb128 (diff) | |
| download | zig-808b9239a3f5d32ffb5207ce48ef417e56a80720.tar.gz zig-808b9239a3f5d32ffb5207ce48ef417e56a80720.zip | |
improve musl dynamic stubs file libc.s
tools/gen_stubs.zig now cuts out the middle man and operates directly on
the libc.so ELF file. it outputs accurate .size directives for objects.
std.elf gains an STV enum.
Diffstat (limited to 'lib/std')
| -rw-r--r-- | lib/std/elf.zig | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/std/elf.zig b/lib/std/elf.zig index 52d03c6c01..2d598d0495 100644 --- a/lib/std/elf.zig +++ b/lib/std/elf.zig @@ -1688,3 +1688,10 @@ pub const R_X86_64_GOTPCRELX = 41; /// Load from 32 bit signed PC relative offset to GOT entry with REX prefix, relaxable pub const R_X86_64_REX_GOTPCRELX = 42; pub const R_X86_64_NUM = 43; + +pub const STV = enum(u2) { + DEFAULT = 0, + INTERNAL = 1, + HIDDEN = 2, + PROTECTED = 3, +}; |
