Fixed non-zero global variable issue in kernel

This commit is contained in:
songyanguang 2025-01-20 10:58:09 +08:00
parent f872eaea25
commit 6176717125
1 changed files with 4 additions and 0 deletions

View File

@ -85,6 +85,7 @@ SECTIONS
PROVIDE(boot_end_addr = .);
}
. = ALIGN(0x1000);
.text : {
. = ALIGN(0x1000);
*(.text .text.*)
@ -92,6 +93,9 @@ SECTIONS
. = ALIGN(0x1000);
.data : {
. = ALIGN(16);
*(.sdata .sdata.*)
. = ALIGN(16);
*(.data .data.*)
__start_init_task = .;