aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorAlexandre Oliva <aoliva@redhat.com>2003-11-27 02:30:17 +0000
committerAlexandre Oliva <aoliva@redhat.com>2003-11-27 02:30:17 +0000
commitb49dc2a10967778768c61be018ff8ad2dcf131a8 (patch)
tree5b23692fd872d737b26a06aa0140dd7db3ad4d1e /gas
parent331c3da232126f8a9a25e17395e65ab3698ef8a5 (diff)
downloadgdb-b49dc2a10967778768c61be018ff8ad2dcf131a8.zip
gdb-b49dc2a10967778768c61be018ff8ad2dcf131a8.tar.gz
gdb-b49dc2a10967778768c61be018ff8ad2dcf131a8.tar.bz2
* gas/frv/reloc1.[sd]: Test references to external symbols and
inter-section references too.
Diffstat (limited to 'gas')
-rw-r--r--gas/testsuite/ChangeLog5
-rw-r--r--gas/testsuite/gas/frv/reloc1.d23
-rw-r--r--gas/testsuite/gas/frv/reloc1.s13
3 files changed, 39 insertions, 2 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog
index 98ac150..2f0c29e 100644
--- a/gas/testsuite/ChangeLog
+++ b/gas/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2003-11-27 Alexandre Oliva <aoliva@redhat.com>
+
+ * gas/frv/reloc1.[sd]: Test references to external symbols and
+ inter-section references too.
+
2003-11-26 Christian Groessler <chris@groessler.org>
* gas/z8k/jmp-cc.d: New file.
diff --git a/gas/testsuite/gas/frv/reloc1.d b/gas/testsuite/gas/frv/reloc1.d
index 9d7d88f..839db87 100644
--- a/gas/testsuite/gas/frv/reloc1.d
+++ b/gas/testsuite/gas/frv/reloc1.d
@@ -1,8 +1,8 @@
-#objdump: -dr
+#objdump: -Dr
.* elf32-frv
-Disassembly.*:
+Disassembly.*\.text:
.* <begin>:
.*: 80 88 00 00 * nop
@@ -18,4 +18,23 @@ Disassembly.*:
.*: R_FRV_LABEL16 f1
.*: fe 3f ff fe * call .* <f2>
.*: c0 1a ff fd * bra .* <f2>
+.*: 80 3c 00 00 * call.*
+ .*: R_FRV_LABEL24 f3
+.*: c0 1a 00 00 * bra.*
+ .*: R_FRV_LABEL16 f3
\.\.\.
+Disassembly.*\.test:
+.* <beginx>:
+.*: 80 88 00 00 * nop
+.*: 80 3c 00 00 * call.*
+ .*: R_FRV_LABEL24 f1
+.*: c0 1a 00 00 * bra.*
+ .*: R_FRV_LABEL16 f1
+.*: 80 3c 00 05 * call .* <f2\+.*>
+ .*: R_FRV_LABEL24 \.text\+0x14
+.*: c0 1a 00 05 * bra .* <f2\+.*>
+ .*: R_FRV_LABEL16 \.text\+0x14
+.*: 80 3c 00 00 * call.*
+ .*: R_FRV_LABEL24 f3
+.*: c0 1a 00 00 * bra.*
+ .*: R_FRV_LABEL16 f3
diff --git a/gas/testsuite/gas/frv/reloc1.s b/gas/testsuite/gas/frv/reloc1.s
index 5a5ee18..26c36c2 100644
--- a/gas/testsuite/gas/frv/reloc1.s
+++ b/gas/testsuite/gas/frv/reloc1.s
@@ -11,4 +11,17 @@ f2:
bra f1
call f2
bra f2
+
+ call f3
+ bra f3
.space 16
+
+ .section .gnu.linkonce.t.test
+beginx:
+ nop
+ call f1
+ bra f1
+ call f2
+ bra f2
+ call f3
+ bra f3