feat(kernel/elf): add OS-specific segment types and GNU properties

Signed-off-by: EnderIce2 <enderice2@protonmail.com>
This commit is contained in:
2025-03-27 02:09:00 +00:00
parent a7f754c5e8
commit 4cc058ab42
2 changed files with 8 additions and 1 deletions

View File

@ -241,8 +241,14 @@ enum SegmentTypes
PT_SHLIB = 5,
PT_PHDR = 6,
PT_TLS = 7,
PT_LOOS = 0x60000000, /* OS-specific */
PT_HIOS = 0x6fffffff, /* OS-specific */
PT_LOPROC = 0x70000000,
PT_HIPROC = 0x7fffffff,
PT_GNU_EH_FRAME = (PT_LOOS + 0x474e550),
PT_GNU_STACK = (PT_LOOS + 0x474e551),
PT_GNU_RELRO = (PT_LOOS + 0x474e552),
PT_GNU_PROPERTY = (PT_LOOS + 0x474e553)
};
enum DynamicArrayTags