aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens Remus <jremus@linux.ibm.com>2025-03-28 15:27:11 +0100
committerJens Remus <jremus@linux.ibm.com>2025-03-28 15:27:11 +0100
commit07468ded302ecaec1114f2d5c4d94e05c631f2ac (patch)
treeb0255651560160316471629667c99909ed310b01
parent7106a427963462eb5a58e2ece6dc7e4d37132065 (diff)
downloadbinutils-07468ded302ecaec1114f2d5c4d94e05c631f2ac.zip
binutils-07468ded302ecaec1114f2d5c4d94e05c631f2ac.tar.gz
binutils-07468ded302ecaec1114f2d5c4d94e05c631f2ac.tar.bz2
ld: Pass $NOPIE_CFLAGS and $NOPIE_LDFLAGS to test pr21964-4
Linker test "pr21964-4" fails on s390x on Ubuntu 24.10 but not on Fedora 41. The reason is that GCC on Ubuntu is configured with --enable-default-pie, so that it defaults to compile with -fPIE and link with -pie, which causes the test to erroneously fail. ld/testsuite/ PR ld/21090 * ld-elf/shared.exp: Compile pr21964-4 with $NOPIE_CFLAGS and link with $NOPIE_LDFLAGS. Bug: https://sourceware.org/PR21090 Signed-off-by: Jens Remus <jremus@linux.ibm.com>
-rw-r--r--ld/testsuite/ld-elf/shared.exp4
1 files changed, 2 insertions, 2 deletions
diff --git a/ld/testsuite/ld-elf/shared.exp b/ld/testsuite/ld-elf/shared.exp
index fa63572..09669b5 100644
--- a/ld/testsuite/ld-elf/shared.exp
+++ b/ld/testsuite/ld-elf/shared.exp
@@ -1618,12 +1618,12 @@ if { [istarget *-*-linux*]
] \
[list \
"Run pr21964-4" \
- "" \
+ "$NOPIE_LDFLAGS" \
"" \
{pr21964-4.c} \
"pr21964-4" \
"pass.out" \
- "" \
+ "$NOPIE_CFLAGS" \
"" \
"" \
"-ldl" \