[PATCH] D80972: [ObjectYAML][DWARF] Support emitting the .debug_aranges section in ELFYAML.

Xing GUO via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 1 20:33:54 PDT 2020


Higuoxing created this revision.
Higuoxing added reviewers: jhenderson, grimar, MaskRay.
Herald added subscribers: llvm-commits, hiraditya, aprantl, emaste.
Herald added a reviewer: espindola.
Herald added a project: LLVM.
Higuoxing edited the summary of this revision.

This patch enables yaml2obj to emit the .debug_aranges section in ELFYAML.

Besides, this patch helps correct the width of the variable `debug_info_offset` (4-byte in 32-bit DWARF and 12-byte in 64-bit DWARF, See: DWARFv5 <http://dwarfstd.org/doc/DWARF5.pdf> 7.21 Address Range Table).

Known issues:

- The current implementation of `debug_aranges` doesn't support emitting `segment` in the `(segment, address, length)` tuple. I will fix it in a follow-up patch.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D80972

Files:
  llvm/lib/ObjectYAML/DWARFEmitter.cpp
  llvm/lib/ObjectYAML/DWARFYAML.cpp
  llvm/lib/ObjectYAML/ELFEmitter.cpp
  llvm/lib/ObjectYAML/ELFYAML.cpp
  llvm/test/tools/yaml2obj/ELF/DWARF/debug-aranges.yaml

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D80972.267779.patch
Type: text/x-patch
Size: 16504 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200602/8e7d29dc/attachment.bin>


More information about the llvm-commits mailing list