summaryrefslogtreecommitdiffstats
path: root/binutils-2.21/ld/testsuite/ld-elf/orphan4.ld
diff options
context:
space:
mode:
Diffstat (limited to 'binutils-2.21/ld/testsuite/ld-elf/orphan4.ld')
-rw-r--r--binutils-2.21/ld/testsuite/ld-elf/orphan4.ld13
1 files changed, 13 insertions, 0 deletions
diff --git a/binutils-2.21/ld/testsuite/ld-elf/orphan4.ld b/binutils-2.21/ld/testsuite/ld-elf/orphan4.ld
new file mode 100644
index 0000000..ab9bc9c
--- /dev/null
+++ b/binutils-2.21/ld/testsuite/ld-elf/orphan4.ld
@@ -0,0 +1,13 @@
+/* The .foo section doesn't specify *any* objects, but the object
+ we're linking has sections named ".foo". Make sure these sections
+ are linked into the .foo output section anyway. The bug that was
+ fixed was that a new .foo output section would be created at
+ address 0. */
+
+SECTIONS {
+ .foo 0x00001000 : {
+ }
+ .text 0x00002000 : {
+ *(.text);
+ }
+}