llvm.org GIT mirror llvm / b3429d3
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 Nick Lewycky 8 years ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
129129 Write16(NumberOfSections);
130130
131131 // e_shstrndx = Section # of '.shstrtab'
132 if (NumberOfSections >= ELF::SHN_LORESERVE)
132 if (ShstrtabIndex >= ELF::SHN_LORESERVE)
133133 Write16(ELF::SHN_XINDEX);
134134 else
135135 Write16(ShstrtabIndex);