More example Makefile cleanup

This commit is contained in:
David Harris 2022-01-25 06:53:03 +00:00
parent 2dc73574d3
commit 2bc7399ad4
4 changed files with 4 additions and 4 deletions

Binary file not shown.

View File

@ -1,9 +1,9 @@
example.objdump: example
riscv64-unknown-elf-objdump -D example > example.objdump
example: example.S
example: example.S Makefile
riscv64-unknown-elf-gcc -o example -march=rv32i -mabi=ilp32 -mcmodel=medany \
-nostartfiles -nostdlib -T../../link/link.ld example.S
-nostartfiles -T../../link/link.ld example.S
clean:
rm -f example example.objdump

View File

@ -3,7 +3,7 @@ TARGET = sumtest
$(TARGET).objdump: $(TARGET)
riscv64-unknown-elf-objdump -D $(TARGET) > $(TARGET).objdump
$(TARGET): $(TARGET).S sum.S
$(TARGET): $(TARGET).S sum.S Makefile
riscv64-unknown-elf-gcc -g -o $(TARGET) -march=rv64gc -mabi=lp64 -mcmodel=medany \
-nostartfiles -T../../link/link.ld $(TARGET).S sum.S

View File

@ -4,7 +4,7 @@ ENTRY(rvtest_entry_point)
SECTIONS
{
. = 0x80000000;
.text : { *(.text) }
.text : { *(.text.init) }
. = ALIGN(0x1000);
.tohost : { *(.tohost) }
. = ALIGN(0x1000);