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 b2f9f97..b11179d 100644 (file)
@@ -1,5 +1,11 @@
 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.
        * ld-elf/unknown2.s: Likewise.
 
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