[llvm-dev] [yaml2obj] GSoC-20: Add DWARF support to yaml2obj

Pavel Labath via llvm-dev llvm-dev at lists.llvm.org
Mon Apr 27 06:15:45 PDT 2020


On 27/04/2020 10:10, James Henderson wrote:
> I believe the compiler will generate a .debug_ranges section if you use
> -ffunction-sections, since the addresses of sections will be
> non-contiguous. From there, you should be able to edit the .debug_ranges
> assembly as needed (replace references to symbols with 0s in the
> .debug_ranges content) to get the exact behaviour you want (I'm assuming
> you don't want to have to hand-edit a .debug_abbrev/.debug_info data
> structure to manually create a .debug_ranges).

Yeah, that's what I usually do -- get the compiler to emit something
close to what I need, and then edit the assembly to produce the exact
needed input, or to remove things which are completely irrelevant.

pl


More information about the llvm-dev mailing list