-
Notifications
You must be signed in to change notification settings - Fork 2
/
linker.ld
50 lines (41 loc) · 845 Bytes
/
linker.ld
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
48
49
50
ENTRY(_start)
SECTIONS {
. = 0x80000400;
__boot_start = .;
.boot : {
*(.boot)
. = ALIGN(16);
}
.text : {
*(.text .text.*)
. = ALIGN(16);
}
.rodata : {
*(.rodata .rodata.*)
. = ALIGN(16);
}
.data : {
*(.data .data.*)
. = ALIGN(16);
}
.bss : {
__bss_start = .;
*(.bss .bss.*)
. = ALIGN(16);
__bss_end = .;
}
__rom_end = . - __boot_start + 0xB0001000;
/DISCARD/ : {
*(.MIPS.*)
*(.comment)
*(.mdebug.*)
*(.pdr)
*(.reginfo)
/*
* We may need the global offset table some day.
* Our target is currently set with a static relocation-model, so this
* might not be needed after all.
*/
*(.got)
}
}