PR29355, ld segfaults with -r/-q and custom-named section .rela*
Michael Matz
matz@suse.de
Tue Jul 12 12:19:58 GMT 2022
Hey,
On Tue, 12 Jul 2022, Alan Modra via Binutils wrote:
> Fix that. Note that it is arguably wrong for ld to leave the output
> .rel/.rela section type as SHT_REL/SHT_RELA when non-empty non-reloc
> sections are written to it, but I'm not going to change that since it
> might be useful to hand-craft relocs in a data section that is then
> written to a SHT_REL/SHT_RELA output section.
Much to my dismay I remember having seen exactly this in the wild, in
recent years, but I don't remember the details anymore :-/
Ciao,
Michael.
More information about the Binutils
mailing list