summaryrefslogtreecommitdiff
path: root/flash/minimon/minimon.lds
diff options
context:
space:
mode:
Diffstat (limited to 'flash/minimon/minimon.lds')
-rw-r--r--flash/minimon/minimon.lds60
1 files changed, 60 insertions, 0 deletions
diff --git a/flash/minimon/minimon.lds b/flash/minimon/minimon.lds
new file mode 100644
index 0000000000..dbdbdc3faa
--- /dev/null
+++ b/flash/minimon/minimon.lds
@@ -0,0 +1,60 @@
+OUTPUT_FORMAT(elf32-sh)
+INPUT(minimon.o)
+
+MEMORY
+{
+ DRAM : ORIGIN = 0x09000000, LENGTH = 0x200000
+}
+
+SECTIONS
+{
+ .startvector :
+ {
+ *(.startvector)
+ . = ALIGN(0x4);
+ } > DRAM
+
+ .got :
+ {
+ *(.got)
+ } > DRAM
+
+ .got.plt :
+ {
+ *(.got.plt)
+ } > DRAM
+
+ .rela.got :
+ {
+ *(.rela.got)
+ } > DRAM
+
+ .text :
+ {
+ . = ALIGN(0x200);
+ *(.entry)
+ *(.text)
+ . = ALIGN(0x4);
+ } > DRAM
+
+ .data :
+ {
+ *(.data)
+ } > DRAM
+
+ .rodata :
+ {
+ *(.rodata)
+ . = ALIGN(0x4);
+ } > DRAM
+
+ .bss :
+ {
+ *(.bss)
+ } > DRAM
+
+ .stack :
+ {
+ *(.stack)
+ } > DRAM
+}