diff --git a/sw/Makefile b/sw/Makefile index 15fb42e..1133f0c 100644 --- a/sw/Makefile +++ b/sw/Makefile @@ -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 $< $@ diff --git a/sw/link.ld b/sw/link.ld index db7be33..3398348 100644 --- a/sw/link.ld +++ b/sw/link.ld @@ -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 = .; } -