diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2022-07-18 18:49:27 -0700 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2022-07-18 18:54:20 -0700 |
commit | 76e4fa70e79ee959c0e11eaacd4cf863291b1ddb (patch) | |
tree | 5c86ab4cf920637e2838cd178f691cc3208adbf7 | |
parent | bd0736124c20950ac353f01e5029b7cb5d8a7010 (diff) | |
download | gdb-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.exp | 2 |
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} \ {} \ |