<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Tue, Dec 5, 2017 at 1:22 PM, 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"><span class="">Martin Richtarsky <<a href="mailto:s@martinien.de">s@martinien.de</a>> writes:<br>
<br>
> Output looks as follows [1] Seems sh_offset is missing?<br>
<br>
</span>That is what readelf prints as Off<br>
<span class=""><br>
>   [17] .rela.text        RELA            0000000000000000 071423 001728 18<br>
>      1   4  8<br>
<br>
</span>The offset of rela text should have been aligned, but it is not. Can you<br>
report a bug on icc? As a work around using the gnu assembler if<br>
possible should fix this.</blockquote><div><br></div><div>Yeah this is a violation of the spec and must be a bug in ICC. That being said, is there a practical benefit of checking the validity of the alignment, except finding buggy object files early? I mean, if an object file is in an static archive, all "aligned" data in the object file might not be aligned against the beginning of the archive file.</div></div></div></div>