[all-commits] [llvm/llvm-project] 972800: [ObjectYAML][ELF] Add support for emitting the .de...
Xing GUO via All-commits
all-commits at lists.llvm.org
Tue Jun 9 08:39:00 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 972800039566b10dec9c918a9dabc1f6a0619122
https://github.com/llvm/llvm-project/commit/972800039566b10dec9c918a9dabc1f6a0619122
Author: Xing GUO <higuoxing at gmail.com>
Date: 2020-06-09 (Tue, 09 Jun 2020)
Changed paths:
M llvm/lib/ObjectYAML/DWARFYAML.cpp
M llvm/lib/ObjectYAML/ELFEmitter.cpp
A llvm/test/tools/yaml2obj/ELF/DWARF/debug-line.yaml
Log Message:
-----------
[ObjectYAML][ELF] Add support for emitting the .debug_line section.
This patch enables yaml2elf emit the .debug_line section.
Test cases for emitting the dwarf64 .debug_line section and opcodes will be added later.
Known issues:
- We should replace `InitialLength` with `Format` and `Length`
- Currently implementation of the .debug_line section only fully supports DWARFv2, some header fields in DWARFv4 and DWARFv5 is missing, e.g., `header_length` in DWARFv4, `address_size` and `segment_selector_size` in DWARFv5.
- Some opcodes relies on the .debug_info section, we should warn user about it.
These issues will be addressed in a follow-up patch.
Reviewed By: jhenderson, grimar
Differential Revision: https://reviews.llvm.org/D81450
More information about the All-commits
mailing list