[PATCH] D88561: [llvm-readobj] - Fix possible crashes related to dumping gnu hash symbols.
Ulrich Weigand via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 30 10:44:08 PDT 2020
uweigand added a comment.
I think the handling of the GNU hash table is actually already fully correct. The crash (or error message when using this patch) is simply a side effect of the fact that size of the DynSymRegion was clobbered here (near the end of ELFDumper<ELFT>::parseDynamicTable()):
DynSymRegion->Size = HashTable->nchain * DynSymRegion->EntSize;
This in turn is because HashTable->nchain (like all of HashTable) is just incorrect on s390x at the moment, as discussed in https://bugs.llvm.org/show_bug.cgi?id=47681
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D88561/new/
https://reviews.llvm.org/D88561
More information about the llvm-commits
mailing list