<div dir="ltr">I actually created these files with a modified version of LLD with the -r option. I found the problem when debugging <a href="https://bugs.llvm.org/show_bug.cgi?id=32360">https://bugs.llvm.org/show_bug.cgi?id=32360</a>, but I don't have the particular version of gas locally.<div><br></div><div>But still I believe this is worth doing something as if it happens, it fails mysteriously without saying anything about what caused the issue.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jun 9, 2017 at 6:34 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="">Rui Ueyama via Phabricator <<a href="mailto:reviews@reviews.llvm.org">reviews@reviews.llvm.org</a>> writes:<br>
<br>
> ruiu created this revision.<br>
> Herald added a subscriber: emaste.<br>
><br>
> The ELF standard defines that the SHT_GROUP section as follows:<br>
><br>
> - its sh_link has the symbol index, and<br>
> - the symbol name is used to uniquify section groups.<br>
><br>
> Some object files created by the GNU assembler don't seem to conform<br>
> to the standard. It looks like they have this additional rule:<br>
><br>
> - if the symbol has no name and a STT_SECTION symbol, a section name is used instead of a symbol name.<br>
><br>
> If we don't do anything for this, the linker fails with a mysterious<br>
> error message if input files are generated by gas. It is unfortunate<br>
> but I think we need to support it.<br>
<br>
</span>Do you have a description on how to create these files with gas? I have<br>
seems something like it when doing a freebsd build, but it looks like<br>
gas has been fixed a long time ago.<br>
<br>
It looks like gold is still broken:<br>
<br>
<a href="https://sourceware.org/bugzilla/show_bug.cgi?id=21493" rel="noreferrer" target="_blank">https://sourceware.org/<wbr>bugzilla/show_bug.cgi?id=21493</a><br>
<br>
Is it possible the file you found wast created by gold -r?<br>
<br>
Cheers,<br>
Rafael<br>
</blockquote></div><br></div>