]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
PR22836 testcases
authorAlan Modra <amodra@gmail.com>
Wed, 14 Feb 2018 01:08:03 +0000 (11:38 +1030)
committerH.J. Lu <hjl.tools@gmail.com>
Mon, 19 Mar 2018 15:08:01 +0000 (08:08 -0700)
PR 22836
* testsuite/ld-elf/pr22836-1.s: New file.
* testsuite/ld-elf/pr22836-1a.d: Likewise.
* testsuite/ld-elf/pr22836-1b.d: Likewise.

(cherry picked from commit 60f763ee16fca2cd1ec9fa6960f765de9b26ef70)

ld/ChangeLog
ld/testsuite/ld-elf/pr22836-1.s [new file with mode: 0644]
ld/testsuite/ld-elf/pr22836-1a.d [new file with mode: 0644]
ld/testsuite/ld-elf/pr22836-1b.d [new file with mode: 0644]

index f47f7c8373ded0fdae7ca7506de7dad90cae4647..6cea82b6adbe3155b8f4a46afc144bb1305eaa55 100644 (file)
@@ -1,3 +1,13 @@
+2018-03-19  H.J. Lu  <hongjiu.lu@intel.com>
+
+       Backport from master branch
+       2018-02-14  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR 22836
+       * testsuite/ld-elf/pr22836-1.s: New file.
+       * testsuite/ld-elf/pr22836-1a.d: Likewise.
+       * testsuite/ld-elf/pr22836-1b.d: Likewise.
+
 2018-03-19  H.J. Lu  <hongjiu.lu@intel.com>
 
        Backport from master branch
diff --git a/ld/testsuite/ld-elf/pr22836-1.s b/ld/testsuite/ld-elf/pr22836-1.s
new file mode 100644 (file)
index 0000000..8be549e
--- /dev/null
@@ -0,0 +1,4 @@
+       .section        .debug_macro,"G",%progbits,foo,comdat
+       .long   .LASF0
+.LASF0:
+       .string "__STDC__ 1"
diff --git a/ld/testsuite/ld-elf/pr22836-1a.d b/ld/testsuite/ld-elf/pr22836-1a.d
new file mode 100644 (file)
index 0000000..4acf45d
--- /dev/null
@@ -0,0 +1,7 @@
+#source: pr22836-1.s
+#ld: -r -s
+#readelf: -g --wide
+#xfail: d30v-*-* dlx-*-* i960-*-* pj-*-*
+# Targets using the generic linker don't properly support comdat group sections
+
+There are no section groups in this file\.
diff --git a/ld/testsuite/ld-elf/pr22836-1b.d b/ld/testsuite/ld-elf/pr22836-1b.d
new file mode 100644 (file)
index 0000000..30d6fa3
--- /dev/null
@@ -0,0 +1,7 @@
+#source: pr22836-1.s
+#ld: -r -S
+#readelf: -g --wide
+#xfail: d30v-*-* dlx-*-* i960-*-* pj-*-*
+# Targets using the generic linker don't properly support comdat group sections
+
+There are no section groups in this file\.