[PATCH] D25371: [ELF] - Fixed assertion fail when symbol table has invalid sh_info value.
George Rimar via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 10 02:53:58 PDT 2016
>What was the assertion?
>
>Cheers,
>Rafael
It asserts in getNameOffset():
uint32_t getNameOffset() const {
assert(isLocal()); // <- HERE
return NameOffset;
}
which is called from:
void Writer<ELFT>::copyLocalSymbols() {
...
if (B->getNameOffset() >= StrTab.size())
fatal(getFilename(F) + ": invalid symbol name offset");
...
}
George.
More information about the llvm-commits
mailing list