diff options
author | Matthew Hiller <hiller@redhat.com> | 2001-03-01 19:13:27 +0000 |
---|---|---|
committer | Matthew Hiller <hiller@redhat.com> | 2001-03-01 19:13:27 +0000 |
commit | 1688b748f19ed942913859467382773a66ed8943 (patch) | |
tree | 052d27558fa7cfaaa79d9624b74ba37b70ecafc8 /ld/testsuite/ld-undefined/undefined.exp | |
parent | d1b17ab0f362b32de0c012003ff07d745aefe1e6 (diff) | |
download | fsf-binutils-gdb-1688b748f19ed942913859467382773a66ed8943.zip fsf-binutils-gdb-1688b748f19ed942913859467382773a66ed8943.tar.gz fsf-binutils-gdb-1688b748f19ed942913859467382773a66ed8943.tar.bz2 |
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/undefined.exp')
-rw-r--r-- | ld/testsuite/ld-undefined/undefined.exp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/ld/testsuite/ld-undefined/undefined.exp b/ld/testsuite/ld-undefined/undefined.exp index e49b90c..05df511 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" |