aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite
diff options
context:
space:
mode:
authorMaxim Kuvyrkov <maxim@kugelworks.com>2011-04-15 09:58:23 +0000
committerMaxim Kuvyrkov <maxim@kugelworks.com>2011-04-15 09:58:23 +0000
commit9c68f58e48030d125e085999b3778c22534e7bed (patch)
tree96e4ffec75d9be450698fe9d2547a2212d70b7db /ld/testsuite
parentc8d895f1293fee155ac564f357f4c45188297dd8 (diff)
downloadgdb-9c68f58e48030d125e085999b3778c22534e7bed.zip
gdb-9c68f58e48030d125e085999b3778c22534e7bed.tar.gz
gdb-9c68f58e48030d125e085999b3778c22534e7bed.tar.bz2
* ld-m68k/tls-gd-ie-1.d: Stabilize test.
* ld-m68k/tls-gd-3.[sd]: New test.
Diffstat (limited to 'ld/testsuite')
-rw-r--r--ld/testsuite/ChangeLog5
-rw-r--r--ld/testsuite/ld-m68k/tls-gd-3.d8
-rw-r--r--ld/testsuite/ld-m68k/tls-gd-3.s17
-rw-r--r--ld/testsuite/ld-m68k/tls-gd-ie-1.d6
4 files changed, 33 insertions, 3 deletions
diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog
index 2c16bda0..1fa7760 100644
--- a/ld/testsuite/ChangeLog
+++ b/ld/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
+
+ * ld-m68k/tls-gd-ie-1.d: Stabilize test.
+ * ld-m68k/tls-gd-3.[sd]: New test.
+
2011-04-12 Richard Henderson <rth@redhat.com>
* ld-alpha/emptygot.s, ld-alpha/emptygot.nm: New test.
diff --git a/ld/testsuite/ld-m68k/tls-gd-3.d b/ld/testsuite/ld-m68k/tls-gd-3.d
new file mode 100644
index 0000000..d9540988
--- /dev/null
+++ b/ld/testsuite/ld-m68k/tls-gd-3.d
@@ -0,0 +1,8 @@
+#as: -mcpu=5206
+#source: tls-gd-3.s
+#ld: -shared
+#readelf: -x .got
+
+Hex dump of section '.got':
+ 0x[0-9a-f]+ [0-9a-f]+ 00000000 00000000 00000000 ..!.............
+ 0x[0-9a-f]+ ffff8000 00000000 ........
diff --git a/ld/testsuite/ld-m68k/tls-gd-3.s b/ld/testsuite/ld-m68k/tls-gd-3.s
new file mode 100644
index 0000000..ff0ee84
--- /dev/null
+++ b/ld/testsuite/ld-m68k/tls-gd-3.s
@@ -0,0 +1,17 @@
+#NO_APP
+ .text
+ .align 2
+ .globl foo
+ .type foo, @function
+foo:
+ pea x@TLSGD(%a5)
+ .size foo, .-foo
+ .globl x
+ .hidden x
+ .section .tdata,"awT",@progbits
+ .align 2
+ .type x, @object
+ .size x, 4
+x:
+ .long 0
+ .section .note.GNU-stack,"",@progbits
diff --git a/ld/testsuite/ld-m68k/tls-gd-ie-1.d b/ld/testsuite/ld-m68k/tls-gd-ie-1.d
index 87de346..4626722 100644
--- a/ld/testsuite/ld-m68k/tls-gd-ie-1.d
+++ b/ld/testsuite/ld-m68k/tls-gd-ie-1.d
@@ -20,6 +20,6 @@ Relocation section '.rela.dyn' at offset 0x[0-9a-f]+ contains 5 entries:
Offset Info Type Sym.Value Sym. Name \+ Addend
[0-9a-f]+ [0-9a-f]+ R_68K_32 00000000 __tls_get_addr \+ 0
[0-9a-f]+ [0-9a-f]+ R_68K_32 00000000 __m68k_read_tp \+ 0
-[0-9a-f]+ [0-9a-f]+ R_68K_TLS_DTPMOD3 00000000 x \+ 0
-[0-9a-f]+ [0-9a-f]+ R_68K_TLS_DTPREL3 00000000 x \+ 0
-[0-9a-f]+ [0-9a-f]+ R_68K_TLS_TPREL32 00000000 x \+ 0
+[0-9a-f]+ [0-9a-f]+ R_68K_TLS_.?TP.....? 00000000 x \+ 0
+[0-9a-f]+ [0-9a-f]+ R_68K_TLS_.?TP.....? 00000000 x \+ 0
+[0-9a-f]+ [0-9a-f]+ R_68K_TLS_.?TP.....? 00000000 x \+ 0