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

Rainer Orth ro@CeBiTec.Uni-Bielefeld.DE
Thu Jul 28 14:11:09 GMT 2022


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?

	Rainer

-- 
-----------------------------------------------------------------------------
Rainer Orth, Center for Biotechnology, Bielefeld University


2022-07-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>

	ld:
	PR ld/29411
	* configure.tgt (ac_default_ld_warn_rwx_segments): Extend to all
	sparc targets.  Expand comment.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: ld-warn-rwx-sparc.patch
Type: text/x-patch
Size: 729 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20220728/9a6c752c/attachment.bin>


More information about the Binutils mailing list