public inbox for binutils-cvs@sourceware.org
help / color / mirror / Atom feed
* [binutils-gdb] ld: Pass -nostdlib to compiler with -r
@ 2022-07-19  1:55 H.J. Lu
  0 siblings, 0 replies; only message in thread
From: H.J. Lu @ 2022-07-19  1:55 UTC (permalink / raw)
  To: bfd-cvs

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=76e4fa70e79ee959c0e11eaacd4cf863291b1ddb

commit 76e4fa70e79ee959c0e11eaacd4cf863291b1ddb
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Mon Jul 18 18:49:27 2022 -0700

    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:
---
 ld/testsuite/ld-elf/linux-x86.exp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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} \
 	{} \


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-07-19  1:55 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-19  1:55 [binutils-gdb] ld: Pass -nostdlib to compiler with -r H.J. Lu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).