llvm-project
cb480961 - [Object,ELF] Implement PN_XNUM extension for program headers

Commit
97 days ago
[Object,ELF] Implement PN_XNUM extension for program headers In ELF file, there is a possible extended header for those phnum, shnum, and shstrndx larger than the maximum of 16 bits. This extended header use section 0 to record these fields in 32 bits. We implment this feature so that programs rely on ELFFile::program_headers() can get the correct number of segments. Also, the consumers don't have to check the section 0 themselve, insteead, they can use the getPhNum() as an alternative.
Author
Parents
Loading