<div dir="ltr"><div>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.</div><div><br></div><div>James<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, 13 Apr 2021 at 08:12, Djordje Todorovic <<a href="mailto:Djordje.Todorovic@syrmia.com">Djordje.Todorovic@syrmia.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div dir="ltr">
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Hi Xing,</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
The same I've figured out when looking at DWARF implementation from <span style="font-size:14.6667px;background-color:rgb(255,255,255);display:inline">ObjestYAML.</span></div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<span style="font-size:14.6667px;background-color:rgb(255,255,255);display:inline"><br>
</span></div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<span style="font-size:14.6667px;background-color:rgb(255,255,255);display:inline">Djordje</span></div>
<div id="gmail-m_-2040889897586564473appendonsend"></div>
<hr style="display:inline-block;width:98%">
<div id="gmail-m_-2040889897586564473divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" face="Calibri, sans-serif" color="#000000"><b>From:</b> Xing GUO <<a href="mailto:higuoxing@gmail.com" target="_blank">higuoxing@gmail.com</a>><br>
<b>Sent:</b> Tuesday, April 13, 2021 3:56 AM<br>
<b>To:</b> Djordje Todorovic <<a href="mailto:Djordje.Todorovic@syrmia.com" target="_blank">Djordje.Todorovic@syrmia.com</a>><br>
<b>Cc:</b> LLVM Developers Mailing List <<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a>>; jh7370.2008 <<a href="mailto:jh7370.2008@my.bristol.ac.uk" target="_blank">jh7370.2008@my.bristol.ac.uk</a>><br>
<b>Subject:</b> Re: [llvm-dev] [YAML][DebugInfo] Split DWARF with YAML</font>
<div> </div>
</div>
<div><font size="2"><span style="font-size:11pt">
<div>Hi Djordje,<br>
<br>
AFAIK, yaml2obj doesn't support writing "dwo" sections. It might be a<br>
good idea to add split DWARF support to yaml2obj.<br>
<br>
CC: James<br>
<br>
On 4/12/21, Djordje Todorovic via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a>> wrote:<br>
> Hi folks,<br>
><br>
> I was wondering if there is a way to write "dwo" (split dwarf) sections with<br>
> YAML.<br>
> Basically, the yaml2obj tool would parse such file by using the ObjestYAML<br>
> library.<br>
><br>
> It is needed for some testing purposes.<br>
><br>
> Best regards,<br>
> Djordje<br>
><br>
<br>
<br>
-- <br>
Cheers,<br>
Xing<br>
</div>
</span></font></div>
</div>
</blockquote></div>