[elf2yaml] Fix dumping a debug section whose name is not recognized.
authorXing GUO <higuoxing@gmail.com>
Wed, 9 Sep 2020 12:06:00 +0000 (20:06 +0800)
committerXing GUO <higuoxing@gmail.com>
Wed, 9 Sep 2020 12:07:05 +0000 (20:07 +0800)
commit25f3cc0ced1759af1911c2446ac40fab4f5e5571
tree03d83cb037d5a599ac77a6754090b387953de0f7
parentd4b88ac1658d681e143482336cac27c6a74b8b24
[elf2yaml] Fix dumping a debug section whose name is not recognized.

If the debug section's name isn't recognized, it should be
dumped as a raw content section.

Reviewed By: jhenderson, grimar

Differential Revision: https://reviews.llvm.org/D87346
llvm/test/tools/obj2yaml/ELF/DWARF/unrecognized-debug-section.yaml [new file with mode: 0644]
llvm/tools/obj2yaml/elf2yaml.cpp