<div dir="ltr">It is harder to create a testcase for this than I thought. When I specify an output section alignment using a linker script, both GNU linkers create huge executable so that the output section is aligned even on disk. I don't know how to work around it. I could edit an so file using binary editor and check in that binary, but I don't know if it's worth to do.<div><br></div><div><br><div class="gmail_extra"><div class="gmail_quote">On Mon, Nov 6, 2017 at 3:18 PM, Rui Ueyama <span dir="ltr"><<a href="mailto:ruiu@google.com" target="_blank">ruiu@google.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Actually I can't. yaml2obj can't serialize/deserialize .so files, and you can't use lld to generate a .so containing a section whose alignment is greater than 2^32. Looks like I need to check in a binary generated by ld.gold.<div><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Nov 6, 2017 at 2:43 PM, Rui Ueyama <span dir="ltr"><<a href="mailto:ruiu@google.com" target="_blank">ruiu@google.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I can. I filed a bug as <a href="https://bugs.llvm.org/show_bug.cgi?id=35218" target="_blank">https://bugs.llvm.org/show_bug<wbr>.cgi?id=35218</a></div><div class="m_-8732174656896555488m_7648044225849973455HOEnZb"><div class="m_-8732174656896555488m_7648044225849973455h5"><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Nov 6, 2017 at 2:37 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>Rui Ueyama <<a href="mailto:ruiu@google.com" target="_blank">ruiu@google.com</a>> writes:<br>
<br>
> It is funny that llvm-mc fails with an assertion failure when your assembly<br>
> contains ".align 0x100000000" because it assumes internally that alignments<br>
> is less than 2^32. I need to fix it first.<br>
<br>
</span>Can you use yaml2obj for the testcase?<br>
<br>
Cheers,<br>
Rafael<br>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div></div></div></div>
</blockquote></div><br></div></div></div>