-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathkernel.ld
More file actions
24 lines (24 loc) · 704 Bytes
/
Copy pathkernel.ld
File metadata and controls
24 lines (24 loc) · 704 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
ENTRY(kmain)
SECTIONS
{
. = 0x100000;
.text : {
*(.init.text)
*(.text*)
}
.rodata : { *(.rodata*) }
.data : { *(.data*) }
.ramdisk : {
ramdisk_start = .;
*(.ramdisk)
ramdisk_end = .;
}
/* Absolute symbol carrying the embedded image size. C must read it
* by address ((unsigned long)ramdisk_size), never by subtracting
* ramdisk_end - ramdisk_start: pointers into distinct objects make
* the subtraction undefined behaviour (cppcheck subtractPointers). */
ramdisk_size = ramdisk_end - ramdisk_start;
.bss : { *(.bss*) *(COMMON) }
_kernel_end = .;
/DISCARD/ : { *(.comment*) *(.note*) *(.eh_frame*) }
}