mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-23 19:59:57 +00:00
Also create a shndx even if there are no symbols. This lets us test
.symtab_shndx reading and writing together, and finally we have a testcase for r141440. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@141641 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
b1044b042f
commit
7aabcb1fc0
@ -666,6 +666,9 @@ void ELFObjectWriter::ComputeSymbolTable(MCAssembler &Asm,
|
||||
ExternalSymbolData[i].SymbolData->setIndex(Index++);
|
||||
for (unsigned i = 0, e = UndefinedSymbolData.size(); i != e; ++i)
|
||||
UndefinedSymbolData[i].SymbolData->setIndex(Index++);
|
||||
|
||||
if (NumRegularSections > ELF::SHN_LORESERVE)
|
||||
NeedsSymtabShndx = true;
|
||||
}
|
||||
|
||||
void ELFObjectWriter::CreateRelocationSections(MCAssembler &Asm,
|
||||
|
93320
test/MC/ELF/many-section.s
Normal file
93320
test/MC/ELF/many-section.s
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user