diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2023-01-16 14:03:02 -0800 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2023-04-28 08:38:17 -0700 |
commit | 64b59b6bb2261fe2fa8310f94b4ed420c162e357 (patch) | |
tree | 38b21fa938925fb36e52c0f6e8a3510ddfab6ec2 /ld | |
parent | 7408b951b8e0a26c72965918c8dada6df8b229d3 (diff) | |
download | gdb-64b59b6bb2261fe2fa8310f94b4ed420c162e357.zip gdb-64b59b6bb2261fe2fa8310f94b4ed420c162e357.tar.gz gdb-64b59b6bb2261fe2fa8310f94b4ed420c162e357.tar.bz2 |
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.
Diffstat (limited to 'ld')
-rw-r--r-- | ld/testsuite/ld-elf/elf.exp | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/ld/testsuite/ld-elf/elf.exp b/ld/testsuite/ld-elf/elf.exp index a4f7f60..cf0e949 100644 --- a/ld/testsuite/ld-elf/elf.exp +++ b/ld/testsuite/ld-elf/elf.exp @@ -524,31 +524,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" \ ] \ ] |