[PATCH] ld: Extend ac_default_ld_warn_rwx_segments to all SPARC targets [PR29411]

Nick Clifton nickc@redhat.com
Thu Jul 28 15:20:41 GMT 2022


Hi Rainer,

> As discussed in PR ld/29411, the ld warning
> 
> 	[...] has a LOAD segment with RWX permissions
> 
> needs to be disabled on all SPARC targets, not just Solaris/SPARC: the
> .plt section is required to be RWX by the 32-bit SPARC ELF psABI and the
> 64-bit SPARC Compliance Definition 2.4.1.  Given that ld only supports
> SPARC ELF targets, this patch implements this.
> 
> Tested on sparc64-unknown-linux-gnu and sparc-sun-solaris2.11.
> 
> Ok for master and the 2.39 branch?

Approved - please apply to both.

Cheers
   Nick




More information about the Binutils mailing list