[llvm-dev] [YAML][DebugInfo] Split DWARF with YAML

Djordje Todorovic via llvm-dev llvm-dev at lists.llvm.org
Mon Apr 19 05:35:48 PDT 2021


I'll try with the llvm-objcopy, but I don't think we can workaround all the features from the split DWARF...

>but I would think adding yaml2obj support would be the better option
I agree. We can add a TODO there. Unfortunately, I don't have time to add such thing, but I'd be happy if someone picks that implementation. :)

Thanks,
Djordje
________________________________
From: James Henderson <jh7370.2008 at my.bristol.ac.uk>
Sent: Monday, April 19, 2021 12:53 PM
To: Djordje Todorovic <Djordje.Todorovic at syrmia.com>
Cc: Xing GUO <higuoxing at gmail.com>; LLVM Developers Mailing List <llvm-dev at lists.llvm.org>
Subject: Re: [llvm-dev] [YAML][DebugInfo] Split DWARF with YAML

Right, as Xing mentioned, I don't think any support has been added to yaml2obj for the .dwo sections yet. You might be able to workaround it by pretending they are regular DWARF sections and then using llvm-objcopy to rename the necessary sections, but I would think adding yaml2obj support would be the better option.

James

On Tue, 13 Apr 2021 at 08:12, Djordje Todorovic <Djordje.Todorovic at syrmia.com<mailto:Djordje.Todorovic at syrmia.com>> wrote:
Hi Xing,

The same I've figured out when looking at DWARF implementation from ObjestYAML.

Djordje
________________________________
From: Xing GUO <higuoxing at gmail.com<mailto:higuoxing at gmail.com>>
Sent: Tuesday, April 13, 2021 3:56 AM
To: Djordje Todorovic <Djordje.Todorovic at syrmia.com<mailto:Djordje.Todorovic at syrmia.com>>
Cc: LLVM Developers Mailing List <llvm-dev at lists.llvm.org<mailto:llvm-dev at lists.llvm.org>>; jh7370.2008 <jh7370.2008 at my.bristol.ac.uk<mailto:jh7370.2008 at my.bristol.ac.uk>>
Subject: Re: [llvm-dev] [YAML][DebugInfo] Split DWARF with YAML

Hi Djordje,

AFAIK, yaml2obj doesn't support writing "dwo" sections. It might be a
good idea to add split DWARF support to yaml2obj.

CC: James

On 4/12/21, Djordje Todorovic via llvm-dev <llvm-dev at lists.llvm.org<mailto:llvm-dev at lists.llvm.org>> wrote:
> Hi folks,
>
> I was wondering if there is a way to write "dwo" (split dwarf) sections with
> YAML.
> Basically, the yaml2obj tool would parse such file by using the ObjestYAML
> library.
>
> It is needed for some testing purposes.
>
> Best regards,
> Djordje
>


--
Cheers,
Xing
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20210419/498fe6f8/attachment.html>


More information about the llvm-dev mailing list