-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlayout.ld
More file actions
37 lines (29 loc) · 729 Bytes
/
layout.ld
File metadata and controls
37 lines (29 loc) · 729 Bytes
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
SECTIONS {
. = 0x80000; /* Raspbery Pi 3 Aarch64 (kernel8.img) load address */
/* start of the binary */
_start = .;
.text : {
KEEP(*(.text.init)) /* from init.S */
*(.text .text.* .gnu.linkonce.t*)
}
.rodata : {
*(.rodata .rodata.* .gnu.linkonce.r*)
}
.data : {
*(.data .data.* .gnu.linkonce.d*)
}
.bss (NOLOAD) : {
. = ALIGN(32);
__bss_start = .;
*(.bss .bss.*)
*(COMMON)
. = ALIGN(8);
__bss_end = .;
}
/* end of the binary */
_end = ALIGN(8);
/* number of bytes in BSS section and complete binary */
__bss_length = (__bss_end - __bss_start);
__binary_length = (_end - _start);
/DISCARD/ : { *(.comment) *(.gnu*) *(.note*) *(.eh_frame*) }
}