Add /usr/src/cmd/a.sh to test build and link dump.c, and /usr/src/cmd/dump.good ...
authorNick Downing <nick@ndcode.org>
Thu, 11 Aug 2022 16:42:49 +0000 (02:42 +1000)
committerNick Downing <nick@ndcode.org>
Fri, 12 Aug 2022 05:04:40 +0000 (15:04 +1000)
bin/aslink
usr/src/cmd/a.sh [new file with mode: 0755]
usr/src/cmd/dump.good [new file with mode: 0755]
usr/src/libc/a.sh

index 9980108..c4fdbea 100755 (executable)
Binary files a/bin/aslink and b/bin/aslink differ
diff --git a/usr/src/cmd/a.sh b/usr/src/cmd/a.sh
new file mode 100755 (executable)
index 0000000..131c4d2
--- /dev/null
@@ -0,0 +1,12 @@
+#!/bin/sh
+if ! test -d ../../../tmp
+then
+  ln -s /tmp ../../../tmp
+fi
+export APOUT_ROOT=`pwd`/../../..
+export PATH=`pwd`/../../../bin:`pwd`
+#cc -O -c dump.c
+#cc -n -s -o dump dump.o
+cc -O -S dump.c
+as -l -o dump.o dump.s
+ld -L/lib /lib/crt0.o -o dump -n -s -m -u dump.o -lc
diff --git a/usr/src/cmd/dump.good b/usr/src/cmd/dump.good
new file mode 100755 (executable)
index 0000000..85f083b
Binary files /dev/null and b/usr/src/cmd/dump.good differ
index 112a7fd..f50a35c 100755 (executable)
@@ -2,4 +2,5 @@
 mkdir --parents ../../../tmp
 export APOUT_ROOT=`pwd`/../../..
 export PATH=`pwd`/../../../bin:`pwd`
-cc -c -O sys/write.s
+#cc -c -O csu/crt0.s
+as -l -o crt0.o csu/crt0.s