From 3935e1af80865293a2a63395461872ea7c78615d Mon Sep 17 00:00:00 2001 From: Richard Sandiford Date: Fri, 17 Aug 2007 13:22:44 +0000 Subject: [PATCH] ld/testsuite/ * lib/ld-lib.exp (run_dump_test): Allow [big_or_little_endian] to appear in assembler and linker options. * ld-mips-elf/vxworks1-static.d (ld): Add [big_or_little_endian]. --- ld/testsuite/ChangeLog | 6 ++++++ ld/testsuite/ld-mips-elf/vxworks1-static.d | 2 +- ld/testsuite/lib/ld-lib.exp | 4 ++++ 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog index eba8a7a9f11..b504105cfb0 100644 --- a/ld/testsuite/ChangeLog +++ b/ld/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2007-08-17 Richard Sandiford + + * lib/ld-lib.exp (run_dump_test): Allow [big_or_little_endian] + to appear in assembler and linker options. + * ld-mips-elf/vxworks1-static.d (ld): Add [big_or_little_endian]. + 2007-08-16 Alan Modra * ld-srec/srec.exp: Always pass "-G 0". Remove all powerpc diff --git a/ld/testsuite/ld-mips-elf/vxworks1-static.d b/ld/testsuite/ld-mips-elf/vxworks1-static.d index 88c0baf1bbb..69765ae5ab4 100644 --- a/ld/testsuite/ld-mips-elf/vxworks1-static.d +++ b/ld/testsuite/ld-mips-elf/vxworks1-static.d @@ -1,4 +1,4 @@ #name: VxWorks executable test 1 (static) #source: vxworks1.s -#ld: tmpdir/libvxworks1.so -Tvxworks1.ld +#ld: tmpdir/libvxworks1.so -Tvxworks1.ld [big_or_little_endian] #error: Dynamic sections created in non-dynamic link diff --git a/ld/testsuite/lib/ld-lib.exp b/ld/testsuite/lib/ld-lib.exp index c983f1b4bf7..878af0c5130 100644 --- a/ld/testsuite/lib/ld-lib.exp +++ b/ld/testsuite/lib/ld-lib.exp @@ -708,6 +708,10 @@ proc run_dump_test { name } { } set opts($opt_name) [concat $opts($opt_name) $opt_val] } + foreach opt { as ld } { + regsub {\[big_or_little_endian\]} $opts($opt) \ + [big_or_little_endian] opts($opt) + } # Decide early whether we should run the test for this target. if { [llength $opts(target)] > 0 } { -- 2.30.2