[ObjectYAML][ELF] Add support for emitting the .debug_pubnames section.
authorXing GUO <higuoxing@gmail.com>
Tue, 23 Jun 2020 12:39:38 +0000 (20:39 +0800)
committerXing GUO <higuoxing@gmail.com>
Tue, 23 Jun 2020 12:40:33 +0000 (20:40 +0800)
commit8c7775e9a734b0129d2db19b92efe245552ccb3d
treeb4d35e003270909787c47f0580ad87d65bb6c001
parentf1c671925b1c60ded3e4e7b3c6b1ec984b2d9b93
[ObjectYAML][ELF] Add support for emitting the .debug_pubnames section.

This patch helps add support for emitting the .debug_pubnames section to yaml2elf.

Known issues:
- Current implementation doesn't support emitting multiple sets of entries.
- Doesn't support DWARF64.

Reviewed By: jhenderson

Differential Revision: https://reviews.llvm.org/D82296
llvm/lib/ObjectYAML/DWARFYAML.cpp
llvm/lib/ObjectYAML/ELFEmitter.cpp
llvm/test/tools/yaml2obj/ELF/DWARF/debug-pubnames.yaml [new file with mode: 0644]