From 8d70017a77337a96f88dee15684f9e547fbbfe3c Mon Sep 17 00:00:00 2001 From: turbocat Date: Tue, 9 Mar 2021 10:11:53 +0000 Subject: [PATCH] kolibri-libc: - Added new symbols - Added build.sh for loader git-svn-id: svn://kolibrios.org@8641 a494cfbc-eb01-0410-851d-a64ba20cac60 --- contrib/kolibri-libc/loader/build.sh | 24 ++++++++++++++++++++++++ contrib/kolibri-libc/loader/symbols.txt | 2 ++ 2 files changed, 26 insertions(+) create mode 100755 contrib/kolibri-libc/loader/build.sh diff --git a/contrib/kolibri-libc/loader/build.sh b/contrib/kolibri-libc/loader/build.sh new file mode 100755 index 0000000000..803d0555ce --- /dev/null +++ b/contrib/kolibri-libc/loader/build.sh @@ -0,0 +1,24 @@ +#!/bin/bash +set -e + +MKLIB=../linuxtools/mklib +AR=ar +FASM=fasm + +set -e + +echo "Generate ASM files..." +cat symbols.txt | $MKLIB + +echo "Compile ASM files..." +for asm_file in $(find *.asm) +do + $FASM $asm_file > /dev/null +done + +echo "Create libc.obj.a library..." +ar -rsc ../lib/libc.obj.a *.o +mv __lib__.asm __lib__.asm.bak +rm *.o *.asm +mv __lib__.asm.bak __lib__.asm +echo "Done!" diff --git a/contrib/kolibri-libc/loader/symbols.txt b/contrib/kolibri-libc/loader/symbols.txt index 8b51d2361b..57cc5d0309 100644 --- a/contrib/kolibri-libc/loader/symbols.txt +++ b/contrib/kolibri-libc/loader/symbols.txt @@ -83,6 +83,8 @@ shell_getc shell_gets shell_cls shell_exit +shell_get_pid +shell_ping setbuf setvbuf sin