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/bfhello/Makefile | 2 +- c/bfhello/bfhello.elf | Bin 6508 -> 6508 bytes c/bfhello/bfhello.o | Bin 1856 -> 1856 bytes 3 files changed, 1 insertion(+), 1 deletion(-) (limited to 'c/bfhello') diff --git a/c/bfhello/Makefile b/c/bfhello/Makefile index fa163ed..583ffc1 100644 --- a/c/bfhello/Makefile +++ b/c/bfhello/Makefile @@ -4,7 +4,7 @@ bfhello.o: bfhello.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 bfhello.o bfhello.c bfhello.elf: ../rvcontroller-libraries/rvcontroller-init.o ../rvcontroller-libraries/rvcontroller-ecalls.o bfhello.o - riscv32-none-elf-ld -T rvcontroller.ld --no-warn-rwx-segments -o bfhello.elf ../rvcontroller-libraries/rvcontroller-init.o bfhello.o ../rvcontroller-libraries/rvcontroller-ecalls.o + clang -target riscv32-none-elf -T rvcontroller.ld -nostdlib -nostartfiles -Xlinker --no-warn-rwx-segments -o bfhello.elf ../rvcontroller-libraries/rvcontroller-init.o bfhello.o ../rvcontroller-libraries/rvcontroller-ecalls.o dump: bfhello.elf riscv32-none-elf-objdump -d bfhello.elf diff --git a/c/bfhello/bfhello.elf b/c/bfhello/bfhello.elf index fea2048..cf91785 100755 Binary files a/c/bfhello/bfhello.elf and b/c/bfhello/bfhello.elf differ diff --git a/c/bfhello/bfhello.o b/c/bfhello/bfhello.o index c206039..5c3537f 100644 Binary files a/c/bfhello/bfhello.o and b/c/bfhello/bfhello.o differ -- cgit v1.2.3