aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans-Peter Nilsson <hp@axis.com>2008-12-21 20:18:06 +0000
committerHans-Peter Nilsson <hp@axis.com>2008-12-21 20:18:06 +0000
commitc49ff77ad3b78430b4f4e20a5536185fc9f685c7 (patch)
tree36c7547e1b43d085088c6dc7fc817cdb36382803
parentd2b52762b71a9e1bddd70635b791c3c15b039377 (diff)
downloadgdb-c49ff77ad3b78430b4f4e20a5536185fc9f685c7.zip
gdb-c49ff77ad3b78430b4f4e20a5536185fc9f685c7.tar.gz
gdb-c49ff77ad3b78430b4f4e20a5536185fc9f685c7.tar.bz2
* gas/cris/rd-dtpoffd1.d, gas/cris/rd-dtpoffd1.s: New test.
-rw-r--r--gas/testsuite/ChangeLog4
-rw-r--r--gas/testsuite/gas/cris/rd-dtpoffd1.d17
-rw-r--r--gas/testsuite/gas/cris/rd-dtpoffd1.s16
3 files changed, 37 insertions, 0 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog
index c3371a6..9dae6c3 100644
--- a/gas/testsuite/ChangeLog
+++ b/gas/testsuite/ChangeLog
@@ -1,3 +1,7 @@
+2008-12-21 Hans-Peter Nilsson <hp@axis.com>
+
+ * gas/cris/rd-dtpoffd1.d, gas/cris/rd-dtpoffd1.s: New test.
+
2008-12-20 H.J. Lu <hongjiu.lu@intel.com>
* gas/i386/i386.exp: Run opts, opts-intel, sse2avx-opts,
diff --git a/gas/testsuite/gas/cris/rd-dtpoffd1.d b/gas/testsuite/gas/cris/rd-dtpoffd1.d
new file mode 100644
index 0000000..16fc9bc
--- /dev/null
+++ b/gas/testsuite/gas/cris/rd-dtpoffd1.d
@@ -0,0 +1,17 @@
+#objdump: -sr
+#as: --em=criself
+
+# Checking .dtpoffd output.
+
+.*: file format .*-cris
+
+RELOCATION RECORDS FOR \[.text\]:
+OFFSET TYPE VALUE
+0+4 R_CRIS_32_DTPREL extsym\+0x0000002a
+0+c R_CRIS_32_DTPREL x\+0x00000002
+
+Contents of section .text:
+ 0000 54686973 00000000 69732061 00000000 .*
+ 0010 99665655 .*
+Contents of section .tdata:
+ 0000 00000000 .*
diff --git a/gas/testsuite/gas/cris/rd-dtpoffd1.s b/gas/testsuite/gas/cris/rd-dtpoffd1.s
new file mode 100644
index 0000000..06025e6
--- /dev/null
+++ b/gas/testsuite/gas/cris/rd-dtpoffd1.s
@@ -0,0 +1,16 @@
+; Check that .dtpoffd trivially works, for external (though presumably
+; module-local) and local symbols with offsets.
+
+ .section .tdata,"awT",@progbits
+ .type x, @object
+ .size x, 4
+x:
+ .dword 0
+
+ .text
+start:
+ .dword 0x73696854
+ .dtpoffd extsym+42
+ .dword 0x61207369
+ .dtpoffd x+2
+ .dword 0x55566699