[binutils-gdb/try-PR26391] ld: Use run_cc_link_tests for PR ld/26391 tests
Mark Wielaard
mark@sourceware.org
Mon Jan 16 22:22:10 GMT 2023
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=99175c84026b1bfa534f3946150535c39027911d
commit 99175c84026b1bfa534f3946150535c39027911d
Author: Sam James <sam@gentoo.org>
Date: Mon Jan 16 14:03:02 2023 -0800
ld: Use run_cc_link_tests for PR ld/26391 tests
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.
Diff:
---
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..dfb9c7f0e14 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" \
+ "-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" \
+ "-ffunction-sections" \
{pr26391a.c pr26391b.c pr26391c.c pr26391d.c} \
{{nm "" pr26391.nd}} \
"pr26391-6.o" \
- "-ffunction-sections" \
] \
]
More information about the Binutils-cvs
mailing list