aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2014-01-24 09:03:21 -0800
committerH.J. Lu <hjl.tools@gmail.com>2014-01-24 09:03:21 -0800
commita78ad74bbfbe2bee6b2909e9574892d38082e4ea (patch)
tree530bf7aad65530e180b041c750ffc1575eb50aab /ld/testsuite
parentd85e71fec0aa4d9d8ca0d8c2401cd8ab69fe2edc (diff)
downloadgdb-a78ad74bbfbe2bee6b2909e9574892d38082e4ea.zip
gdb-a78ad74bbfbe2bee6b2909e9574892d38082e4ea.tar.gz
gdb-a78ad74bbfbe2bee6b2909e9574892d38082e4ea.tar.bz2
Add another testcase for PR ld/16498
PR ld/16498 * ld-elf/pr16498b.d: New file. * ld-elf/pr16498b.t: Likewise.
Diffstat (limited to 'ld/testsuite')
-rw-r--r--ld/testsuite/ChangeLog6
-rw-r--r--ld/testsuite/ld-elf/pr16498b.d10
-rw-r--r--ld/testsuite/ld-elf/pr16498b.t6
3 files changed, 22 insertions, 0 deletions
diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog
index 4f0a75b..9e8553a 100644
--- a/ld/testsuite/ChangeLog
+++ b/ld/testsuite/ChangeLog
@@ -1,6 +1,12 @@
2014-01-24 H.J. Lu <hongjiu.lu@intel.com>
PR ld/16498
+ * ld-elf/pr16498b.d: New file.
+ * ld-elf/pr16498b.t: Likewise.
+
+2014-01-24 H.J. Lu <hongjiu.lu@intel.com>
+
+ PR ld/16498
* ld-elf/pr16498a.d: New file.
* ld-elf/pr16498a.s: Likewise.
* ld-elf/pr16498a.t: Likewise.
diff --git a/ld/testsuite/ld-elf/pr16498b.d b/ld/testsuite/ld-elf/pr16498b.d
new file mode 100644
index 0000000..c70c239
--- /dev/null
+++ b/ld/testsuite/ld-elf/pr16498b.d
@@ -0,0 +1,10 @@
+#source: pr16498a.s
+#ld: -shared -T pr16498b.t
+#readelf: -l --wide
+#target: *-*-linux* *-*-gnu* *-*-nacl*
+
+#...
+ TLS .*
+#...
+[ ]+[0-9]+[ ]+tls_data_init .tbss[ ]*
+#pass
diff --git a/ld/testsuite/ld-elf/pr16498b.t b/ld/testsuite/ld-elf/pr16498b.t
new file mode 100644
index 0000000..b88f9b8
--- /dev/null
+++ b/ld/testsuite/ld-elf/pr16498b.t
@@ -0,0 +1,6 @@
+SECTIONS
+{
+ tls_data_init : { *(.tdata) }
+ .data : { *(.data)
+ }
+}