From b4a0015dc403b5f227d27dc1ef4b6e1dd834dd41 Mon Sep 17 00:00:00 2001 From: Olof Kindgren Date: Sun, 22 Mar 2020 15:19:55 +0100 Subject: [PATCH] Fix linker script --- sw/Makefile | 2 +- sw/link.ld | 8 -------- 2 files changed, 1 insertion(+), 9 deletions(-) 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 = .; } -