OSDN Git Service

[ObjectYAML][ELF] Add support for emitting the .debug_gnu_pubnames/pubtypes sections.
authorXing GUO <higuoxing@gmail.com>
Fri, 3 Jul 2020 10:13:49 +0000 (18:13 +0800)
committerXing GUO <higuoxing@gmail.com>
Fri, 3 Jul 2020 14:40:18 +0000 (22:40 +0800)
commitb954cb408f090251d946f1e087e29541dd1e7ee5
tree72bb06bec52ffdedf1140b9f58244c4da13d8f52
parent228ea815832a863bfd4da0f0fd67675e0a02cb88
[ObjectYAML][ELF] Add support for emitting the .debug_gnu_pubnames/pubtypes sections.

This patch helps add support for emitting the .debug_gnu_pubnames and .debug_gnu_pubtypes sections.

The .debug_gnu_pub* sections is verified by llvm-dwarfdump.

Known issues:
- Doesn't support emitting multiple pub-tables.

Reviewed By: jhenderson

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