summaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-undefined
diff options
context:
space:
mode:
authorMatthew Hiller <hiller@redhat.com>2001-03-01 19:13:27 +0000
committerMatthew Hiller <hiller@redhat.com>2001-03-01 19:13:27 +0000
commite96c293686e8b9b6ca459d13db9c401ef02fa1e9 (patch)
tree13f708554cf52cddbc2c638fc7e7a5077edb7396 /ld/testsuite/ld-undefined
parent26b7e16ba70e8e790018b4ec9c629ea5be18ae5c (diff)
downloadbinutils-redhat-e96c293686e8b9b6ca459d13db9c401ef02fa1e9.tar.gz
2001-02-28 Matt Hiller <hiller@redhat.com>
* testsuite/ld-scripts/crossref.exp: Initialize flags to [big_or_little_endian]. * testsuite/ld-undefined/undefined.exp: Ditto, and include $flags in ld invocations. * testsuite/lib/ld-lib.exp (big_or_little_endian): Recognize -EB, -eb, EL and el. (is_endian_output_format): New function. (default_ld_link): Set flags to [big_or_little_endian] only if ld is being invoked such that the output format being used is of known endianness. (default_ld_simple_link): Ditto.
Diffstat (limited to 'ld/testsuite/ld-undefined')
-rw-r--r--ld/testsuite/ld-undefined/undefined.exp8
1 files changed, 5 insertions, 3 deletions
diff --git a/ld/testsuite/ld-undefined/undefined.exp b/ld/testsuite/ld-undefined/undefined.exp
index e49b90cc91..05df511377 100644
--- a/ld/testsuite/ld-undefined/undefined.exp
+++ b/ld/testsuite/ld-undefined/undefined.exp
@@ -39,12 +39,14 @@ if ![ld_compile "$CC -g" $srcdir/$subdir/undefined.c tmpdir/undefined.o] {
catch "exec rm -f tmpdir/undefined" exec_output
+set flags [big_or_little_endian]
+
# Using -e start prevents the SunOS linker from trying to build a
# shared library.
-send_log "$ld -e start -o tmpdir/undefined tmpdir/undefined.o\n"
-verbose "$ld -e start -o tmpdir/undefined tmpdir/undefined.o"
+send_log "$ld -e start $flags -o tmpdir/undefined tmpdir/undefined.o\n"
+verbose "$ld -e start $flags -o tmpdir/undefined tmpdir/undefined.o"
-catch "exec $ld -e start -o tmpdir/undefined tmpdir/undefined.o" exec_output
+catch "exec $ld -e start $flags -o tmpdir/undefined tmpdir/undefined.o" exec_output
send_log "$exec_output\n"
verbose "$exec_output"