OSDN Git Service

Add a testcase for PR ld/12516.
authorhjl <hjl>
Sat, 26 Feb 2011 00:53:24 +0000 (00:53 +0000)
committerhjl <hjl>
Sat, 26 Feb 2011 00:53:24 +0000 (00:53 +0000)
2011-02-25  H.J. Lu  <hongjiu.lu@intel.com>

PR ld/12516
* ld-elf/dynamic1.d: New.
* ld-elf/dynamic1.ld: Likewise.
* ld-elf/dynamic1.s: Likewise.

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

index b7de27d..4ff663f 100644 (file)
@@ -1,3 +1,10 @@
+2011-02-25  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR ld/12516
+       * ld-elf/dynamic1.d: New.
+       * ld-elf/dynamic1.ld: Likewise.
+       * ld-elf/dynamic1.s: Likewise.
+
 2011-02-25  Alan Modra  <amodra@gmail.com>
 
        * ld-mn10300/i135409-3.s: Correct .size label reference.
diff --git a/ld/testsuite/ld-elf/dynamic1.d b/ld/testsuite/ld-elf/dynamic1.d
new file mode 100644 (file)
index 0000000..6a8ba55
--- /dev/null
@@ -0,0 +1,10 @@
+#ld: -shared -T dynamic1.ld
+#readelf: -l --wide
+#target: *-*-linux* *-*-gnu*
+
+#...
+ Section to Segment mapping:
+  Segment Sections...
+#...
+   0[1-9]     .dynamic[        ]*
+#pass
diff --git a/ld/testsuite/ld-elf/dynamic1.ld b/ld/testsuite/ld-elf/dynamic1.ld
new file mode 100644 (file)
index 0000000..d110bf7
--- /dev/null
@@ -0,0 +1,8 @@
+SECTIONS
+{
+  . = SIZEOF_HEADERS;
+  .text : { *(.text) }
+  .data : { *(.data) }
+  .data1 : { KEEP (*(.data1)) }
+  .dynamic : { *(.dynamic) }
+}
diff --git a/ld/testsuite/ld-elf/dynamic1.s b/ld/testsuite/ld-elf/dynamic1.s
new file mode 100644 (file)
index 0000000..f1caf0e
--- /dev/null
@@ -0,0 +1,2 @@
+.section .data1,"aw"
+.balign 16