* ld-elf/comm-data4.d, ld-elf/comm-data4.s: New test.
authorAlan Modra <amodra@gmail.com>
Thu, 6 Dec 2012 00:10:41 +0000 (00:10 +0000)
committerAlan Modra <amodra@gmail.com>
Thu, 6 Dec 2012 00:10:41 +0000 (00:10 +0000)
* ld-elf/comm-data5.d, ld-elf/comm-data5.s: New test.
* ld-elf/comm-data.exp: Run them.

ld/testsuite/ChangeLog
ld/testsuite/ld-elf/comm-data.exp
ld/testsuite/ld-elf/comm-data4.d [new file with mode: 0644]
ld/testsuite/ld-elf/comm-data4.s [new file with mode: 0644]
ld/testsuite/ld-elf/comm-data5.d [new file with mode: 0644]
ld/testsuite/ld-elf/comm-data5.s [new file with mode: 0644]

index 6f68d809c26a23ab1f84bd4878bc924552a48889..5b1bc8fcfef5df90b0146f8767b4bb73732ff642 100644 (file)
@@ -1,3 +1,9 @@
+2012-12-06  Alan Modra  <amodra@gmail.com>
+
+       * ld-elf/comm-data4.d, ld-elf/comm-data4.s: New test.
+       * ld-elf/comm-data5.d, ld-elf/comm-data5.s: New test.
+       * ld-elf/comm-data.exp: Run them.
+
 2012-12-04  H.J. Lu  <hongjiu.lu@intel.com>
 
        * ld-elf/shared.exp (build_tests): Build libneeded1b.so,
index 71b856d9acf739347d961221959f973e5b74c786..0a624d55492f71d214cc033cace513f8b3cf28a7 100644 (file)
@@ -98,3 +98,6 @@ run_ld_link_tests [list \
        "comm-data3b" \
     ] \
 ]
+
+run_dump_test comm-data4
+run_dump_test comm-data5
diff --git a/ld/testsuite/ld-elf/comm-data4.d b/ld/testsuite/ld-elf/comm-data4.d
new file mode 100644 (file)
index 0000000..05c4401
--- /dev/null
@@ -0,0 +1,6 @@
+#source: comm-data4.s
+#ld: 
+#readelf: -r
+#notarget: hppa64*-*-hpux*
+
+There are no relocations in this file.
diff --git a/ld/testsuite/ld-elf/comm-data4.s b/ld/testsuite/ld-elf/comm-data4.s
new file mode 100644 (file)
index 0000000..ed17cf2
--- /dev/null
@@ -0,0 +1,15 @@
+ .comm i,4,4
+
+ .data
+ .dc.a i
+
+ .globl main
+ .globl start
+ .globl _start
+ .globl __start
+ .text
+main:
+start:
+_start:
+__start:
+ .dc.a 0
diff --git a/ld/testsuite/ld-elf/comm-data5.d b/ld/testsuite/ld-elf/comm-data5.d
new file mode 100644 (file)
index 0000000..78da5c1
--- /dev/null
@@ -0,0 +1,6 @@
+#source: comm-data5.s
+#ld: 
+#readelf: -r
+#notarget: hppa64*-*-hpux*
+
+There are no relocations in this file.
diff --git a/ld/testsuite/ld-elf/comm-data5.s b/ld/testsuite/ld-elf/comm-data5.s
new file mode 100644 (file)
index 0000000..1605b8a
--- /dev/null
@@ -0,0 +1,15 @@
+ .comm i,4,4
+
+ .section .rodata,"a",%progbits
+ .dc.a i
+
+ .globl main
+ .globl start
+ .globl _start
+ .globl __start
+ .text
+main:
+start:
+_start:
+__start:
+ .dc.a 0