Skip to content

Commit d837569

Browse files
committed
elf: add a couple missing special section indexes SHN_
1 parent b58d8aa commit d837569

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

lib/std/elf.zig

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1591,3 +1591,13 @@ pub const PF_MASKOS = 0x0ff00000;
15911591

15921592
/// Bits for processor-specific semantics.
15931593
pub const PF_MASKPROC = 0xf0000000;
1594+
1595+
// Special section indexes used in Elf{32,64}_Sym.
1596+
pub const SHN_UNDEF = 0;
1597+
pub const SHN_LORESERVE = 0xff00;
1598+
pub const SHN_LOPROC = 0xff00;
1599+
pub const SHN_HIPROC = 0xff1f;
1600+
pub const SHN_LIVEPATCH = 0xff20;
1601+
pub const SHN_ABS = 0xfff1;
1602+
pub const SHN_COMMON = 0xfff2;
1603+
pub const SHN_HIRESERVE = 0xffff;

0 commit comments

Comments
 (0)