Fix linker script

This commit is contained in:
Olof Kindgren 2020-03-22 15:19:55 +01:00
parent 2a7596b51d
commit b4a0015dc4
2 changed files with 1 additions and 9 deletions

View file

@ -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 $< $@

View file

@ -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 = .;
}