-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathaarch64-link-bsp.lds
More file actions
46 lines (39 loc) · 1.1 KB
/
aarch64-link-bsp.lds
File metadata and controls
46 lines (39 loc) · 1.1 KB
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
ENTRY(_start)
SECTIONS
{
. = 0x80000; /* replaced by sed */
__ram_start = .;
.init : { KEEP(*(.init)) }
.text : { *(.text .text.* .gnu.linkonce.t*) }
.fini :
{
KEEP (*(SORT_NONE(.fini)))
}
PROVIDE (__etext = .);
PROVIDE (_etext = .);
PROVIDE (etext = .);
.rodata : { *(.rodata .rodata.* .gnu.linkonce.r*) }
.eh_frame_hdr : { *(.eh_frame_hdr) *(.eh_frame_entry .eh_frame_entry.*) }
. = ALIGN(8);
PROVIDE(__eh_frame = .);
.eh_frame : { KEEP (*(.eh_frame)) *(.eh_frame.*) }
PROVIDE(_data = .);
.data : ALIGN(1024 * 4) {
__data_start = .;
*(.data .data.* .gnu.linkonce.d*)
__data_end = .;
}
.bss (NOLOAD) : ALIGN(1024 * 4) {
__bss_start = .;
*(.bss .bss.*)
*(COMMON)
__bss_end = .;
}
. = ALIGN(1024 * 4);
/* 8MiB space for EL1 */
__stack_el1_end = .;
__stack_el1_start = __stack_el1_end + 1024 * 1024 * 2 * 4;
__free_mem_start = __stack_el1_start;
/DISCARD/ : { *(.comment) *(.gnu*) *(.note*) }
}
__bss_size = (__bss_end - __bss_start) >> 3;