1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- OUTPUT_ARCH(riscv)
- ENTRY(_start)
- BASE_ADDRESS = 0x80400000;
- SECTIONS
- {
- /* Load the kernel at this address: "." means the current address */
- . = BASE_ADDRESS;
- start = .;
- .text : {
- stext = .;
- *(.text.entry)
- *(.text .text.*)
- . = ALIGN(4K);
- etext = .;
- }
- .rodata : {
- srodata = .;
- *(.rodata .rodata.*)
- . = ALIGN(4K);
- erodata = .;
- }
- .data : {
- sdata = .;
- *(.data .data.*)
- *(.sdata .sdata.*)
- edata = .;
- }
- .stack : {
- *(.bss.stack)
- }
- .bss : {
- sbss = .;
- *(.bss .bss.*)
- *(.sbss .sbss.*)
- ebss = .;
- }
- . = ALIGN(4K);
- PROVIDE(end = .);
- }
|