summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2023-01-16 14:03:02 -0800
committerH.J. Lu <hjl.tools@gmail.com>2023-01-16 15:22:40 -0800
commit4be74a8daa9ea7798b6b5b4a3507a3ba154f4ee5 (patch)
tree12d3365a84aed176fd57a54fbe498a855b683f5c
parent24669c55aed712c192b80456295cce122c7d5f73 (diff)
downloadbinutils-gdb-users/hjl/try-pr30002.tar.gz
ld: Use run_cc_link_tests for PR ld/26391 testsusers/hjl/try-pr30002
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.
-rw-r--r--ld/testsuite/ld-elf/elf.exp15
1 files 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" \
] \
]