diff options
Diffstat (limited to 'firmware/app.lds')
-rw-r--r-- | firmware/app.lds | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/firmware/app.lds b/firmware/app.lds index 03bd1b2b54..246c528b65 100644 --- a/firmware/app.lds +++ b/firmware/app.lds | |||
@@ -1,4 +1,4 @@ | |||
1 | ENTRY(_start) | 1 | ENTRY(start) |
2 | OUTPUT_FORMAT(elf32-sh) | 2 | OUTPUT_FORMAT(elf32-sh) |
3 | SECTIONS | 3 | SECTIONS |
4 | { | 4 | { |
@@ -6,14 +6,28 @@ SECTIONS | |||
6 | { | 6 | { |
7 | *(.vectors); | 7 | *(.vectors); |
8 | . = ALIGN(0x200); | 8 | . = ALIGN(0x200); |
9 | *(.text.start) | 9 | *(.init.text) |
10 | } | ||
11 | |||
12 | .text : | ||
13 | { | ||
10 | *(.text) | 14 | *(.text) |
11 | *(.rodata) | ||
12 | } | 15 | } |
13 | 16 | ||
17 | .data : | ||
18 | { | ||
19 | *(.data) | ||
20 | } | ||
21 | |||
22 | .rodata : | ||
23 | { | ||
24 | *(.rodata) | ||
25 | } | ||
14 | .bss : | 26 | .bss : |
15 | { | 27 | { |
28 | _end = .; | ||
16 | _stack = . + 0x1000; | 29 | _stack = . + 0x1000; |
30 | _edata = .; | ||
17 | } | 31 | } |
18 | 32 | ||
19 | .pad 0x0900C800 : | 33 | .pad 0x0900C800 : |