[PATCH] run_cc_link_tests: Pass $plug_opt to ar_simple_create
H.J. Lu
hjl.tools@gmail.com
Fri Aug 8 20:32:43 GMT 2025
Pass $plug_opt to ar_simple_create so that run_cc_link_tests can create
archive from slim LTO IR ojects properly.
* testsuite/lib/ld-lib.exp (run_cc_link_tests): Pass $plug_opt
to ar_simple_create.
Signed-off-by: H.J. Lu <hjl.tools@gmail.com>
---
ld/testsuite/lib/ld-lib.exp | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/ld/testsuite/lib/ld-lib.exp b/ld/testsuite/lib/ld-lib.exp
index 22d2f987b87..06594e110fb 100644
--- a/ld/testsuite/lib/ld-lib.exp
+++ b/ld/testsuite/lib/ld-lib.exp
@@ -891,6 +891,7 @@ proc run_cc_link_tests { ldtests } {
global ar
global exec_output
global STATIC_LDFLAGS
+ global plug_opt
foreach testitem $ldtests {
set testname [lindex $testitem 0]
@@ -996,7 +997,7 @@ proc run_cc_link_tests { ldtests } {
# compile only
set binfile $objfile
} elseif { [regexp ".*\\.a$" $binfile] } {
- if { ![ar_simple_create $ar $ldflags $binfile "$objfiles"] } {
+ if { ![ar_simple_create $ar "$plug_opt $ldflags" $binfile "$objfiles"] } {
set failed 1
}
} else {
--
2.50.1
More information about the Binutils
mailing list