forked from Github_Repos/cvw
More example Makefile cleanup
This commit is contained in:
parent
2dc73574d3
commit
2bc7399ad4
Binary file not shown.
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
@ -4,7 +4,7 @@ ENTRY(rvtest_entry_point)
|
||||
SECTIONS
|
||||
{
|
||||
. = 0x80000000;
|
||||
.text : { *(.text) }
|
||||
.text : { *(.text.init) }
|
||||
. = ALIGN(0x1000);
|
||||
.tohost : { *(.tohost) }
|
||||
. = ALIGN(0x1000);
|
||||
|
Loading…
Reference in New Issue
Block a user