Use standard symbol markers in the link script

This commit is contained in:
2025-07-24 10:17:24 +02:00
parent 76b4979067
commit 51ea7ee453
3 changed files with 139 additions and 55 deletions

View File

@@ -8,30 +8,26 @@ PHDRS {
}
SECTIONS {
.text 0x80200000 : {
__kernel_base = .;
KEEP(*(.text.boot));
*(.text .text.*);
} :text
.text 0x80200000 : {
KEEP(*(.text.boot));
*(.text .text.*);
} :text
PROVIDE(estart = .);
.rodata : ALIGN(16) {
*(.rodata .rodata.*);
}
.rodata : ALIGN(16) {
*(.rodata .rodata.*);
}
.data : ALIGN(16) {
*(.data .data.*);
} :data
.data : ALIGN(16) {
*(.data .data.*);
} :data
.bss : ALIGN(16) {
__bss = .;
*(.bss .bss.* .sbss .sbss.*);
__bss_end = .;
}
. = ALIGN(4);
. += 128 * 1024; /* 128KB */
__stack_top = .;
.bss : ALIGN(16) {
__bss = .;
*(.bss .bss.* .sbss .sbss.*);
__bss_end = .;
}
. = ALIGN(CONSTANT(MAXPAGESIZE));
__free_ram = .;
PROVIDE(end = .);
}