[lld] [llvm] [Object][ELF] Support extended header for Object Parser in ELF (PR #162288)
James Henderson via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 8 00:38:27 PDT 2025
================
@@ -278,9 +278,17 @@ class ELFFile {
std::vector<Elf_Shdr> FakeSections;
SmallString<0> FakeSectionStrings;
+ // Handle extended header in section 0
+ Elf_Word e_phnum;
+ Elf_Word e_shnum;
+ Elf_Word e_shstrndx;
+
ELFFile(StringRef Object);
public:
+ const Elf_Word getPhNum() const { return e_phnum; }
----------------
jh7370 wrote:
`const` on a value return type doesn't make sense.
https://github.com/llvm/llvm-project/pull/162288
More information about the llvm-commits
mailing list