[ObjectYAML][ELF] Add support for emitting the .debug_abbrev section.
authorXing GUO <higuoxing@gmail.com>
Wed, 17 Jun 2020 08:10:58 +0000 (16:10 +0800)
committerXing GUO <higuoxing@gmail.com>
Thu, 18 Jun 2020 02:50:38 +0000 (10:50 +0800)
commit1f391afbf44e5b9e8d96bf8b92dbbc575e4ef0af
tree9fb0018220871d958c4330d74b2563843501183b
parentad6024e29fe7a48c5182bb1ce3a410d4b12f7850
[ObjectYAML][ELF] Add support for emitting the .debug_abbrev section.

This patch enables yaml2elf emit the .debug_abbrev section.

The generated .debug_abbrev is verified using `llvm-dwarfdump`.

Known issues that will be addressed later:
- Current implementation doesn't support generating multiple abbreviation tables in one .debug_abbrev section.

Reviewed By: jhenderson, grimar

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