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 c/bigfib/Makefile | 2 +- c/bigfib/bigfib.elf | Bin 6552 -> 6552 bytes c/bigfib/bigfib.o | Bin 2184 -> 2184 bytes c/drawercalc/Makefile | 2 +- c/drawercalc/drawercalc.elf | Bin 7028 -> 7028 bytes c/drawercalc/drawercalc.o | Bin 5512 -> 5512 bytes c/elevator/Makefile | 2 +- c/elevator/elevator.elf | Bin 9220 -> 9220 bytes c/elevator/elevator.o | Bin 15688 -> 15688 bytes c/gol/Makefile | 2 +- c/gol/gol.elf | Bin 13812 -> 13812 bytes c/gol/gol.o | Bin 13396 -> 13396 bytes c/rrxing/Makefile | 2 +- c/rrxing/rrxing.elf | Bin 7292 -> 7292 bytes c/rrxing/rrxing.o | Bin 7340 -> 7340 bytes c/squares/Makefile | 2 +- c/squares/squares.elf | Bin 6752 -> 6752 bytes c/squares/squares.o | Bin 2336 -> 2336 bytes 21 files changed, 7 insertions(+), 7 deletions(-) (limited to 'c') 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 diff --git a/c/bigfib/Makefile b/c/bigfib/Makefile index 6eb4ffc..5fe4b0c 100644 --- a/c/bigfib/Makefile +++ b/c/bigfib/Makefile @@ -4,7 +4,7 @@ bigfib.o: bigfib.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 bigfib.o bigfib.c bigfib.elf: ../rvcontroller-libraries/rvcontroller-init.o ../rvcontroller-libraries/rvcontroller-ecalls.o bigfib.o - riscv32-none-elf-ld -T rvcontroller.ld --no-warn-rwx-segments -o bigfib.elf ../rvcontroller-libraries/rvcontroller-init.o bigfib.o ../rvcontroller-libraries/rvcontroller-ecalls.o + clang -target riscv32-none-elf -T rvcontroller.ld -nostdlib -nostartfiles -Xlinker --no-warn-rwx-segments -o bigfib.elf ../rvcontroller-libraries/rvcontroller-init.o bigfib.o ../rvcontroller-libraries/rvcontroller-ecalls.o dump: bigfib.elf riscv32-none-elf-objdump -d bigfib.elf diff --git a/c/bigfib/bigfib.elf b/c/bigfib/bigfib.elf index 2fcdf75..793a2d4 100755 Binary files a/c/bigfib/bigfib.elf and b/c/bigfib/bigfib.elf differ diff --git a/c/bigfib/bigfib.o b/c/bigfib/bigfib.o index 32d9e29..49c57d1 100644 Binary files a/c/bigfib/bigfib.o and b/c/bigfib/bigfib.o differ diff --git a/c/drawercalc/Makefile b/c/drawercalc/Makefile index 52f47d1..56af2c4 100644 --- a/c/drawercalc/Makefile +++ b/c/drawercalc/Makefile @@ -4,7 +4,7 @@ drawercalc.o: drawercalc.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 drawercalc.o drawercalc.c drawercalc.elf: ../rvcontroller-libraries/rvcontroller-init.o ../rvcontroller-libraries/rvcontroller-ecalls.o drawercalc.o - riscv32-none-elf-ld -T rvcontroller.ld --no-warn-rwx-segments -o drawercalc.elf ../rvcontroller-libraries/rvcontroller-init.o drawercalc.o ../rvcontroller-libraries/rvcontroller-ecalls.o + clang -target riscv32-none-elf -T rvcontroller.ld -nostdlib -nostartfiles -Xlinker --no-warn-rwx-segments -o drawercalc.elf ../rvcontroller-libraries/rvcontroller-init.o drawercalc.o ../rvcontroller-libraries/rvcontroller-ecalls.o dump: drawercalc.elf riscv32-none-elf-objdump -d drawercalc.elf diff --git a/c/drawercalc/drawercalc.elf b/c/drawercalc/drawercalc.elf index be34b55..e2988de 100755 Binary files a/c/drawercalc/drawercalc.elf and b/c/drawercalc/drawercalc.elf differ diff --git a/c/drawercalc/drawercalc.o b/c/drawercalc/drawercalc.o index fac534a..c586213 100644 Binary files a/c/drawercalc/drawercalc.o and b/c/drawercalc/drawercalc.o differ 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 diff --git a/c/gol/Makefile b/c/gol/Makefile index 54e4d4a..75b1176 100644 --- a/c/gol/Makefile +++ b/c/gol/Makefile @@ -4,7 +4,7 @@ gol.o: gol.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 gol.o gol.c gol.elf: ../rvcontroller-libraries/rvcontroller-init.o ../rvcontroller-libraries/rvcontroller-ecalls.o gol.o - riscv32-none-elf-ld -T rvcontroller.ld --no-warn-rwx-segments -o gol.elf ../rvcontroller-libraries/rvcontroller-init.o gol.o ../rvcontroller-libraries/rvcontroller-ecalls.o + clang -target riscv32-none-elf -T rvcontroller.ld -nostdlib -nostartfiles -Xlinker --no-warn-rwx-segments -o gol.elf ../rvcontroller-libraries/rvcontroller-init.o gol.o ../rvcontroller-libraries/rvcontroller-ecalls.o dump: gol.elf riscv32-none-elf-objdump -d gol.elf diff --git a/c/gol/gol.elf b/c/gol/gol.elf index 157bcc0..e7192f5 100755 Binary files a/c/gol/gol.elf and b/c/gol/gol.elf differ diff --git a/c/gol/gol.o b/c/gol/gol.o index 6c841a1..0d7a874 100644 Binary files a/c/gol/gol.o and b/c/gol/gol.o differ diff --git a/c/rrxing/Makefile b/c/rrxing/Makefile index 1087a53..96dba5c 100644 --- a/c/rrxing/Makefile +++ b/c/rrxing/Makefile @@ -4,7 +4,7 @@ rrxing.o: rrxing.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 rrxing.o rrxing.c rrxing.elf: ../rvcontroller-libraries/rvcontroller-init.o ../rvcontroller-libraries/rvcontroller-ecalls.o rrxing.o - riscv32-none-elf-ld -T rvcontroller.ld --no-warn-rwx-segments -o rrxing.elf ../rvcontroller-libraries/rvcontroller-init.o rrxing.o ../rvcontroller-libraries/rvcontroller-ecalls.o + clang -target riscv32-none-elf -T rvcontroller.ld -nostdlib -nostartfiles -Xlinker --no-warn-rwx-segments -o rrxing.elf ../rvcontroller-libraries/rvcontroller-init.o rrxing.o ../rvcontroller-libraries/rvcontroller-ecalls.o dump: rrxing.elf riscv32-none-elf-objdump -d rrxing.elf diff --git a/c/rrxing/rrxing.elf b/c/rrxing/rrxing.elf index fd70937..22366ca 100755 Binary files a/c/rrxing/rrxing.elf and b/c/rrxing/rrxing.elf differ diff --git a/c/rrxing/rrxing.o b/c/rrxing/rrxing.o index 3d0bd00..6a97ef6 100644 Binary files a/c/rrxing/rrxing.o and b/c/rrxing/rrxing.o differ diff --git a/c/squares/Makefile b/c/squares/Makefile index f957bfa..66a03fa 100644 --- a/c/squares/Makefile +++ b/c/squares/Makefile @@ -4,7 +4,7 @@ squares.o: squares.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 squares.o squares.c squares.elf: ../rvcontroller-libraries/rvcontroller-init.o ../rvcontroller-libraries/rvcontroller-ecalls.o squares.o - riscv32-none-elf-ld -T rvcontroller.ld --no-warn-rwx-segments -o squares.elf ../rvcontroller-libraries/rvcontroller-init.o squares.o ../rvcontroller-libraries/rvcontroller-ecalls.o + clang -target riscv32-none-elf -T rvcontroller.ld -nostdlib -nostartfiles -Xlinker --no-warn-rwx-segments -o squares.elf ../rvcontroller-libraries/rvcontroller-init.o squares.o ../rvcontroller-libraries/rvcontroller-ecalls.o dump: squares.elf riscv32-none-elf-objdump -d squares.elf diff --git a/c/squares/squares.elf b/c/squares/squares.elf index e0050b8..d89c91f 100755 Binary files a/c/squares/squares.elf and b/c/squares/squares.elf differ diff --git a/c/squares/squares.o b/c/squares/squares.o index 64e0c71..872b677 100644 Binary files a/c/squares/squares.o and b/c/squares/squares.o differ -- cgit v1.2.3