<div dir="ltr">I was thinking the same, too.</div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Feb 26, 2016 at 10:09 AM, Rafael Espíndola <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">On 26 February 2016 at 11:12, Rui Ueyama via llvm-commits<br>
<span class=""><<a href="mailto:llvm-commits@lists.llvm.org">llvm-commits@lists.llvm.org</a>> wrote:<br>
> The Linux manual page of "end" says about the symbols as follows.<br>
><br>
> etext This is the first address past the end of the text segment (the<br>
> program code).<br>
> edata This is the first address past the end of the initialized data<br>
> segment.<br>
><br>
> Is your implementation correct? Your implementation seems like this.<br>
><br>
> etext is the last address past the end of any writable segment<br>
> edata is the last address past the end of any initialized data segment<br>
><br>
<br>
</span>Maybe instead of walking the sections you can walk the PL_LOAD<br>
segments to get a more direct implementation?<br>
<br>
Cheers,<br>
Rafael<br>
</blockquote></div><br></div>