aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2022-07-18 18:49:27 -0700
committerH.J. Lu <hjl.tools@gmail.com>2022-07-18 18:54:20 -0700
commit76e4fa70e79ee959c0e11eaacd4cf863291b1ddb (patch)
tree5c86ab4cf920637e2838cd178f691cc3208adbf7
parentbd0736124c20950ac353f01e5029b7cb5d8a7010 (diff)
downloadgdb-76e4fa70e79ee959c0e11eaacd4cf863291b1ddb.zip
gdb-76e4fa70e79ee959c0e11eaacd4cf863291b1ddb.tar.gz
gdb-76e4fa70e79ee959c0e11eaacd4cf863291b1ddb.tar.bz2
ld: Pass -nostdlib to compiler with -r
Pass -nostdlib to compiler with -r to avoid unnecessary .o file and libraries. PR ld/29377 * testsuite/ld-elf/linux-x86.exp: Pass -nostdlib with -r.
-rw-r--r--ld/testsuite/ld-elf/linux-x86.exp2
1 files changed, 1 insertions, 1 deletions
diff --git a/ld/testsuite/ld-elf/linux-x86.exp b/ld/testsuite/ld-elf/linux-x86.exp
index 0f0a6f0..0637905 100644
--- a/ld/testsuite/ld-elf/linux-x86.exp
+++ b/ld/testsuite/ld-elf/linux-x86.exp
@@ -136,7 +136,7 @@ run_cc_link_tests [list \
] \
[list \
"Build pr29377.o" \
- "-r -Wl,-z,noexecstack" \
+ "-r -nostdlib -Wl,-z,noexecstack" \
"" \
{pr29377a.c indirect-extern-access.S} \
{} \