]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* ld-cris/tls-commx.s, ld-cris/tls-dso-dtpoffd2.d,
authorHans-Peter Nilsson <hp@axis.com>
Tue, 24 Mar 2009 07:58:23 +0000 (07:58 +0000)
committerHans-Peter Nilsson <hp@axis.com>
Tue, 24 Mar 2009 07:58:23 +0000 (07:58 +0000)
ld-cris/tls-dso-dtpoffd4.d, ld-cris/tls-dtpoffdx.s,
ld-cris/tls-e-dtpoffd1.d: New tests.

ld/testsuite/ChangeLog
ld/testsuite/ld-cris/tls-commx.s [new file with mode: 0644]
ld/testsuite/ld-cris/tls-dso-dtpoffd2.d [new file with mode: 0644]
ld/testsuite/ld-cris/tls-dso-dtpoffd4.d [new file with mode: 0644]
ld/testsuite/ld-cris/tls-dtpoffdx.s [new file with mode: 0644]
ld/testsuite/ld-cris/tls-e-dtpoffd1.d [new file with mode: 0644]

index 1c54a64f6a9d7b55e281397e4ed3bfaa38522e3f..b2f24b40d3393e2ba960b7c474fb06694dd554f5 100644 (file)
@@ -1,5 +1,9 @@
 2009-03-24  Hans-Peter Nilsson  <hp@axis.com>
 
+       * 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.
+
        * ld-cris/tls-e-20.d, ld-cris/tls-e-20a.d, ld-cris/tls-e-21.d,
        ld-cris/tls-e-80.d, ld-cris/tls-gd-3.d, ld-cris/tls-gd-3h.d,
        ld-cris/tls-global-74.d, ld-cris/tls-ldgde-14.d,
diff --git a/ld/testsuite/ld-cris/tls-commx.s b/ld/testsuite/ld-cris/tls-commx.s
new file mode 100644 (file)
index 0000000..3fa4183
--- /dev/null
@@ -0,0 +1 @@
+       .tls_common x,4,4
diff --git a/ld/testsuite/ld-cris/tls-dso-dtpoffd2.d b/ld/testsuite/ld-cris/tls-dso-dtpoffd2.d
new file mode 100644 (file)
index 0000000..1db2b9a
--- /dev/null
@@ -0,0 +1,37 @@
+#source: start1.s
+#source: tls-dtpoffdx.s
+#source: tls-gd-1.s
+#source: tls128.s
+#source: tls-x.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 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+84 memsz 0x0+84 flags r--
+#...
+SYMBOL TABLE:
+#...
+0+80 g       .tdata    0+4 x
+#...
+Contents of section .rela.dyn:
+ 01a4 b8220000 17030000 00000000           .*
+Contents of section .text:
+ 01b0 41b20000 5fae0c00                    .*
+#...
+Contents of section .got:
+ 22ac 3c220000 00000000 00000000 00000000  .*
+ 22bc 00000000                             .*
+Contents of section .debug_info:
+ 0000 80000000                             .*
+#...
+Disassembly of section .text:
+#pass
diff --git a/ld/testsuite/ld-cris/tls-dso-dtpoffd4.d b/ld/testsuite/ld-cris/tls-dso-dtpoffd4.d
new file mode 100644 (file)
index 0000000..0f54e61
--- /dev/null
@@ -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
diff --git a/ld/testsuite/ld-cris/tls-dtpoffdx.s b/ld/testsuite/ld-cris/tls-dtpoffdx.s
new file mode 100644 (file)
index 0000000..99f331c
--- /dev/null
@@ -0,0 +1,2 @@
+ .section .debug_info
+ .dtpoffd x
diff --git a/ld/testsuite/ld-cris/tls-e-dtpoffd1.d b/ld/testsuite/ld-cris/tls-e-dtpoffd1.d
new file mode 100644 (file)
index 0000000..e81485b
--- /dev/null
@@ -0,0 +1,32 @@
+#source: start1.s
+#source: tls-dtpoffdx.s
+#source: tls-gd-1.s
+#source: tls128.s
+#source: tls-x.s
+#as: --no-underscore --em=criself --pic -I$srcdir/$subdir
+#ld: -m crislinux
+#objdump: -d -s -t -r -p
+
+.*:     file format elf32-cris
+
+Program Header:
+#...
+     TLS off  .*
+         filesz 0x0+84 memsz 0x0+84 flags r--
+private flags = 0:
+
+SYMBOL TABLE:
+#...
+0+80 g       .tdata    0+4 x
+#...
+Contents of section .text:
+ 80094 41b20000 5fae0c00                    .*
+Contents of section .tdata:
+#...
+Contents of section .got:
+ 82120 00000000 00000000 00000000 01000000  .*
+ 82130 80000000                             .*
+Contents of section .debug_info:
+ 0000 fcffffff                             .*
+Contents of section .debug_line:
+#pass