user/user.ld

39 lines
1OUTPUT_ARCH( "riscv" )23SECTIONS4{5 . = 0x0;6 7  .text : {8    *(.text .text.*)9  }1011  .rodata : {12    . = ALIGN(16);13    *(.srodata .srodata.*) /* do not need to distinguish this from .rodata */14    . = ALIGN(16);15    *(.rodata .rodata.*)16  }1718  .eh_frame : {19       *(.eh_frame)20       *(.eh_frame.*)21   }2223  . = ALIGN(0x1000);24  .data : {25    . = ALIGN(16);26    *(.sdata .sdata.*) /* do not need to distinguish this from .data */27    . = ALIGN(16);28    *(.data .data.*)29  }3031  .bss : {32    . = ALIGN(16);33    *(.sbss .sbss.*) /* do not need to distinguish this from .bss */34    . = ALIGN(16);35    *(.bss .bss.*)36  }3738  PROVIDE(end = .);39}40