From dbba25aa24f86c1f8c3a0589c82985840adc1b6b Mon Sep 17 00:00:00 2001 From: Richard Qin Date: Wed, 31 Dec 2025 18:00:55 +0800 Subject: dev:Refactor Memory Management and Process Management --- src/user/user.ld | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'src/user/user.ld') diff --git a/src/user/user.ld b/src/user/user.ld index 2111b14..8c9999a 100644 --- a/src/user/user.ld +++ b/src/user/user.ld @@ -1,26 +1,32 @@ -OUTPUT_ARCH(riscv) -ENTRY(_start) +OUTPUT_ARCH( "riscv" ) +ENTRY( _start ) SECTIONS { . = 0x0; - + .text : { *(.text.entry) *(.text .text.*) } .rodata : { + . = ALIGN(16); + *(.srodata .srodata.*) . = ALIGN(16); *(.rodata .rodata.*) } .data : { + . = ALIGN(16); + *(.sdata .sdata.*) . = ALIGN(16); *(.data .data.*) } .bss : { + . = ALIGN(16); + *(.sbss .sbss.*) . = ALIGN(16); *(.bss .bss.*) } -- cgit v1.2.3