public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] ld: Use run_cc_link_tests for PR ld/26391 tests
@ 2023-01-17 15:41 H.J. Lu
  2023-01-24 13:30 ` Nick Clifton
  0 siblings, 1 reply; 3+ messages in thread
From: H.J. Lu @ 2023-01-17 15:41 UTC (permalink / raw)
  To: binutils

Use run_cc_link_tests for PR ld/26391 tests to compile PR ld/26391 tests
in C.

	PR ld/30002
	* testsuite/ld-elf/elf.exp: Use run_cc_link_tests for PR ld/26391
	tests.
---
 ld/testsuite/ld-elf/elf.exp | 15 ++++-----------
 1 file changed, 4 insertions(+), 11 deletions(-)

diff --git a/ld/testsuite/ld-elf/elf.exp b/ld/testsuite/ld-elf/elf.exp
index a3a8994749d..1fc77183a90 100644
--- a/ld/testsuite/ld-elf/elf.exp
+++ b/ld/testsuite/ld-elf/elf.exp
@@ -516,31 +516,24 @@ run_cc_link_tests [list \
 	{{nm "" pr26391.nd}} \
 	"pr26391-4" \
     ] \
-]
-
-run_ld_link_tests [list \
     [list \
 	"Build pr26391-5.o" \
-	"-z unique-symbol -r" \
-	"" \
-	"" \
+	"-Wl,-z,unique-symbol -r -nostdlib -nostartfiles" \
+	"-fno-function-sections" \
 	{pr26391a.c pr26391b.c pr26391c.c pr26391d.c} \
 	[list \
 	    [list "nm" "$dep_plug_opt" "pr26391.nd"] \
 	    [list "nm" "$dep_plug_opt" "pr26391.fd"] \
 	] \
 	"pr26391-5.o" \
-	"-fno-function-sections" \
     ] \
     [list \
 	"Build pr26391-6.o" \
-	"-z unique-symbol -r" \
-	"" \
-	"" \
+	"-Wl,-z,unique-symbol -r -nostdlib -nostartfiles" \
+	"-ffunction-sections" \
 	{pr26391a.c pr26391b.c pr26391c.c pr26391d.c} \
 	{{nm "" pr26391.nd}} \
 	"pr26391-6.o" \
-	"-ffunction-sections" \
     ] \
 ]
 
-- 
2.39.0


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-04-28  7:15 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-17 15:41 [PATCH] ld: Use run_cc_link_tests for PR ld/26391 tests H.J. Lu
2023-01-24 13:30 ` Nick Clifton
2023-04-28  7:14   ` Sam James

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).