aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-arc/arc.exp
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2016-07-15 12:00:03 +0100
committerNick Clifton <nickc@redhat.com>2016-07-15 12:00:03 +0100
commitf7e8b360fe6dd93aae7cb4af554dc66364da4fe0 (patch)
treeb7ff85a7816a3b3de75e6a64112a418fe2c527c4 /ld/testsuite/ld-arc/arc.exp
parent003c15c9fdfc1ef7038ed3306ae166e60663e7ca (diff)
downloadgdb-f7e8b360fe6dd93aae7cb4af554dc66364da4fe0.zip
gdb-f7e8b360fe6dd93aae7cb4af554dc66364da4fe0.tar.gz
gdb-f7e8b360fe6dd93aae7cb4af554dc66364da4fe0.tar.bz2
Tidy up debugging in the ARC port of the BFD library.
bfd * elf32-arc.c (PR_DEBUG): Delete. Fix printing of debug information. Fix formatting of debug statements. (debug_arc_reloc): Handle symbols that are not from an input file. (arc_do_relocation): Remove excessive exclamation points. (elf_arc_relocate_section): Print an informative message if the relocation fails, even if debugging is not enabled. * arc-got.h: Fix formatting. Fix printing of debug information. (new_got_entry_to_list): Use xmalloc. * config.bfd: use the big-endian arc vector as the default vector for big-endian arc targets. ld * testsuite/ld-arc/arc.exp: Always run the sda-relocs test in little endian mode.
Diffstat (limited to 'ld/testsuite/ld-arc/arc.exp')
-rw-r--r--ld/testsuite/ld-arc/arc.exp4
1 files changed, 3 insertions, 1 deletions
diff --git a/ld/testsuite/ld-arc/arc.exp b/ld/testsuite/ld-arc/arc.exp
index f8838cc..700edff 100644
--- a/ld/testsuite/ld-arc/arc.exp
+++ b/ld/testsuite/ld-arc/arc.exp
@@ -28,9 +28,11 @@ foreach arc_test $arc_test_list {
run_dump_test [file rootname $arc_test]
}
+# Note - we force the generation of little endian binaries, even if the default is
+# for big endian, because the sda-relocs.ld script selects little endian output.
set arccommon_tests {
{ "SDA relocs"
- "-q -T sda-relocs.ld" "" "-mcpu=archs" {sda-relocs.s}
+ "-q -T sda-relocs.ld -A elf32-arclittle" "" "-mcpu=archs -EL" {sda-relocs.s}
{{objdump -fdw sda-relocs.dd} {readelf --relocs sda-relocs.rd}}
"sda-relocs.so" }
}