chipsalliance / riscv-dv

Random instruction generator for RISC-V processor verification
Apache License 2.0
1.03k stars 330 forks source link

Can riscv-dv support cunstom link.ld? #904

Open 123drf opened 2 years ago

123drf commented 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 = .; }

123drf commented 2 years ago

If customization is supported, only modify link.ld? Or make changes to the assembly file?