<div dir="ltr"><div class="gmail_default" style="font-size:small">Hi Rafael,<br><br></div><div class="gmail_default" style="font-size:small">Thanks for following up.<br><br></div><div class="gmail_default" style="font-size:small">The way that it works is that a program header has a "p_offset" and a "p_filesz" which indicates the location and size of the section in the file prior to loading. So this information allows the loader/tools to read/edit certain metadata from the file before run-time. For example, a tool can dump metadata in a specific segment even though section headers have been stripped. The fact that "p_vaddr" and "p_memsz" are 0 in this case does not matter as the section does not need to be loaded. That is why the section is not allocated because it is not required at run-time.<br><br></div><div class="gmail_default" style="font-size:small">I hope that clarifies the intended use case.<br><br></div><div class="gmail_default" style="font-size:small">Cheers,<br></div><div class="gmail_default" style="font-size:small">Andrew<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On 29 June 2017 at 21:19, Rafael Avila de Espindola <span dir="ltr"><<a href="mailto:rafael.espindola@gmail.com" target="_blank">rafael.espindola@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I still don't understand how can this be used.<br>
<br>
So please don't land it.<br>
<span class="im HOEnZb"><br>
Cheers,<br>
Rafael<br>
<br>
Andrew Ng via Phabricator <<a href="mailto:reviews@reviews.llvm.org">reviews@reviews.llvm.org</a>> writes:<br>
<br>
</span><div class="HOEnZb"><div class="h5">> andrewng added a comment.<br>
><br>
> In <a href="https://reviews.llvm.org/D34204#790836" rel="noreferrer" target="_blank">https://reviews.llvm.org/<wbr>D34204#790836</a>, @andrewng wrote:<br>
><br>
>> Hi Rafael,<br>
>><br>
>> Is this patch now good to land?<br>
>><br>
>> Cheers,<br>
>> Andrew<br>
><br>
><br>
> Ping.<br>
><br>
><br>
> <a href="https://reviews.llvm.org/D34204" rel="noreferrer" target="_blank">https://reviews.llvm.org/<wbr>D34204</a><br>
</div></div></blockquote></div><br></div>