summaryrefslogtreecommitdiff
path: root/flash/bootloader/bootloader.lds
diff options
context:
space:
mode:
Diffstat (limited to 'flash/bootloader/bootloader.lds')
-rw-r--r--flash/bootloader/bootloader.lds34
1 files changed, 34 insertions, 0 deletions
diff --git a/flash/bootloader/bootloader.lds b/flash/bootloader/bootloader.lds
new file mode 100644
index 0000000000..143d83bdc7
--- /dev/null
+++ b/flash/bootloader/bootloader.lds
@@ -0,0 +1,34 @@
1OUTPUT_FORMAT(elf32-sh)
2INPUT(bootloader.o)
3
4MEMORY
5{
6 /* the boot ROM uses IRAM at 400-430, stay away and start at 500 */
7 IRAM : ORIGIN = 0x0FFFF500, LENGTH = 0xA00
8 /* and leave some room for stack at the end */
9}
10
11SECTIONS
12{
13 .startvector :
14 {
15 *(.startvector)
16 . = ALIGN(0x4);
17 } > IRAM
18
19 .text :
20 {
21 *(.text)
22 . = ALIGN(0x4);
23 } > IRAM
24
25 .data :
26 {
27 *(.data)
28 } > IRAM
29
30 .bss :
31 {
32 *(.bss)
33 } > IRAM
34}