diff options
author | johannst <johannst@users.noreply.github.com> | 2025-04-09 22:28:27 +0000 |
---|---|---|
committer | johannst <johannst@users.noreply.github.com> | 2025-04-09 22:28:27 +0000 |
commit | 4a9214d09d6a526bd029a1f92a01a5f451313c9a (patch) | |
tree | 2a4134ffb9b7f1d4cf6eee7e9305125cc878ce1c /development/ld/Makefile | |
parent | 2cad8341019659a65fc6e94992165b3d7b7a37db (diff) | |
download | notes-4a9214d09d6a526bd029a1f92a01a5f451313c9a.tar.gz notes-4a9214d09d6a526bd029a1f92a01a5f451313c9a.zip |
deploy: 773d9b46ee3b1b88a94e69f42ea42654c63c48ec
Diffstat (limited to 'development/ld/Makefile')
-rw-r--r-- | development/ld/Makefile | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/development/ld/Makefile b/development/ld/Makefile new file mode 100644 index 0000000..16869a8 --- /dev/null +++ b/development/ld/Makefile @@ -0,0 +1,15 @@ +show-mem: +show-nomem: +show-%: link-% + readelf -W -S -l $^ + nm $^ + objdump -d $^ + +link-%: link-%.ld data.o + ld -o $@ -T $^ + +%.o: %.S + gcc -c $^ + +clean: + $(RM) mem *.o |