mirror of
https://github.com/olofk/serv.git
synced 2025-04-20 03:47:09 -04:00
Fix linker script
This commit is contained in:
parent
2a7596b51d
commit
b4a0015dc4
2 changed files with 1 additions and 9 deletions
|
@ -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 = .;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue