<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Mon, Jun 12, 2017 at 10:43 AM, 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>
</span>> Index: lld/test/ELF/sht-group-gas-<wbr>compatibility.test<br>
> ==============================<wbr>==============================<wbr>=======<br>
> --- /dev/null<br>
> +++ lld/test/ELF/sht-group-gas-<wbr>compatibility.test<br>
> @@ -0,0 +1,16 @@<br>
> +# GNU assembler seems to create non-standard-compliant SHT_GROUP sections.<br>
> +# Such SHT_GROUP sections use section names as their signatures instead of<br>
> +# symbols pointed by sh_link field.<br>
> +#<br>
> +# Since it is prevalent, we accept such nonstandard sections.<br>
<br>
Change the reference to gold, since it is the only current producer know<br>
to create these .o files.  Maybe mention the bug number?<br></blockquote><div><br></div><div>Sure. I'll also re-create the object files using gold to make sure that this patch really works on gold's outputs.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
> +  // As a special case, if a symbol is a section symbol and has no name,<br>
> +  // we use a section name as a signature. Such SHT_GROUP sections are<br>
> +  // invalid from the perspective of the ELF standard, but GNU linkers<br>
> +  // accepts them, and their assembler relies on this behavior, so we<br>
> +  // need a bug-compatibility.<br>
<br>
Change reference from gas to gold. Maybe mention the bug number?<br>
<br>
<br>
LGTM with that.<br>
<br>
Cheers,<br>
Rafael<br>
</blockquote></div><br></div></div>