aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-elf/dynamic1.ld
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2011-02-25 15:53:24 +0000
committerH.J. Lu <hjl.tools@gmail.com>2011-02-25 15:53:24 +0000
commit6ee6cf6ac1748c5f31a539db85f537b9b25b9ef2 (patch)
tree28f7908347dde82c9e01e5027aeb9b254a9f6ee9 /ld/testsuite/ld-elf/dynamic1.ld
parentee00cd23cfa3bde1468747086437635d4b6698c1 (diff)
downloadgdb-6ee6cf6ac1748c5f31a539db85f537b9b25b9ef2.zip
gdb-6ee6cf6ac1748c5f31a539db85f537b9b25b9ef2.tar.gz
gdb-6ee6cf6ac1748c5f31a539db85f537b9b25b9ef2.tar.bz2
Add a testcase for PR ld/12516.
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.
Diffstat (limited to 'ld/testsuite/ld-elf/dynamic1.ld')
-rw-r--r--ld/testsuite/ld-elf/dynamic1.ld8
1 files changed, 8 insertions, 0 deletions
diff --git a/ld/testsuite/ld-elf/dynamic1.ld b/ld/testsuite/ld-elf/dynamic1.ld
new file mode 100644
index 0000000..d110bf7
--- /dev/null
+++ b/ld/testsuite/ld-elf/dynamic1.ld
@@ -0,0 +1,8 @@
+SECTIONS
+{
+ . = SIZEOF_HEADERS;
+ .text : { *(.text) }
+ .data : { *(.data) }
+ .data1 : { KEEP (*(.data1)) }
+ .dynamic : { *(.dynamic) }
+}