aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2005-12-18 23:50:41 +0000
committerH.J. Lu <hjl.tools@gmail.com>2005-12-18 23:50:41 +0000
commit7a95b1bd530314c405350d1ce1d97c254649de74 (patch)
treeda576b2781934e0ee9f4894f8b8a8a0bcf9e2c7f
parent3981a2d0fe9a65699fd78450c5029fedd23d6ac7 (diff)
downloadgdb-7a95b1bd530314c405350d1ce1d97c254649de74.zip
gdb-7a95b1bd530314c405350d1ce1d97c254649de74.tar.gz
gdb-7a95b1bd530314c405350d1ce1d97c254649de74.tar.bz2
2005-12-18 H.J. Lu <hongjiu.lu@intel.com>
PR ld/2065 * ld-elf/orphan2.d: New file. * ld-elf/orphan2.s: Likewise.
-rw-r--r--ld/testsuite/ChangeLog6
-rw-r--r--ld/testsuite/ld-elf/orphan2.d8
-rw-r--r--ld/testsuite/ld-elf/orphan2.s4
3 files changed, 18 insertions, 0 deletions
diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog
index b2f9f97..b11179d 100644
--- a/ld/testsuite/ChangeLog
+++ b/ld/testsuite/ChangeLog
@@ -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
index 0000000..867a4a9
--- /dev/null
+++ b/ld/testsuite/ld-elf/orphan2.d
@@ -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
index 0000000..bed8dcd
--- /dev/null
+++ b/ld/testsuite/ld-elf/orphan2.s
@@ -0,0 +1,4 @@
+ .text
+ .long 0
+ .section .modinfo,"a","progbits"
+ .long 0