diff options
| author | aokblast <aokblast@FreeBSD.org> | 2025-10-31 17:18:28 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-10-31 09:18:28 +0000 |
| commit | 2ccfc5176dd84942841dd2a41d2064906d6d0010 (patch) | |
| tree | bfc73237187dd709af4b11db54348a69e86606bc /clang/lib/Basic/SourceManager.cpp | |
| parent | 215aca4432fc47d71f1d5e6fdbe2ed342bb3dea6 (diff) | |
| download | llvm-2ccfc5176dd84942841dd2a41d2064906d6d0010.zip llvm-2ccfc5176dd84942841dd2a41d2064906d6d0010.tar.gz llvm-2ccfc5176dd84942841dd2a41d2064906d6d0010.tar.bz2 | |
[Object,ELF] Implement PN_XNUM extension for program headers (#162288)
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.
Diffstat (limited to 'clang/lib/Basic/SourceManager.cpp')
0 files changed, 0 insertions, 0 deletions
