mirror of
https://github.com/olofk/serv.git
synced 2026-02-27 00:39:48 +00:00
Fix linker script
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
%.elf: %.S
|
||||
%.elf: %.S link.ld
|
||||
riscv64-unknown-elf-gcc -nostartfiles -march=rv32i -mabi=ilp32 -Tlink.ld -o$@ $<
|
||||
%.bin: %.elf
|
||||
riscv64-unknown-elf-objcopy -O binary $< $@
|
||||
|
||||
@@ -4,15 +4,7 @@ ENTRY(_start)
|
||||
SECTIONS
|
||||
{
|
||||
. = 0x00000000;
|
||||
.text.init : { *(.text.init) }
|
||||
. = ALIGN(0x1000);
|
||||
.tohost : { *(.tohost) }
|
||||
. = ALIGN(0x1000);
|
||||
.text : { *(.text) }
|
||||
. = ALIGN(0x1000);
|
||||
.data : { *(.data) }
|
||||
.data.string : { *(.data.string)}
|
||||
.bss : { *(.bss) }
|
||||
_end = .;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user