summaryrefslogtreecommitdiff
path: root/c/squares
diff options
context:
space:
mode:
authorcheapie <no-email-for-you@example.com>2026-05-24 22:43:17 -0500
committercheapie <no-email-for-you@example.com>2026-05-24 22:43:17 -0500
commit28f10c35bdeddacdb2e10b0e84819f9c6ef67256 (patch)
tree77262a9e24351254f0e9d10cabf69a59f49eacef /c/squares
parent729f10e16d8113552426bc43878d1d7c0d337cea (diff)
downloadrvcontroller-28f10c35bdeddacdb2e10b0e84819f9c6ef67256.tar
rvcontroller-28f10c35bdeddacdb2e10b0e84819f9c6ef67256.tar.gz
rvcontroller-28f10c35bdeddacdb2e10b0e84819f9c6ef67256.tar.bz2
rvcontroller-28f10c35bdeddacdb2e10b0e84819f9c6ef67256.tar.xz
rvcontroller-28f10c35bdeddacdb2e10b0e84819f9c6ef67256.zip
Use the compiler driver for linking more consistently
Diffstat (limited to 'c/squares')
-rw-r--r--c/squares/Makefile2
-rwxr-xr-xc/squares/squares.elfbin6752 -> 6752 bytes
-rw-r--r--c/squares/squares.obin2336 -> 2336 bytes
3 files changed, 1 insertions, 1 deletions
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
--- a/c/squares/squares.elf
+++ b/c/squares/squares.elf
Binary files differ
diff --git a/c/squares/squares.o b/c/squares/squares.o
index 64e0c71..872b677 100644
--- a/c/squares/squares.o
+++ b/c/squares/squares.o
Binary files differ