authorgravatar for kubkon@jakubkonka.comJakub Konka <kubkon@jakubkonka.com> 2023-05-07 09:05:18+02:00
committergravatar for kubkon@jakubkonka.comJakub Konka <kubkon@jakubkonka.com> 2023-05-07 09:05:18+02:00
log66ff7d9161d5152589341563990d364754238fbf
treed3fe906e7adf88299875a7675c395265ab11592d
parentd71a43ec2c28a53a3e1d9bcb538707eca00a6fc0

elf: add more missing defs for SHT_* and SHF_*


1 files changed, 7 insertions(+), 0 deletions(-)

lib/std/elf.zig+7
...@@ -300,10 +300,14 @@ pub const SHT_LOOS = 0x60000000;...@@ -300,10 +300,14 @@ pub const SHT_LOOS = 0x60000000;
300pub const SHT_HIOS = 0x6fffffff;300pub const SHT_HIOS = 0x6fffffff;
301/// Start of processor-specific301/// Start of processor-specific
302pub const SHT_LOPROC = 0x70000000;302pub const SHT_LOPROC = 0x70000000;
303/// Unwind information
304pub const SHT_X86_64_UNWIND = 0x70000001;
303/// End of processor-specific305/// End of processor-specific
304pub const SHT_HIPROC = 0x7fffffff;306pub const SHT_HIPROC = 0x7fffffff;
305/// Start of application-specific307/// Start of application-specific
306pub const SHT_LOUSER = 0x80000000;308pub const SHT_LOUSER = 0x80000000;
309/// LLVM address-significance table
310pub const SHT_LLVM_ADDRSIG = 0xfff4c03;
307/// End of application-specific311/// End of application-specific
308pub const SHT_HIUSER = 0xffffffff;312pub const SHT_HIUSER = 0xffffffff;
309313
...@@ -1632,6 +1636,9 @@ pub const SHF_TLS = 0x400;...@@ -1632,6 +1636,9 @@ pub const SHF_TLS = 0x400;
1632/// Identifies a section containing compressed data.1636/// Identifies a section containing compressed data.
1633pub const SHF_COMPRESSED = 0x800;1637pub const SHF_COMPRESSED = 0x800;
16341638
1639/// Not to be GCed by the linker
1640pub const SHF_GNU_RETAIN = 0x200000;
1641
1635/// This section is excluded from the final executable or shared library.1642/// This section is excluded from the final executable or shared library.
1636pub const SHF_EXCLUDE = 0x80000000;1643pub const SHF_EXCLUDE = 0x80000000;
16371644