summaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-scripts/empty-orphan.t
diff options
context:
space:
mode:
Diffstat (limited to 'ld/testsuite/ld-scripts/empty-orphan.t')
-rw-r--r--ld/testsuite/ld-scripts/empty-orphan.t21
1 files changed, 21 insertions, 0 deletions
diff --git a/ld/testsuite/ld-scripts/empty-orphan.t b/ld/testsuite/ld-scripts/empty-orphan.t
new file mode 100644
index 00000000000..efed7617df0
--- /dev/null
+++ b/ld/testsuite/ld-scripts/empty-orphan.t
@@ -0,0 +1,21 @@
+MEMORY
+{
+ default_mem : ORIGIN = 0x0, LENGTH = 0x100000
+ text_mem : ORIGIN = 0x60000000, LENGTH = 0x100
+ data_mem : ORIGIN = 0x70000000, LENGTH = 0x100
+}
+
+PHDRS
+{
+ default_phdr PT_LOAD;
+ text_phdr PT_LOAD;
+ data_phdr PT_LOAD;
+}
+
+SECTIONS
+{
+ .text : { *(.text) } > text_mem : text_phdr
+ .data : { *(.data) } > data_mem : data_phdr
+ .bss : { *(.bss) } > data_mem : data_phdr
+ /* .orphan_data is an orphan */
+}