mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-16 12:24:03 +00:00
Don't emit a shstrtabindex in the reserved range. Spotted by inspection and
patch by Cary Coutant! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@141413 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -130,7 +130,7 @@ void ELFObjectWriter::WriteHeader(uint64_t SectionDataSize,
|
|||||||
Write16(NumberOfSections);
|
Write16(NumberOfSections);
|
||||||
|
|
||||||
// e_shstrndx = Section # of '.shstrtab'
|
// e_shstrndx = Section # of '.shstrtab'
|
||||||
if (NumberOfSections >= ELF::SHN_LORESERVE)
|
if (ShstrtabIndex >= ELF::SHN_LORESERVE)
|
||||||
Write16(ELF::SHN_XINDEX);
|
Write16(ELF::SHN_XINDEX);
|
||||||
else
|
else
|
||||||
Write16(ShstrtabIndex);
|
Write16(ShstrtabIndex);
|
||||||
|
Reference in New Issue
Block a user