[PATCH 2/2] sframe: Add -nostdlib when testing PR 32789

claudiu.zissulescu-ianculescu@oracle.com claudiu.zissulescu-ianculescu@oracle.com
Tue Jan 20 14:53:39 GMT 2026


From: Claudiu Zissulescu <claudiu.zissulescu-ianculescu@oracle.com>

As a result of the mail exchange in
https://sourceware.org/pipermail/binutils/2026-January/147439.html,
the run_cc_link_test procedure may want to link standard libs
too. However, this is not required for running PR 32789 tests. Add
-nostdlib option.

ld/

	* testsuite/ld-sframe/sframe.exp: Add nostdlib when testing PR
	32789.

Signed-off-by: Claudiu Zissulescu <claudiu.zissulescu-ianculescu@oracle.com>
---
 ld/testsuite/ld-sframe/sframe.exp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ld/testsuite/ld-sframe/sframe.exp b/ld/testsuite/ld-sframe/sframe.exp
index 9059955a923..8966c20ddc9 100644
--- a/ld/testsuite/ld-sframe/sframe.exp
+++ b/ld/testsuite/ld-sframe/sframe.exp
@@ -169,7 +169,7 @@ if { [check_compiler_available] } {
     run_cc_link_tests [list \
 	[list \
 	    "Build pr32789-1a.o pr32789-1b.o" \
-	    "-r" \
+	    "-r -nostdlib" \
 	    "-Wa,--gsframe" \
 	    { pr32789-1a.c pr32789-1b.c } \
 	    {{readelf --sframe pr32789-1.sd}
-- 
2.52.0



More information about the Binutils mailing list