From 28f10c35bdeddacdb2e10b0e84819f9c6ef67256 Mon Sep 17 00:00:00 2001 From: cheapie Date: Sun, 24 May 2026 22:43:17 -0500 Subject: Use the compiler driver for linking more consistently --- c/elevator/Makefile | 2 +- c/elevator/elevator.elf | Bin 9220 -> 9220 bytes c/elevator/elevator.o | Bin 15688 -> 15688 bytes 3 files changed, 1 insertion(+), 1 deletion(-) (limited to 'c/elevator') diff --git a/c/elevator/Makefile b/c/elevator/Makefile index 875cd3b..68ddcad 100644 --- a/c/elevator/Makefile +++ b/c/elevator/Makefile @@ -4,7 +4,7 @@ elevator.o: elevator.c clang -target riscv32-none-elf -I../rvcontroller-libraries -march=rv32imacb_zicntr_zicond_zicsr_zifencei_zihintpause_zilsd_zclsd_zabha_zacas_zbkb_zbkx_zcb_zcmp_zcmt -ffreestanding -O3 -c -o elevator.o elevator.c elevator.elf: ../rvcontroller-libraries/rvcontroller-init.o ../rvcontroller-libraries/rvcontroller-ecalls.o elevator.o - riscv32-none-elf-ld -T rvcontroller.ld --no-warn-rwx-segments -o elevator.elf ../rvcontroller-libraries/rvcontroller-init.o elevator.o ../rvcontroller-libraries/rvcontroller-ecalls.o + clang -target riscv32-none-elf -T rvcontroller.ld -nostdlib -nostartfiles -Xlinker --no-warn-rwx-segments -o elevator.elf ../rvcontroller-libraries/rvcontroller-init.o elevator.o ../rvcontroller-libraries/rvcontroller-ecalls.o dump: elevator.elf riscv32-none-elf-objdump -d elevator.elf diff --git a/c/elevator/elevator.elf b/c/elevator/elevator.elf index 3077ca7..c09d1bc 100755 Binary files a/c/elevator/elevator.elf and b/c/elevator/elevator.elf differ diff --git a/c/elevator/elevator.o b/c/elevator/elevator.o index 6150ab7..a36071a 100644 Binary files a/c/elevator/elevator.o and b/c/elevator/elevator.o differ -- cgit v1.2.3