mirror of
https://github.com/intel/llvm.git
synced 2026-01-25 09:33:43 +08: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. llvm-svn: 141641
This commit is contained in:
@@ -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
llvm/test/MC/ELF/many-section.s
Normal file
93320
llvm/test/MC/ELF/many-section.s
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user