forked from jakejack13/sos
-
Notifications
You must be signed in to change notification settings - Fork 0
/
link.ld
27 lines (26 loc) · 825 Bytes
/
link.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
PROVIDE(__pagespace_size = 512 * 1024 * 1024);
SECTIONS
{
. = 0x80000; /* Kernel load address for AArch64 */
PROVIDE(__stack_start = .); /* Stack grows down from kernel code */
.text : { KEEP(*(.text.boot)) *(.text .text.* .gnu.linkonce.t*) }
.rodata : { *(.rodata .rodata.* .gnu.linkonce.r*) }
PROVIDE(_data = .);
.data : { *(.data .data.* .gnu.linkonce.d*) }
.bss (NOLOAD) : {
. = ALIGN(16);
__bss_start = .;
*(.bss .bss.*)
*(COMMON)
__bss_end = .;
}
.pages (NOLOAD) : {
. = ALIGN(16);
PROVIDE(__pagespace_start = .);
. = __pagespace_start + __pagespace_size;
__pagespace_end = .;
}
_end = .;
/DISCARD/ : { *(.comment) *(.gnu*) *(.note*) *(.eh_frame*) }
}
__bss_size = (__bss_end - __bss_start)>>3;