[PATCH v2 0/6] ld: Pass $NOPIE_CFLAGS and $NOPIE_LDFLAGS to more tests
Jens Remus
jremus@linux.ibm.com
Fri Mar 28 14:31:45 GMT 2025
On 21.03.2025 17:58, Jens Remus wrote:
> Some distributions configure GCC with --enable-default-pie [1]. This
> causes compiles to default to -fPIE and links to default to -pie, unless
> other options are explicitly given. As a consequence several linker
> tests are compiled and linked in unexpected ways and may even
> unexpectedly fail or pass. Compile more non-PIC/PIE test sources with
> $NOPIE_CFLAGS and link more test programs with $NOPIE_LDFLAGS.
> Patches 2-5 fix linker test cases that expect to be compiled non-PIC and
> linked as position-dependent executable (PDE; non-PIE).
>
> [1]: GCC Installation manual, step "Configuration", section
> "--enable-default-pie", https://gcc.gnu.org/install/configure.html
Committed the remaining patches to mainline with approval from Alan and Jan:
> ld: Pass $NOPIE_CFLAGS and $NOPIE_LDFLAGS to test pr19719
> ld: Pass $NOPIE_CFLAGS and $NOPIE_LDFLAGS to test pr21964-4
> ld: Pass $NOPIE_CFLAGS and $NOPIE_LDFLAGS to even more ELF shared
> tests
> ld: Pass $NOPIE_CFLAGS and $NOPIE_LDFLAGS to more ELF visibility tests
> x86: Pass $NOPIE_LDFLAGS to undefined weak tests
Regards,
Jens
--
Jens Remus
Linux on Z Development (D3303)
+49-7031-16-1128 Office
jremus@de.ibm.com
IBM
IBM Deutschland Research & Development GmbH; Vorsitzender des Aufsichtsrats: Wolfgang Wendt; Geschäftsführung: David Faller; Sitz der Gesellschaft: Böblingen; Registergericht: Amtsgericht Stuttgart, HRB 243294
IBM Data Privacy Statement: https://www.ibm.com/privacy/
More information about the Binutils
mailing list