Open 123drf opened 2 years ago
/ Copyright 2018 Google LLC
OUTPUT_ARCH( "riscv" ) ENTRY(_start)
SECTIONS { . = 0x80000000; .text : { (.text) } . = ALIGN(0x1000); .tohost : { (.tohost) } . = ALIGN(0x1000); .page_table : { (.page_table) } .data : { (.data) } .user_stack : { (.user_stack) } .kernel_data : { (.kernel_data) } .kernel_stack : { (.kernel_stack) } .bss : { (.bss) } _end = .; }
If customization is supported, only modify link.ld? Or make changes to the assembly file?
/ Copyright 2018 Google LLC
OUTPUT_ARCH( "riscv" ) ENTRY(_start)
SECTIONS { . = 0x80000000; .text : { (.text) } . = ALIGN(0x1000); .tohost : { (.tohost) } . = ALIGN(0x1000); .page_table : { (.page_table) } .data : { (.data) } .user_stack : { (.user_stack) } .kernel_data : { (.kernel_data) } .kernel_stack : { (.kernel_stack) } .bss : { (.bss) } _end = .; }