[PATCH] D34064: Allow the gas-style nonstandard SHT_GROUP section.
Rafael Avila de Espindola via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 12 10:43:51 PDT 2017
Rui Ueyama via Phabricator <reviews at reviews.llvm.org> writes:
> Index: lld/test/ELF/sht-group-gas-compatibility.test
> ===================================================================
> --- /dev/null
> +++ lld/test/ELF/sht-group-gas-compatibility.test
> @@ -0,0 +1,16 @@
> +# GNU assembler seems to create non-standard-compliant SHT_GROUP sections.
> +# Such SHT_GROUP sections use section names as their signatures instead of
> +# symbols pointed by sh_link field.
> +#
> +# Since it is prevalent, we accept such nonstandard sections.
Change the reference to gold, since it is the only current producer know
to create these .o files. Maybe mention the bug number?
> + // As a special case, if a symbol is a section symbol and has no name,
> + // we use a section name as a signature. Such SHT_GROUP sections are
> + // invalid from the perspective of the ELF standard, but GNU linkers
> + // accepts them, and their assembler relies on this behavior, so we
> + // need a bug-compatibility.
Change reference from gas to gold. Maybe mention the bug number?
LGTM with that.
Cheers,
Rafael
More information about the llvm-commits
mailing list