This allows to get rid of "Invalid data was encountered while parsing the file"
error reported in cases when sh_size/sh_offset of sections are broken.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
LGTM.
llvm/test/tools/llvm-readobj/ELF/dyn-symbols.test | ||
---|---|---|
579 | Not related to this patch, but the inconsistency of where this warning is reported in comparison to the entsize warning looks weird. Looking at code comments (see line 1942 in ElfDumper.cpp in this diff), in one place we ignore the entsize so that we can dump the symbol table, but then later on, we obviously don't. Something for a follow-up patch probably. |
Not related to this patch, but the inconsistency of where this warning is reported in comparison to the entsize warning looks weird. Looking at code comments (see line 1942 in ElfDumper.cpp in this diff), in one place we ignore the entsize so that we can dump the symbol table, but then later on, we obviously don't. Something for a follow-up patch probably.