From 66ff7d9161d5152589341563990d364754238fbf Mon Sep 17 00:00:00 2001 From: Jakub Konka Date: Sun, 7 May 2023 09:05:18 +0200 Subject: [PATCH] elf: add more missing defs for SHT_* and SHF_* --- lib/std/elf.zig | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/std/elf.zig b/lib/std/elf.zig index e2cad5640e1a15a36c5fac6494970328021f8a53..46a5dd2f39e0244195dd0483d73642caeb115ffb 100644 --- a/lib/std/elf.zig +++ b/lib/std/elf.zig @@ -300,10 +300,14 @@ pub const SHT_LOOS = 0x60000000; pub const SHT_HIOS = 0x6fffffff; /// Start of processor-specific pub const SHT_LOPROC = 0x70000000; +/// Unwind information +pub const SHT_X86_64_UNWIND = 0x70000001; /// End of processor-specific pub const SHT_HIPROC = 0x7fffffff; /// Start of application-specific pub const SHT_LOUSER = 0x80000000; +/// LLVM address-significance table +pub const SHT_LLVM_ADDRSIG = 0xfff4c03; /// End of application-specific pub const SHT_HIUSER = 0xffffffff; @@ -1632,6 +1636,9 @@ pub const SHF_TLS = 0x400; /// Identifies a section containing compressed data. pub const SHF_COMPRESSED = 0x800; +/// Not to be GCed by the linker +pub const SHF_GNU_RETAIN = 0x200000; + /// This section is excluded from the final executable or shared library. pub const SHF_EXCLUDE = 0x80000000; -- 2.54.0