forked from linux4sam/at91bootstrap
-
Notifications
You must be signed in to change notification settings - Fork 1
/
elf32-littlearm-tz.lds
56 lines (51 loc) · 1.12 KB
/
elf32-littlearm-tz.lds
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
51
52
53
54
55
56
OUTPUT_FORMAT("elf32-littlearm", "elf32-littlearm", "elf32-littlearm")
OUTPUT_ARCH(arm)
ENTRY(reset)
SECTIONS
{
. = ALIGN(4);
.text : {
_stext = .;
*(EXCLUDE_FILE (*mon_*.o) .text)
*(EXCLUDE_FILE (*mon_*.o) .rodata) /* read-only data (constants) */
*(EXCLUDE_FILE (*mon_*.o) .rodata*)
. = ALIGN(4);
*(EXCLUDE_FILE (*mon_*.o) .glue_7)
. = ALIGN(4);
*(EXCLUDE_FILE (*mon_*.o) .eh_frame)
. = ALIGN(4);
_etext = . ;
}
. = ALIGN(4);
.dummy : {
_edummy = .;
}
.data : AT (LOADADDR(.dummy)) {
_sdata = .;
*(EXCLUDE_FILE (*mon_*.o) .vectors)
*(EXCLUDE_FILE (*mon_*.o) .data)
_edata = .;
}
/* collect all uninitialized .bss sections */
.bss (NOLOAD) : {
. = ALIGN(4);
_sbss = .;
*(EXCLUDE_FILE (*mon_*.o) .bss)
_ebss = .;
}
. = ALIGN(4);
.mon_dummy : {
_emon_dummy = .;
}
. = ADDR(.text) + 0x8000;
.mon_text : AT (_emon_dummy) {
_smon_text = .;
*mon_vectors.o /* First input */
*mon_init.o
*mon_switch.o
_emon_text = .;
}
}
_romsize = _edata - _stext;
_sramsize = _emon_text - _stext;
end = .; /* define a global symbol marking the end of application */