summaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-nios2/emit-relocs-1.ld
diff options
context:
space:
mode:
Diffstat (limited to 'ld/testsuite/ld-nios2/emit-relocs-1.ld')
-rw-r--r--ld/testsuite/ld-nios2/emit-relocs-1.ld20
1 files changed, 20 insertions, 0 deletions
diff --git a/ld/testsuite/ld-nios2/emit-relocs-1.ld b/ld/testsuite/ld-nios2/emit-relocs-1.ld
new file mode 100644
index 0000000..1879ef4
--- /dev/null
+++ b/ld/testsuite/ld-nios2/emit-relocs-1.ld
@@ -0,0 +1,20 @@
+ENTRY(_start)
+SECTIONS
+{
+ . = 0x80000;
+ .text : { *(.text) }
+
+ . = ALIGN (0x400);
+ .merge1 : { *(.merge1) }
+
+ . = ALIGN (0x400);
+ .merge2 : { *(.merge2) }
+
+ . = ALIGN (0x400);
+ .merge3 : { *(.merge3) }
+
+ . = ALIGN (0x400);
+ .data : { *(.data) }
+
+ /DISCARD/ : { *(*) }
+}