aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorturret <turret@duck.com>2025-01-13 19:11:23 -0600
committerturret <turret@duck.com>2025-01-13 19:11:23 -0600
commit708fc83297b92cd4528f25193e5d753c415a3b84 (patch)
treeefbbeac6fbdbbe4827b54d767c605655196a676c
parent95a16466c6db724228a0a39cea15e8c2a959bbc8 (diff)
downloadcat-master.tar.gz
cat-master.tar.bz2
cat-master.zip
ld: add args to shrink binaryHEADmaster
-rwxr-xr-xbuild.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/build.sh b/build.sh
index a99b820..1a3db6f 100755
--- a/build.sh
+++ b/build.sh
@@ -1,2 +1,3 @@
nasm -f elf64 cat.s -o cat.o
-ld cat.o -o cat
+ld -sN cat.o -o cat
+sstrip cat