]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
2005-12-18 H.J. Lu <hongjiu.lu@intel.com>
authorH.J. Lu <hjl.tools@gmail.com>
Sun, 18 Dec 2005 23:50:41 +0000 (23:50 +0000)
committerH.J. Lu <hjl.tools@gmail.com>
Sun, 18 Dec 2005 23:50:41 +0000 (23:50 +0000)
PR ld/2065
* ld-elf/orphan2.d: New file.
* ld-elf/orphan2.s: Likewise.

ld/testsuite/ChangeLog
ld/testsuite/ld-elf/orphan2.d [new file with mode: 0644]
ld/testsuite/ld-elf/orphan2.s [new file with mode: 0644]

index b2f9f976ef7efbb525ea087fa698fa379d193978..b11179d2f3e554f8980869e7e4715424f78c3d27 100644 (file)
@@ -1,3 +1,9 @@
+2005-12-18  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR ld/2065
+       * ld-elf/orphan2.d: New file.
+       * ld-elf/orphan2.s: Likewise.
+
 2005-12-18  H.J. Lu  <hongjiu.lu@intel.com>
 
        * ld-elf/unknown2.d: New.
diff --git a/ld/testsuite/ld-elf/orphan2.d b/ld/testsuite/ld-elf/orphan2.d
new file mode 100644 (file)
index 0000000..867a4a9
--- /dev/null
@@ -0,0 +1,8 @@
+#source: orphan2.s
+#ld: -r
+#readelf: -S --wide
+
+#...
+  \[[ 0-9]+\] \.text[ \t]+PROGBITS[ \t0-9a-f]+AX?.*
+  \[[ 0-9]+\] \.modinfo[ \t]+PROGBITS[ \t0-9a-f]+A.*
+#pass
diff --git a/ld/testsuite/ld-elf/orphan2.s b/ld/testsuite/ld-elf/orphan2.s
new file mode 100644 (file)
index 0000000..bed8dcd
--- /dev/null
@@ -0,0 +1,4 @@
+       .text
+       .long 0
+       .section .modinfo,"a","progbits"
+       .long 0