aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-cris/tls-dso-dtpoffd4.d
diff options
context:
space:
mode:
authorHans-Peter Nilsson <hp@axis.com>2009-03-24 07:58:23 +0000
committerHans-Peter Nilsson <hp@axis.com>2009-03-24 07:58:23 +0000
commit8f6b092546922043fb2fa279a8f951b719bcda31 (patch)
treeb2fe85d6cb003a5bb04f65e3270b3145c909160e /ld/testsuite/ld-cris/tls-dso-dtpoffd4.d
parent6718f446dafc31e82d1010c272ccb1310a02a1fb (diff)
downloadgdb-8f6b092546922043fb2fa279a8f951b719bcda31.zip
gdb-8f6b092546922043fb2fa279a8f951b719bcda31.tar.gz
gdb-8f6b092546922043fb2fa279a8f951b719bcda31.tar.bz2
* ld-cris/tls-commx.s, ld-cris/tls-dso-dtpoffd2.d,
ld-cris/tls-dso-dtpoffd4.d, ld-cris/tls-dtpoffdx.s, ld-cris/tls-e-dtpoffd1.d: New tests.
Diffstat (limited to 'ld/testsuite/ld-cris/tls-dso-dtpoffd4.d')
-rw-r--r--ld/testsuite/ld-cris/tls-dso-dtpoffd4.d37
1 files changed, 37 insertions, 0 deletions
diff --git a/ld/testsuite/ld-cris/tls-dso-dtpoffd4.d b/ld/testsuite/ld-cris/tls-dso-dtpoffd4.d
new file mode 100644
index 0000000..0f54e61
--- /dev/null
+++ b/ld/testsuite/ld-cris/tls-dso-dtpoffd4.d
@@ -0,0 +1,37 @@
+#source: start1.s
+#source: tls-dtpoffdx.s
+#source: tls-gd-1.s
+#source: tls128.s
+#source: tls-commx.s
+#as: --no-underscore --em=criself --pic -I$srcdir/$subdir
+#ld: -m crislinux --shared
+#objdump: -d -s -t -r -p
+
+# Linking a file with a DTPOFF from a .dtpoffd of a GD COMMON
+# variable, PIC (globally defined here but overridable). Making sure
+# it links and that the offset is correct, locally.
+
+.*: file format elf32-cris
+
+Program Header:
+#...
+ TLS off .*
+ filesz 0x0+80 memsz 0x0+84 flags r--
+#...
+SYMBOL TABLE:
+#...
+0+80 g .tbss 0+4 x
+#...
+Contents of section .rela.dyn:
+ 01a4 b4220000 17030000 00000000 .*
+Contents of section .text:
+ 01b0 41b20000 5fae0c00 .*
+#...
+Contents of section .got:
+ 22a8 38220000 00000000 00000000 00000000 .*
+ 22b8 00000000 .*
+Contents of section .debug_info:
+ 0000 80000000 .*
+#...
+Disassembly of section .text:
+#pass