aboutsummaryrefslogtreecommitdiff
path: root/gas/testsuite
diff options
context:
space:
mode:
authorNathan Sidwell <nathan@codesourcery.com>2010-07-08 06:22:24 +0000
committerNathan Sidwell <nathan@codesourcery.com>2010-07-08 06:22:24 +0000
commitdb187cb9de63e1190a8a409e0371ee74aeadbb5c (patch)
treef4a174d7ce88adddc67cfe8beda7a63405dde89f /gas/testsuite
parentc2397eaa93ab8e3c6ff3008d303a68e4cc3d2edb (diff)
downloadgdb-db187cb9de63e1190a8a409e0371ee74aeadbb5c.zip
gdb-db187cb9de63e1190a8a409e0371ee74aeadbb5c.tar.gz
gdb-db187cb9de63e1190a8a409e0371ee74aeadbb5c.tar.bz2
* config/tc-arm.c (tc_gen_reloc): Add BFD_RELOC_ARM_T32_OFFSET_IMM
error message. testsuite/ * gas/arm/reloc-bad.d: New. * gas/arm/reloc-bad.s: New. * gas/arm/reloc-bad.l: New.
Diffstat (limited to 'gas/testsuite')
-rw-r--r--gas/testsuite/ChangeLog6
-rw-r--r--gas/testsuite/gas/arm/reloc-bad.d2
-rw-r--r--gas/testsuite/gas/arm/reloc-bad.l3
-rw-r--r--gas/testsuite/gas/arm/reloc-bad.s5
4 files changed, 16 insertions, 0 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog
index 2d89bb8..e9dbfe7 100644
--- a/gas/testsuite/ChangeLog
+++ b/gas/testsuite/ChangeLog
@@ -1,3 +1,9 @@
+2010-07-08 Daniel Gutson <dgutson@codesourcery.com>
+
+ * gas/arm/reloc-bad.d: New.
+ * gas/arm/reloc-bad.s: New.
+ * gas/arm/reloc-bad.l: New.
+
2010-07-06 Maciej W. Rozycki <macro@codesourcery.com>
* gas/mips/elf-rel27.d: New test for HI16/LO16 relocation
diff --git a/gas/testsuite/gas/arm/reloc-bad.d b/gas/testsuite/gas/arm/reloc-bad.d
new file mode 100644
index 0000000..4866871
--- /dev/null
+++ b/gas/testsuite/gas/arm/reloc-bad.d
@@ -0,0 +1,2 @@
+#name: Invalid relocations
+#error-output: reloc-bad.l
diff --git a/gas/testsuite/gas/arm/reloc-bad.l b/gas/testsuite/gas/arm/reloc-bad.l
new file mode 100644
index 0000000..a95bb99
--- /dev/null
+++ b/gas/testsuite/gas/arm/reloc-bad.l
@@ -0,0 +1,3 @@
+[^:]*: Assembler messages:
+[^:]*:5: Error: internal_relocation \(type: OFFSET_IMM\) not fixed up
+[^:]*:3: Error: cannot represent T32_OFFSET_IMM relocation in this object file format
diff --git a/gas/testsuite/gas/arm/reloc-bad.s b/gas/testsuite/gas/arm/reloc-bad.s
new file mode 100644
index 0000000..88c45c8
--- /dev/null
+++ b/gas/testsuite/gas/arm/reloc-bad.s
@@ -0,0 +1,5 @@
+.syntax unified
+.thumb
+ldr r0, 0
+.arm
+ldr r0, 0