[PATCH] D80373: [llvm-readobj] - Improve error reporting for hash tables.

George Rimar via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu May 21 04:18:11 PDT 2020


grimar created this revision.
grimar added reviewers: jhenderson, MaskRay.
Herald added subscribers: rupprecht, emaste.
Herald added a reviewer: espindola.
Herald added a project: LLVM.

This improves the next points for broken hash tables:

1. Use reportUniqueWarning to prevent duplication when --hash-table and --elf-hash-histogram are used together.

2. Dump nbuckets and nchain fields. It is often possible to dump them even when the table itself goes past the EOF etc.


https://reviews.llvm.org/D80373

Files:
  llvm/test/tools/llvm-readobj/ELF/hash-table.test
  llvm/tools/llvm-readobj/ELFDumper.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D80373.265470.patch
Type: text/x-patch
Size: 4540 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200521/cb77b344/attachment.bin>


More information about the llvm-commits mailing list