[PATCH] D93697: [obj2yaml] - Don't crash when an object has an empty symbol table.

George Rimar via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 22 06:44:02 PST 2020


grimar created this revision.
grimar added reviewers: jhenderson, MaskRay.
Herald added a subscriber: emaste.
Herald added a reviewer: espindola.
grimar requested review of this revision.
Herald added a project: LLVM.

Currently we crash when we have an object with SHT_SYMTAB/SHT_DYNSYM sections
of size 0.

With this patch instead of the crash we start to dump them properly.


https://reviews.llvm.org/D93697

Files:
  llvm/test/tools/obj2yaml/ELF/no-symtab.yaml
  llvm/tools/obj2yaml/elf2yaml.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D93697.313322.patch
Type: text/x-patch
Size: 4920 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201222/da07f6cd/attachment.bin>


More information about the llvm-commits mailing list