]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - ld/testsuite/ld-srec/srec.exp
Run more ld tests when not native
[thirdparty/binutils-gdb.git] / ld / testsuite / ld-srec / srec.exp
index eb68d833df19021f773b1b03240a68f1d46a84a1..2720043d9188af53aa5b749490c7059277391a38 100644 (file)
@@ -230,7 +230,7 @@ proc run_srec_test { test objs } {
     # Tell the ELF linker to not do anything clever with .eh_frame,
     # not to put anything in small data, and define various symbols.
     set flags "--traditional-format -G 0 "
-    append flags [ld_simple_link_defsyms]
+    append flags [ld_link_defsyms]
 
     # If the linker script uses SIZEOF_HEADERS, use a -Ttext argument
     # to force both the normal link and the S-record link to be put in
@@ -305,8 +305,8 @@ proc run_srec_test { test objs } {
        set flags "$flags -no-relax"
     }
 
-    if { ![ld_simple_link $ld tmpdir/sr1 "$flags $objs"] \
-        || ![ld_simple_link $ld tmpdir/sr2.sr "$flags --oformat srec $objs"] } {
+    if { ![ld_link $ld tmpdir/sr1 "$flags $objs"] \
+        || ![ld_link $ld tmpdir/sr2.sr "$flags --oformat srec $objs"] } {
        fail $test
        return
     }