mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-18 09:09:12 +00:00
Don't emit a shstrtabindex in the reserved range. Spotted by inspection and
patch by Cary Coutant! llvm-svn: 141413
This commit is contained in:
parent
112a7ae899
commit
fe793806e9
@ -130,7 +130,7 @@ void ELFObjectWriter::WriteHeader(uint64_t SectionDataSize,
|
||||
Write16(NumberOfSections);
|
||||
|
||||
// e_shstrndx = Section # of '.shstrtab'
|
||||
if (NumberOfSections >= ELF::SHN_LORESERVE)
|
||||
if (ShstrtabIndex >= ELF::SHN_LORESERVE)
|
||||
Write16(ELF::SHN_XINDEX);
|
||||
else
|
||||
Write16(ShstrtabIndex);
|
||||
|
Loading…
Reference in New Issue
Block a user