From: H.J. Lu Date: Tue, 19 Jul 2022 01:49:27 +0000 (-0700) Subject: ld: Pass -nostdlib to compiler with -r X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=76e4fa70e79ee959c0e11eaacd4cf863291b1ddb;p=binutils-gdb.git 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. --- diff --git a/ld/testsuite/ld-elf/linux-x86.exp b/ld/testsuite/ld-elf/linux-x86.exp index 0f0a6f01ec0..06379057ff2 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} \ {} \