-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjames.link.x.original
47 lines (40 loc) · 1018 Bytes
/
james.link.x.original
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/*
BBC micro:bit v2 linker script
Written by the Hut23 Compiler Club
Do not edit this file directly; instead edit the source ".org" file
*/
MEMORY {
FLASH (rx) : ORIGIN = 0x00000000, LENGTH = 512K
RAM (rwx) : ORIGIN = 0x20000000, LENGTH = 128K
CODE_RAM (rwx) : ORIGIN = 0x00800000, LENGTH = 128K
}
SECTIONS {
.text : {
KEEP(*(.vectors))
*(.text*)
*(.rodata*)
} >FLASH
.data : ALIGN(4) {
*(.data)
*(.data.*)
. = ALIGN(4);
} >RAM AT >FLASH
.bss : ALIGN(4) {
*(.bss)
*(.bss.*);
. = ALIGN(4);
} >RAM
}
/* All the memory from the end of bss to the top of RAM */
__heap_start = .;
__stack_top = ORIGIN(RAM) + LENGTH(RAM);
/* VMA of the .data section */
__data_start = ADDR(.data);
__data_end = __data_start + SIZEOF(.data);
/* LMA of the .data section */
__data_load_start = LOADADDR(.data);
/* VMA of the .bss section */
__bss_start = ADDR(.bss);
__bss_end = __bss_start + SIZEOF(.bss);
/* Entry point (for gdb) */
ENTRY(Reset_Handler);