From 95e70a7b8c5645618e355f85a8e15e20fc41d5f2 Mon Sep 17 00:00:00 2001 From: turbocat Date: Mon, 1 Mar 2021 21:52:10 +0000 Subject: [PATCH] libc.obj.a(ktcc) : - Added makefile - Added mklib tools - Fixed build git-svn-id: svn://kolibrios.org@8621 a494cfbc-eb01-0410-851d-a64ba20cac60 --- .../develop/ktcc/trunk/lib/libc.obj/Makefile | 18 +++ .../develop/ktcc/trunk/lib/libc.obj/abs.asm | 4 +- .../develop/ktcc/trunk/lib/libc.obj/acos.asm | 4 +- .../develop/ktcc/trunk/lib/libc.obj/acosh.asm | 4 +- .../develop/ktcc/trunk/lib/libc.obj/asin.asm | 4 +- .../develop/ktcc/trunk/lib/libc.obj/asinh.asm | 4 +- .../develop/ktcc/trunk/lib/libc.obj/atan.asm | 4 +- .../develop/ktcc/trunk/lib/libc.obj/atan2.asm | 4 +- .../develop/ktcc/trunk/lib/libc.obj/atanh.asm | 4 +- .../develop/ktcc/trunk/lib/libc.obj/atoi.asm | 4 +- .../develop/ktcc/trunk/lib/libc.obj/atol.asm | 4 +- .../develop/ktcc/trunk/lib/libc.obj/atoll.asm | 4 +- .../ktcc/trunk/lib/libc.obj/calloc.asm | 4 +- .../develop/ktcc/trunk/lib/libc.obj/ceil.asm | 4 +- .../ktcc/trunk/lib/libc.obj/clearerr.asm | 4 +- .../ktcc/trunk/lib/libc.obj/closedir.asm | 4 +- .../develop/ktcc/trunk/lib/libc.obj/cos.asm | 4 +- .../develop/ktcc/trunk/lib/libc.obj/cosh.asm | 4 +- .../ktcc/trunk/lib/libc.obj/debug_printf.asm | 4 +- .../ktcc/trunk/lib/libc.obj/difftime.asm | 4 +- .../develop/ktcc/trunk/lib/libc.obj/div.asm | 4 +- .../develop/ktcc/trunk/lib/libc.obj/exit.asm | 4 +- .../develop/ktcc/trunk/lib/libc.obj/exp.asm | 4 +- .../develop/ktcc/trunk/lib/libc.obj/fabs.asm | 4 +- .../ktcc/trunk/lib/libc.obj/fclose.asm | 4 +- .../develop/ktcc/trunk/lib/libc.obj/feof.asm | 4 +- .../ktcc/trunk/lib/libc.obj/ferror.asm | 4 +- .../ktcc/trunk/lib/libc.obj/fflush.asm | 4 +- .../develop/ktcc/trunk/lib/libc.obj/fgetc.asm | 4 +- .../ktcc/trunk/lib/libc.obj/fgetpos.asm | 4 +- .../develop/ktcc/trunk/lib/libc.obj/fgets.asm | 4 +- .../develop/ktcc/trunk/lib/libc.obj/floor.asm | 4 +- .../develop/ktcc/trunk/lib/libc.obj/fmod.asm | 4 +- .../develop/ktcc/trunk/lib/libc.obj/fopen.asm | 4 +- .../develop/ktcc/trunk/lib/libc.obj/fputc.asm | 4 +- .../develop/ktcc/trunk/lib/libc.obj/fputs.asm | 4 +- .../develop/ktcc/trunk/lib/libc.obj/fread.asm | 4 +- .../develop/ktcc/trunk/lib/libc.obj/free.asm | 4 +- .../ktcc/trunk/lib/libc.obj/freopen.asm | 4 +- .../develop/ktcc/trunk/lib/libc.obj/frexp.asm | 4 +- .../develop/ktcc/trunk/lib/libc.obj/fseek.asm | 4 +- .../ktcc/trunk/lib/libc.obj/fsetpos.asm | 4 +- .../develop/ktcc/trunk/lib/libc.obj/ftell.asm | 4 +- .../ktcc/trunk/lib/libc.obj/fwrite.asm | 4 +- .../ktcc/trunk/lib/libc.obj/getchar.asm | 4 +- .../develop/ktcc/trunk/lib/libc.obj/gets.asm | 4 +- .../develop/ktcc/trunk/lib/libc.obj/hypot.asm | 4 +- .../develop/ktcc/trunk/lib/libc.obj/labs.asm | 4 +- .../develop/ktcc/trunk/lib/libc.obj/ldexp.asm | 4 +- .../develop/ktcc/trunk/lib/libc.obj/ldiv.asm | 4 +- .../develop/ktcc/trunk/lib/libc.obj/llabs.asm | 4 +- .../develop/ktcc/trunk/lib/libc.obj/lldiv.asm | 4 +- .../ktcc/trunk/lib/libc.obj/localtime.asm | 4 +- .../develop/ktcc/trunk/lib/libc.obj/log.asm | 4 +- .../ktcc/trunk/lib/libc.obj/malloc.asm | 4 +- .../ktcc/trunk/lib/libc.obj/memccpy.asm | 4 +- .../ktcc/trunk/lib/libc.obj/memchr.asm | 4 +- .../ktcc/trunk/lib/libc.obj/memcmp.asm | 4 +- .../ktcc/trunk/lib/libc.obj/memcpy.asm | 4 +- .../ktcc/trunk/lib/libc.obj/memmove.asm | 4 +- .../ktcc/trunk/lib/libc.obj/memset.asm | 4 +- .../ktcc/trunk/lib/libc.obj/mktime.asm | 4 +- .../develop/ktcc/trunk/lib/libc.obj/modf.asm | 4 +- .../develop/ktcc/trunk/lib/libc.obj/modfl.asm | 4 +- .../ktcc/trunk/lib/libc.obj/opendir.asm | 4 +- .../ktcc/trunk/lib/libc.obj/perror.asm | 4 +- .../develop/ktcc/trunk/lib/libc.obj/pow.asm | 4 +- .../develop/ktcc/trunk/lib/libc.obj/pow10.asm | 4 +- .../develop/ktcc/trunk/lib/libc.obj/pow2.asm | 4 +- .../ktcc/trunk/lib/libc.obj/printf.asm | 4 +- .../develop/ktcc/trunk/lib/libc.obj/puts.asm | 4 +- .../ktcc/trunk/lib/libc.obj/readdir.asm | 4 +- .../ktcc/trunk/lib/libc.obj/realloc.asm | 4 +- .../ktcc/trunk/lib/libc.obj/remove.asm | 4 +- .../ktcc/trunk/lib/libc.obj/rename.asm | 4 +- .../ktcc/trunk/lib/libc.obj/rewind.asm | 4 +- .../ktcc/trunk/lib/libc.obj/rewinddir.asm | 4 +- .../ktcc/trunk/lib/libc.obj/seekdir.asm | 4 +- .../ktcc/trunk/lib/libc.obj/setbuf.asm | 4 +- .../ktcc/trunk/lib/libc.obj/setvbuf.asm | 4 +- .../develop/ktcc/trunk/lib/libc.obj/sin.asm | 4 +- .../develop/ktcc/trunk/lib/libc.obj/sinh.asm | 4 +- .../ktcc/trunk/lib/libc.obj/snprintf.asm | 4 +- .../ktcc/trunk/lib/libc.obj/sprintf.asm | 4 +- .../develop/ktcc/trunk/lib/libc.obj/sqrt.asm | 4 +- .../ktcc/trunk/lib/libc.obj/strcat.asm | 4 +- .../ktcc/trunk/lib/libc.obj/strchr.asm | 4 +- .../ktcc/trunk/lib/libc.obj/strcmp.asm | 4 +- .../ktcc/trunk/lib/libc.obj/strcoll.asm | 4 +- .../ktcc/trunk/lib/libc.obj/strcpy.asm | 4 +- .../ktcc/trunk/lib/libc.obj/strcspn.asm | 4 +- .../ktcc/trunk/lib/libc.obj/strerror.asm | 4 +- .../ktcc/trunk/lib/libc.obj/strlen.asm | 4 +- .../ktcc/trunk/lib/libc.obj/strncat.asm | 4 +- .../ktcc/trunk/lib/libc.obj/strncmp.asm | 4 +- .../ktcc/trunk/lib/libc.obj/strncpy.asm | 4 +- .../ktcc/trunk/lib/libc.obj/strpbrk.asm | 4 +- .../ktcc/trunk/lib/libc.obj/strrchr.asm | 4 +- .../ktcc/trunk/lib/libc.obj/strrev.asm | 4 +- .../ktcc/trunk/lib/libc.obj/strspn.asm | 4 +- .../ktcc/trunk/lib/libc.obj/strstr.asm | 4 +- .../ktcc/trunk/lib/libc.obj/strtok.asm | 4 +- .../ktcc/trunk/lib/libc.obj/strxfrm.asm | 4 +- .../ktcc/trunk/lib/libc.obj/symbols.txt | 111 ++++++++++++++++++ .../develop/ktcc/trunk/lib/libc.obj/tan.asm | 4 +- .../develop/ktcc/trunk/lib/libc.obj/tanh.asm | 4 +- .../ktcc/trunk/lib/libc.obj/telldir.asm | 4 +- .../develop/ktcc/trunk/lib/libc.obj/time.asm | 4 +- .../ktcc/trunk/lib/libc.obj/tmpfile.asm | 4 +- .../ktcc/trunk/lib/libc.obj/tmpnam.asm | 4 +- .../ktcc/trunk/lib/libc.obj/tools/mklib | Bin 0 -> 4844 bytes .../ktcc/trunk/lib/libc.obj/tools/mklib.c | 46 ++++++++ .../ktcc/trunk/lib/libc.obj/vprintf.asm | 4 +- .../ktcc/trunk/lib/libc.obj/vsnprintf.asm | 4 +- 114 files changed, 395 insertions(+), 220 deletions(-) create mode 100644 programs/develop/ktcc/trunk/lib/libc.obj/Makefile create mode 100644 programs/develop/ktcc/trunk/lib/libc.obj/symbols.txt create mode 100755 programs/develop/ktcc/trunk/lib/libc.obj/tools/mklib create mode 100644 programs/develop/ktcc/trunk/lib/libc.obj/tools/mklib.c diff --git a/programs/develop/ktcc/trunk/lib/libc.obj/Makefile b/programs/develop/ktcc/trunk/lib/libc.obj/Makefile new file mode 100644 index 0000000000..8f89707ff3 --- /dev/null +++ b/programs/develop/ktcc/trunk/lib/libc.obj/Makefile @@ -0,0 +1,18 @@ +FASM = fasm +MKLIB = ./tools/mklib + +SRCS=$(wildcard *.asm) +OBJS=$(SRCS:.asm=.o) + +%.o : %.asm + $(FASM) $< + +all: asm_gen $(OBJS) + ar -rsc ../../bin/lib/libc.obj.a *.o + +asm_gen: + cat symbols.txt | $(MKLIB) + +clean: + rm ../../bin/lib/libc.obj.a + rm -f *.o diff --git a/programs/develop/ktcc/trunk/lib/libc.obj/abs.asm b/programs/develop/ktcc/trunk/lib/libc.obj/abs.asm index c219b6e51d..6652d40678 100644 --- a/programs/develop/ktcc/trunk/lib/libc.obj/abs.asm +++ b/programs/develop/ktcc/trunk/lib/libc.obj/abs.asm @@ -1,11 +1,11 @@ format ELF include "__lib__.inc" -fun equ abs +fun equ __func@abs fun_str equ 'abs' section '.text' fun_name db fun_str, 0 section '.data' extrn lib_name -public fun +public fun as fun_str fun dd fun_name lib dd lib_name diff --git a/programs/develop/ktcc/trunk/lib/libc.obj/acos.asm b/programs/develop/ktcc/trunk/lib/libc.obj/acos.asm index 695b5ad7a1..608d6c064c 100644 --- a/programs/develop/ktcc/trunk/lib/libc.obj/acos.asm +++ b/programs/develop/ktcc/trunk/lib/libc.obj/acos.asm @@ -1,11 +1,11 @@ format ELF include "__lib__.inc" -fun equ acos +fun equ __func@acos fun_str equ 'acos' section '.text' fun_name db fun_str, 0 section '.data' extrn lib_name -public fun +public fun as fun_str fun dd fun_name lib dd lib_name diff --git a/programs/develop/ktcc/trunk/lib/libc.obj/acosh.asm b/programs/develop/ktcc/trunk/lib/libc.obj/acosh.asm index bdc8d5014f..6e4f376404 100644 --- a/programs/develop/ktcc/trunk/lib/libc.obj/acosh.asm +++ b/programs/develop/ktcc/trunk/lib/libc.obj/acosh.asm @@ -1,11 +1,11 @@ format ELF include "__lib__.inc" -fun equ acosh +fun equ __func@acosh fun_str equ 'acosh' section '.text' fun_name db fun_str, 0 section '.data' extrn lib_name -public fun +public fun as fun_str fun dd fun_name lib dd lib_name diff --git a/programs/develop/ktcc/trunk/lib/libc.obj/asin.asm b/programs/develop/ktcc/trunk/lib/libc.obj/asin.asm index 7343c8a057..67e34b60a5 100644 --- a/programs/develop/ktcc/trunk/lib/libc.obj/asin.asm +++ b/programs/develop/ktcc/trunk/lib/libc.obj/asin.asm @@ -1,11 +1,11 @@ format ELF include "__lib__.inc" -fun equ asin +fun equ __func@asin fun_str equ 'asin' section '.text' fun_name db fun_str, 0 section '.data' extrn lib_name -public fun +public fun as fun_str fun dd fun_name lib dd lib_name diff --git a/programs/develop/ktcc/trunk/lib/libc.obj/asinh.asm b/programs/develop/ktcc/trunk/lib/libc.obj/asinh.asm index a60576ecd3..52b422e394 100644 --- a/programs/develop/ktcc/trunk/lib/libc.obj/asinh.asm +++ b/programs/develop/ktcc/trunk/lib/libc.obj/asinh.asm @@ -1,11 +1,11 @@ format ELF include "__lib__.inc" -fun equ asinh +fun equ __func@asinh fun_str equ 'asinh' section '.text' fun_name db fun_str, 0 section '.data' extrn lib_name -public fun +public fun as fun_str fun dd fun_name lib dd lib_name diff --git a/programs/develop/ktcc/trunk/lib/libc.obj/atan.asm b/programs/develop/ktcc/trunk/lib/libc.obj/atan.asm index 0672f79a49..3f7c4267d9 100644 --- a/programs/develop/ktcc/trunk/lib/libc.obj/atan.asm +++ b/programs/develop/ktcc/trunk/lib/libc.obj/atan.asm @@ -1,11 +1,11 @@ format ELF include "__lib__.inc" -fun equ atan +fun equ __func@atan fun_str equ 'atan' section '.text' fun_name db fun_str, 0 section '.data' extrn lib_name -public fun +public fun as fun_str fun dd fun_name lib dd lib_name diff --git a/programs/develop/ktcc/trunk/lib/libc.obj/atan2.asm b/programs/develop/ktcc/trunk/lib/libc.obj/atan2.asm index 46b9a33ab6..ffa1d20822 100644 --- a/programs/develop/ktcc/trunk/lib/libc.obj/atan2.asm +++ b/programs/develop/ktcc/trunk/lib/libc.obj/atan2.asm @@ -1,11 +1,11 @@ format ELF include "__lib__.inc" -fun equ atan2 +fun equ __func@atan2 fun_str equ 'atan2' section '.text' fun_name db fun_str, 0 section '.data' extrn lib_name -public fun +public fun as fun_str fun dd fun_name lib dd lib_name diff --git a/programs/develop/ktcc/trunk/lib/libc.obj/atanh.asm b/programs/develop/ktcc/trunk/lib/libc.obj/atanh.asm index f9b6449ece..85bef35219 100644 --- a/programs/develop/ktcc/trunk/lib/libc.obj/atanh.asm +++ b/programs/develop/ktcc/trunk/lib/libc.obj/atanh.asm @@ -1,11 +1,11 @@ format ELF include "__lib__.inc" -fun equ atanh +fun equ __func@atanh fun_str equ 'atanh' section '.text' fun_name db fun_str, 0 section '.data' extrn lib_name -public fun +public fun as fun_str fun dd fun_name lib dd lib_name diff --git a/programs/develop/ktcc/trunk/lib/libc.obj/atoi.asm b/programs/develop/ktcc/trunk/lib/libc.obj/atoi.asm index 1ec345a603..c45c87a1f0 100644 --- a/programs/develop/ktcc/trunk/lib/libc.obj/atoi.asm +++ b/programs/develop/ktcc/trunk/lib/libc.obj/atoi.asm @@ -1,11 +1,11 @@ format ELF include "__lib__.inc" -fun equ atoi +fun equ __func@atoi fun_str equ 'atoi' section '.text' fun_name db fun_str, 0 section '.data' extrn lib_name -public fun +public fun as fun_str fun dd fun_name lib dd lib_name diff --git a/programs/develop/ktcc/trunk/lib/libc.obj/atol.asm b/programs/develop/ktcc/trunk/lib/libc.obj/atol.asm index baf4d565e6..87d8eda023 100644 --- a/programs/develop/ktcc/trunk/lib/libc.obj/atol.asm +++ b/programs/develop/ktcc/trunk/lib/libc.obj/atol.asm @@ -1,11 +1,11 @@ format ELF include "__lib__.inc" -fun equ atol +fun equ __func@atol fun_str equ 'atol' section '.text' fun_name db fun_str, 0 section '.data' extrn lib_name -public fun +public fun as fun_str fun dd fun_name lib dd lib_name diff --git a/programs/develop/ktcc/trunk/lib/libc.obj/atoll.asm b/programs/develop/ktcc/trunk/lib/libc.obj/atoll.asm index a38c64322f..bc1abfc03f 100644 --- a/programs/develop/ktcc/trunk/lib/libc.obj/atoll.asm +++ b/programs/develop/ktcc/trunk/lib/libc.obj/atoll.asm @@ -1,11 +1,11 @@ format ELF include "__lib__.inc" -fun equ atoll +fun equ __func@atoll fun_str equ 'atoll' section '.text' fun_name db fun_str, 0 section '.data' extrn lib_name -public fun +public fun as fun_str fun dd fun_name lib dd lib_name diff --git a/programs/develop/ktcc/trunk/lib/libc.obj/calloc.asm b/programs/develop/ktcc/trunk/lib/libc.obj/calloc.asm index 4fcadb6d00..9e1826af5f 100644 --- a/programs/develop/ktcc/trunk/lib/libc.obj/calloc.asm +++ b/programs/develop/ktcc/trunk/lib/libc.obj/calloc.asm @@ -1,11 +1,11 @@ format ELF include "__lib__.inc" -fun equ calloc +fun equ __func@calloc fun_str equ 'calloc' section '.text' fun_name db fun_str, 0 section '.data' extrn lib_name -public fun +public fun as fun_str fun dd fun_name lib dd lib_name diff --git a/programs/develop/ktcc/trunk/lib/libc.obj/ceil.asm b/programs/develop/ktcc/trunk/lib/libc.obj/ceil.asm index 324aa42fe8..515b679ad6 100644 --- a/programs/develop/ktcc/trunk/lib/libc.obj/ceil.asm +++ b/programs/develop/ktcc/trunk/lib/libc.obj/ceil.asm @@ -1,11 +1,11 @@ format ELF include "__lib__.inc" -fun equ ceil +fun equ __func@ceil fun_str equ 'ceil' section '.text' fun_name db fun_str, 0 section '.data' extrn lib_name -public fun +public fun as fun_str fun dd fun_name lib dd lib_name diff --git a/programs/develop/ktcc/trunk/lib/libc.obj/clearerr.asm b/programs/develop/ktcc/trunk/lib/libc.obj/clearerr.asm index 4079439892..44338ad0c6 100644 --- a/programs/develop/ktcc/trunk/lib/libc.obj/clearerr.asm +++ b/programs/develop/ktcc/trunk/lib/libc.obj/clearerr.asm @@ -1,11 +1,11 @@ format ELF include "__lib__.inc" -fun equ clearerr +fun equ __func@clearerr fun_str equ 'clearerr' section '.text' fun_name db fun_str, 0 section '.data' extrn lib_name -public fun +public fun as fun_str fun dd fun_name lib dd lib_name diff --git a/programs/develop/ktcc/trunk/lib/libc.obj/closedir.asm b/programs/develop/ktcc/trunk/lib/libc.obj/closedir.asm index deeaf483ab..b164afb7e7 100644 --- a/programs/develop/ktcc/trunk/lib/libc.obj/closedir.asm +++ b/programs/develop/ktcc/trunk/lib/libc.obj/closedir.asm @@ -1,11 +1,11 @@ format ELF include "__lib__.inc" -fun equ closedir +fun equ __func@closedir fun_str equ 'closedir' section '.text' fun_name db fun_str, 0 section '.data' extrn lib_name -public fun +public fun as fun_str fun dd fun_name lib dd lib_name diff --git a/programs/develop/ktcc/trunk/lib/libc.obj/cos.asm b/programs/develop/ktcc/trunk/lib/libc.obj/cos.asm index f5d4a4bc06..3e8a2bb69c 100644 --- a/programs/develop/ktcc/trunk/lib/libc.obj/cos.asm +++ b/programs/develop/ktcc/trunk/lib/libc.obj/cos.asm @@ -1,11 +1,11 @@ format ELF include "__lib__.inc" -fun equ cos +fun equ __func@cos fun_str equ 'cos' section '.text' fun_name db fun_str, 0 section '.data' extrn lib_name -public fun +public fun as fun_str fun dd fun_name lib dd lib_name diff --git a/programs/develop/ktcc/trunk/lib/libc.obj/cosh.asm b/programs/develop/ktcc/trunk/lib/libc.obj/cosh.asm index ed22bb6623..88aba9f89a 100644 --- a/programs/develop/ktcc/trunk/lib/libc.obj/cosh.asm +++ b/programs/develop/ktcc/trunk/lib/libc.obj/cosh.asm @@ -1,11 +1,11 @@ format ELF include "__lib__.inc" -fun equ cosh +fun equ __func@cosh fun_str equ 'cosh' section '.text' fun_name db fun_str, 0 section '.data' extrn lib_name -public fun +public fun as fun_str fun dd fun_name lib dd lib_name diff --git a/programs/develop/ktcc/trunk/lib/libc.obj/debug_printf.asm b/programs/develop/ktcc/trunk/lib/libc.obj/debug_printf.asm index 601c943382..fe5d3d3f6b 100644 --- a/programs/develop/ktcc/trunk/lib/libc.obj/debug_printf.asm +++ b/programs/develop/ktcc/trunk/lib/libc.obj/debug_printf.asm @@ -1,11 +1,11 @@ format ELF include "__lib__.inc" -fun equ debug_printf +fun equ __func@debug_printf fun_str equ 'debug_printf' section '.text' fun_name db fun_str, 0 section '.data' extrn lib_name -public fun +public fun as fun_str fun dd fun_name lib dd lib_name diff --git a/programs/develop/ktcc/trunk/lib/libc.obj/difftime.asm b/programs/develop/ktcc/trunk/lib/libc.obj/difftime.asm index d1a1f1dd92..1dd5aea6f4 100644 --- a/programs/develop/ktcc/trunk/lib/libc.obj/difftime.asm +++ b/programs/develop/ktcc/trunk/lib/libc.obj/difftime.asm @@ -1,11 +1,11 @@ format ELF include "__lib__.inc" -fun equ difftime +fun equ __func@difftime fun_str equ 'difftime' section '.text' fun_name db fun_str, 0 section '.data' extrn lib_name -public fun +public fun as fun_str fun dd fun_name lib dd lib_name diff --git a/programs/develop/ktcc/trunk/lib/libc.obj/div.asm b/programs/develop/ktcc/trunk/lib/libc.obj/div.asm index 4a64c6ee9d..0e1729ba11 100644 --- a/programs/develop/ktcc/trunk/lib/libc.obj/div.asm +++ b/programs/develop/ktcc/trunk/lib/libc.obj/div.asm @@ -1,11 +1,11 @@ format ELF include "__lib__.inc" -fun equ div +fun equ __func@div fun_str equ 'div' section '.text' fun_name db fun_str, 0 section '.data' extrn lib_name -public fun +public fun as fun_str fun dd fun_name lib dd lib_name diff --git a/programs/develop/ktcc/trunk/lib/libc.obj/exit.asm b/programs/develop/ktcc/trunk/lib/libc.obj/exit.asm index ddd6d8cc34..fd80168b12 100644 --- a/programs/develop/ktcc/trunk/lib/libc.obj/exit.asm +++ b/programs/develop/ktcc/trunk/lib/libc.obj/exit.asm @@ -1,11 +1,11 @@ format ELF include "__lib__.inc" -fun equ exit +fun equ __func@exit fun_str equ 'exit' section '.text' fun_name db fun_str, 0 section '.data' extrn lib_name -public fun +public fun as fun_str fun dd fun_name lib dd lib_name diff --git a/programs/develop/ktcc/trunk/lib/libc.obj/exp.asm b/programs/develop/ktcc/trunk/lib/libc.obj/exp.asm index 07cf80f151..e9a050737b 100644 --- a/programs/develop/ktcc/trunk/lib/libc.obj/exp.asm +++ b/programs/develop/ktcc/trunk/lib/libc.obj/exp.asm @@ -1,11 +1,11 @@ format ELF include "__lib__.inc" -fun equ exp +fun equ __func@exp fun_str equ 'exp' section '.text' fun_name db fun_str, 0 section '.data' extrn lib_name -public fun +public fun as fun_str fun dd fun_name lib dd lib_name diff --git a/programs/develop/ktcc/trunk/lib/libc.obj/fabs.asm b/programs/develop/ktcc/trunk/lib/libc.obj/fabs.asm index 21a58ef525..5625c5e97a 100644 --- a/programs/develop/ktcc/trunk/lib/libc.obj/fabs.asm +++ b/programs/develop/ktcc/trunk/lib/libc.obj/fabs.asm @@ -1,11 +1,11 @@ format ELF include "__lib__.inc" -fun equ fabs +fun equ __func@fabs fun_str equ 'fabs' section '.text' fun_name db fun_str, 0 section '.data' extrn lib_name -public fun +public fun as fun_str fun dd fun_name lib dd lib_name diff --git a/programs/develop/ktcc/trunk/lib/libc.obj/fclose.asm b/programs/develop/ktcc/trunk/lib/libc.obj/fclose.asm index 0c21254444..d0f35c459c 100644 --- a/programs/develop/ktcc/trunk/lib/libc.obj/fclose.asm +++ b/programs/develop/ktcc/trunk/lib/libc.obj/fclose.asm @@ -1,11 +1,11 @@ format ELF include "__lib__.inc" -fun equ fclose +fun equ __func@fclose fun_str equ 'fclose' section '.text' fun_name db fun_str, 0 section '.data' extrn lib_name -public fun +public fun as fun_str fun dd fun_name lib dd lib_name diff --git a/programs/develop/ktcc/trunk/lib/libc.obj/feof.asm b/programs/develop/ktcc/trunk/lib/libc.obj/feof.asm index 372d5625c3..a5a51084c6 100644 --- a/programs/develop/ktcc/trunk/lib/libc.obj/feof.asm +++ b/programs/develop/ktcc/trunk/lib/libc.obj/feof.asm @@ -1,11 +1,11 @@ format ELF include "__lib__.inc" -fun equ feof +fun equ __func@feof fun_str equ 'feof' section '.text' fun_name db fun_str, 0 section '.data' extrn lib_name -public fun +public fun as fun_str fun dd fun_name lib dd lib_name diff --git a/programs/develop/ktcc/trunk/lib/libc.obj/ferror.asm b/programs/develop/ktcc/trunk/lib/libc.obj/ferror.asm index 1f11024399..24d9946f04 100644 --- a/programs/develop/ktcc/trunk/lib/libc.obj/ferror.asm +++ b/programs/develop/ktcc/trunk/lib/libc.obj/ferror.asm @@ -1,11 +1,11 @@ format ELF include "__lib__.inc" -fun equ ferror +fun equ __func@ferror fun_str equ 'ferror' section '.text' fun_name db fun_str, 0 section '.data' extrn lib_name -public fun +public fun as fun_str fun dd fun_name lib dd lib_name diff --git a/programs/develop/ktcc/trunk/lib/libc.obj/fflush.asm b/programs/develop/ktcc/trunk/lib/libc.obj/fflush.asm index abdd306921..d2b6d3b7e6 100644 --- a/programs/develop/ktcc/trunk/lib/libc.obj/fflush.asm +++ b/programs/develop/ktcc/trunk/lib/libc.obj/fflush.asm @@ -1,11 +1,11 @@ format ELF include "__lib__.inc" -fun equ fflush +fun equ __func@fflush fun_str equ 'fflush' section '.text' fun_name db fun_str, 0 section '.data' extrn lib_name -public fun +public fun as fun_str fun dd fun_name lib dd lib_name diff --git a/programs/develop/ktcc/trunk/lib/libc.obj/fgetc.asm b/programs/develop/ktcc/trunk/lib/libc.obj/fgetc.asm index 24c8e10d61..f8d60bf02b 100644 --- a/programs/develop/ktcc/trunk/lib/libc.obj/fgetc.asm +++ b/programs/develop/ktcc/trunk/lib/libc.obj/fgetc.asm @@ -1,11 +1,11 @@ format ELF include "__lib__.inc" -fun equ fgetc +fun equ __func@fgetc fun_str equ 'fgetc' section '.text' fun_name db fun_str, 0 section '.data' extrn lib_name -public fun +public fun as fun_str fun dd fun_name lib dd lib_name diff --git a/programs/develop/ktcc/trunk/lib/libc.obj/fgetpos.asm b/programs/develop/ktcc/trunk/lib/libc.obj/fgetpos.asm index 6375e326d6..6b731ded42 100644 --- a/programs/develop/ktcc/trunk/lib/libc.obj/fgetpos.asm +++ b/programs/develop/ktcc/trunk/lib/libc.obj/fgetpos.asm @@ -1,11 +1,11 @@ format ELF include "__lib__.inc" -fun equ fgetpos +fun equ __func@fgetpos fun_str equ 'fgetpos' section '.text' fun_name db fun_str, 0 section '.data' extrn lib_name -public fun +public fun as fun_str fun dd fun_name lib dd lib_name diff --git a/programs/develop/ktcc/trunk/lib/libc.obj/fgets.asm b/programs/develop/ktcc/trunk/lib/libc.obj/fgets.asm index 0eb2d8d6f9..79138684dc 100644 --- a/programs/develop/ktcc/trunk/lib/libc.obj/fgets.asm +++ b/programs/develop/ktcc/trunk/lib/libc.obj/fgets.asm @@ -1,11 +1,11 @@ format ELF include "__lib__.inc" -fun equ fgets +fun equ __func@fgets fun_str equ 'fgets' section '.text' fun_name db fun_str, 0 section '.data' extrn lib_name -public fun +public fun as fun_str fun dd fun_name lib dd lib_name diff --git a/programs/develop/ktcc/trunk/lib/libc.obj/floor.asm b/programs/develop/ktcc/trunk/lib/libc.obj/floor.asm index 70586f0c9f..59e11a74cf 100644 --- a/programs/develop/ktcc/trunk/lib/libc.obj/floor.asm +++ b/programs/develop/ktcc/trunk/lib/libc.obj/floor.asm @@ -1,11 +1,11 @@ format ELF include "__lib__.inc" -fun equ floor +fun equ __func@floor fun_str equ 'floor' section '.text' fun_name db fun_str, 0 section '.data' extrn lib_name -public fun +public fun as fun_str fun dd fun_name lib dd lib_name diff --git a/programs/develop/ktcc/trunk/lib/libc.obj/fmod.asm b/programs/develop/ktcc/trunk/lib/libc.obj/fmod.asm index 486aa0f583..a90a19a9c3 100644 --- a/programs/develop/ktcc/trunk/lib/libc.obj/fmod.asm +++ b/programs/develop/ktcc/trunk/lib/libc.obj/fmod.asm @@ -1,11 +1,11 @@ format ELF include "__lib__.inc" -fun equ fmod +fun equ __func@fmod fun_str equ 'fmod' section '.text' fun_name db fun_str, 0 section '.data' extrn lib_name -public fun +public fun as fun_str fun dd fun_name lib dd lib_name diff --git a/programs/develop/ktcc/trunk/lib/libc.obj/fopen.asm b/programs/develop/ktcc/trunk/lib/libc.obj/fopen.asm index 72f4c3aab8..ebb5697c19 100644 --- a/programs/develop/ktcc/trunk/lib/libc.obj/fopen.asm +++ b/programs/develop/ktcc/trunk/lib/libc.obj/fopen.asm @@ -1,11 +1,11 @@ format ELF include "__lib__.inc" -fun equ fopen +fun equ __func@fopen fun_str equ 'fopen' section '.text' fun_name db fun_str, 0 section '.data' extrn lib_name -public fun +public fun as fun_str fun dd fun_name lib dd lib_name diff --git a/programs/develop/ktcc/trunk/lib/libc.obj/fputc.asm b/programs/develop/ktcc/trunk/lib/libc.obj/fputc.asm index f122b831fd..c1056aa7ec 100644 --- a/programs/develop/ktcc/trunk/lib/libc.obj/fputc.asm +++ b/programs/develop/ktcc/trunk/lib/libc.obj/fputc.asm @@ -1,11 +1,11 @@ format ELF include "__lib__.inc" -fun equ fputc +fun equ __func@fputc fun_str equ 'fputc' section '.text' fun_name db fun_str, 0 section '.data' extrn lib_name -public fun +public fun as fun_str fun dd fun_name lib dd lib_name diff --git a/programs/develop/ktcc/trunk/lib/libc.obj/fputs.asm b/programs/develop/ktcc/trunk/lib/libc.obj/fputs.asm index ff60b2c3b0..99d96816bf 100644 --- a/programs/develop/ktcc/trunk/lib/libc.obj/fputs.asm +++ b/programs/develop/ktcc/trunk/lib/libc.obj/fputs.asm @@ -1,11 +1,11 @@ format ELF include "__lib__.inc" -fun equ fputs +fun equ __func@fputs fun_str equ 'fputs' section '.text' fun_name db fun_str, 0 section '.data' extrn lib_name -public fun +public fun as fun_str fun dd fun_name lib dd lib_name diff --git a/programs/develop/ktcc/trunk/lib/libc.obj/fread.asm b/programs/develop/ktcc/trunk/lib/libc.obj/fread.asm index 97e4ca27e8..1dfcc76409 100644 --- a/programs/develop/ktcc/trunk/lib/libc.obj/fread.asm +++ b/programs/develop/ktcc/trunk/lib/libc.obj/fread.asm @@ -1,11 +1,11 @@ format ELF include "__lib__.inc" -fun equ fread +fun equ __func@fread fun_str equ 'fread' section '.text' fun_name db fun_str, 0 section '.data' extrn lib_name -public fun +public fun as fun_str fun dd fun_name lib dd lib_name diff --git a/programs/develop/ktcc/trunk/lib/libc.obj/free.asm b/programs/develop/ktcc/trunk/lib/libc.obj/free.asm index a9775939df..16b82b58e9 100644 --- a/programs/develop/ktcc/trunk/lib/libc.obj/free.asm +++ b/programs/develop/ktcc/trunk/lib/libc.obj/free.asm @@ -1,11 +1,11 @@ format ELF include "__lib__.inc" -fun equ free +fun equ __func@free fun_str equ 'free' section '.text' fun_name db fun_str, 0 section '.data' extrn lib_name -public fun +public fun as fun_str fun dd fun_name lib dd lib_name diff --git a/programs/develop/ktcc/trunk/lib/libc.obj/freopen.asm b/programs/develop/ktcc/trunk/lib/libc.obj/freopen.asm index ffafe4f372..f6257767d0 100644 --- a/programs/develop/ktcc/trunk/lib/libc.obj/freopen.asm +++ b/programs/develop/ktcc/trunk/lib/libc.obj/freopen.asm @@ -1,11 +1,11 @@ format ELF include "__lib__.inc" -fun equ freopen +fun equ __func@freopen fun_str equ 'freopen' section '.text' fun_name db fun_str, 0 section '.data' extrn lib_name -public fun +public fun as fun_str fun dd fun_name lib dd lib_name diff --git a/programs/develop/ktcc/trunk/lib/libc.obj/frexp.asm b/programs/develop/ktcc/trunk/lib/libc.obj/frexp.asm index 2160b696d6..c8a86880d5 100644 --- a/programs/develop/ktcc/trunk/lib/libc.obj/frexp.asm +++ b/programs/develop/ktcc/trunk/lib/libc.obj/frexp.asm @@ -1,11 +1,11 @@ format ELF include "__lib__.inc" -fun equ frexp +fun equ __func@frexp fun_str equ 'frexp' section '.text' fun_name db fun_str, 0 section '.data' extrn lib_name -public fun +public fun as fun_str fun dd fun_name lib dd lib_name diff --git a/programs/develop/ktcc/trunk/lib/libc.obj/fseek.asm b/programs/develop/ktcc/trunk/lib/libc.obj/fseek.asm index 9a96a2d9bb..4705b20f00 100644 --- a/programs/develop/ktcc/trunk/lib/libc.obj/fseek.asm +++ b/programs/develop/ktcc/trunk/lib/libc.obj/fseek.asm @@ -1,11 +1,11 @@ format ELF include "__lib__.inc" -fun equ fseek +fun equ __func@fseek fun_str equ 'fseek' section '.text' fun_name db fun_str, 0 section '.data' extrn lib_name -public fun +public fun as fun_str fun dd fun_name lib dd lib_name diff --git a/programs/develop/ktcc/trunk/lib/libc.obj/fsetpos.asm b/programs/develop/ktcc/trunk/lib/libc.obj/fsetpos.asm index dcd1c2b90f..bcbc3d6529 100644 --- a/programs/develop/ktcc/trunk/lib/libc.obj/fsetpos.asm +++ b/programs/develop/ktcc/trunk/lib/libc.obj/fsetpos.asm @@ -1,11 +1,11 @@ format ELF include "__lib__.inc" -fun equ fsetpos +fun equ __func@fsetpos fun_str equ 'fsetpos' section '.text' fun_name db fun_str, 0 section '.data' extrn lib_name -public fun +public fun as fun_str fun dd fun_name lib dd lib_name diff --git a/programs/develop/ktcc/trunk/lib/libc.obj/ftell.asm b/programs/develop/ktcc/trunk/lib/libc.obj/ftell.asm index 6f225af086..83340e91b4 100644 --- a/programs/develop/ktcc/trunk/lib/libc.obj/ftell.asm +++ b/programs/develop/ktcc/trunk/lib/libc.obj/ftell.asm @@ -1,11 +1,11 @@ format ELF include "__lib__.inc" -fun equ ftell +fun equ __func@ftell fun_str equ 'ftell' section '.text' fun_name db fun_str, 0 section '.data' extrn lib_name -public fun +public fun as fun_str fun dd fun_name lib dd lib_name diff --git a/programs/develop/ktcc/trunk/lib/libc.obj/fwrite.asm b/programs/develop/ktcc/trunk/lib/libc.obj/fwrite.asm index 8054bcfa00..464fe904e6 100644 --- a/programs/develop/ktcc/trunk/lib/libc.obj/fwrite.asm +++ b/programs/develop/ktcc/trunk/lib/libc.obj/fwrite.asm @@ -1,11 +1,11 @@ format ELF include "__lib__.inc" -fun equ fwrite +fun equ __func@fwrite fun_str equ 'fwrite' section '.text' fun_name db fun_str, 0 section '.data' extrn lib_name -public fun +public fun as fun_str fun dd fun_name lib dd lib_name diff --git a/programs/develop/ktcc/trunk/lib/libc.obj/getchar.asm b/programs/develop/ktcc/trunk/lib/libc.obj/getchar.asm index 1695c055fd..dbb5f91eab 100644 --- a/programs/develop/ktcc/trunk/lib/libc.obj/getchar.asm +++ b/programs/develop/ktcc/trunk/lib/libc.obj/getchar.asm @@ -1,11 +1,11 @@ format ELF include "__lib__.inc" -fun equ getchar +fun equ __func@getchar fun_str equ 'getchar' section '.text' fun_name db fun_str, 0 section '.data' extrn lib_name -public fun +public fun as fun_str fun dd fun_name lib dd lib_name diff --git a/programs/develop/ktcc/trunk/lib/libc.obj/gets.asm b/programs/develop/ktcc/trunk/lib/libc.obj/gets.asm index eabba879ec..95cdecde41 100644 --- a/programs/develop/ktcc/trunk/lib/libc.obj/gets.asm +++ b/programs/develop/ktcc/trunk/lib/libc.obj/gets.asm @@ -1,11 +1,11 @@ format ELF include "__lib__.inc" -fun equ gets +fun equ __func@gets fun_str equ 'gets' section '.text' fun_name db fun_str, 0 section '.data' extrn lib_name -public fun +public fun as fun_str fun dd fun_name lib dd lib_name diff --git a/programs/develop/ktcc/trunk/lib/libc.obj/hypot.asm b/programs/develop/ktcc/trunk/lib/libc.obj/hypot.asm index 3250a74fef..ee546b99cf 100644 --- a/programs/develop/ktcc/trunk/lib/libc.obj/hypot.asm +++ b/programs/develop/ktcc/trunk/lib/libc.obj/hypot.asm @@ -1,11 +1,11 @@ format ELF include "__lib__.inc" -fun equ hypot +fun equ __func@hypot fun_str equ 'hypot' section '.text' fun_name db fun_str, 0 section '.data' extrn lib_name -public fun +public fun as fun_str fun dd fun_name lib dd lib_name diff --git a/programs/develop/ktcc/trunk/lib/libc.obj/labs.asm b/programs/develop/ktcc/trunk/lib/libc.obj/labs.asm index 9c4de7b2d0..cb702b2acb 100644 --- a/programs/develop/ktcc/trunk/lib/libc.obj/labs.asm +++ b/programs/develop/ktcc/trunk/lib/libc.obj/labs.asm @@ -1,11 +1,11 @@ format ELF include "__lib__.inc" -fun equ labs +fun equ __func@labs fun_str equ 'labs' section '.text' fun_name db fun_str, 0 section '.data' extrn lib_name -public fun +public fun as fun_str fun dd fun_name lib dd lib_name diff --git a/programs/develop/ktcc/trunk/lib/libc.obj/ldexp.asm b/programs/develop/ktcc/trunk/lib/libc.obj/ldexp.asm index b2b10a61f9..7ca6d95f9c 100644 --- a/programs/develop/ktcc/trunk/lib/libc.obj/ldexp.asm +++ b/programs/develop/ktcc/trunk/lib/libc.obj/ldexp.asm @@ -1,11 +1,11 @@ format ELF include "__lib__.inc" -fun equ ldexp +fun equ __func@ldexp fun_str equ 'ldexp' section '.text' fun_name db fun_str, 0 section '.data' extrn lib_name -public fun +public fun as fun_str fun dd fun_name lib dd lib_name diff --git a/programs/develop/ktcc/trunk/lib/libc.obj/ldiv.asm b/programs/develop/ktcc/trunk/lib/libc.obj/ldiv.asm index 2f5ab754da..7ae68e7b5a 100644 --- a/programs/develop/ktcc/trunk/lib/libc.obj/ldiv.asm +++ b/programs/develop/ktcc/trunk/lib/libc.obj/ldiv.asm @@ -1,11 +1,11 @@ format ELF include "__lib__.inc" -fun equ ldiv +fun equ __func@ldiv fun_str equ 'ldiv' section '.text' fun_name db fun_str, 0 section '.data' extrn lib_name -public fun +public fun as fun_str fun dd fun_name lib dd lib_name diff --git a/programs/develop/ktcc/trunk/lib/libc.obj/llabs.asm b/programs/develop/ktcc/trunk/lib/libc.obj/llabs.asm index 8a1a555754..5401be44d2 100644 --- a/programs/develop/ktcc/trunk/lib/libc.obj/llabs.asm +++ b/programs/develop/ktcc/trunk/lib/libc.obj/llabs.asm @@ -1,11 +1,11 @@ format ELF include "__lib__.inc" -fun equ llabs +fun equ __func@llabs fun_str equ 'llabs' section '.text' fun_name db fun_str, 0 section '.data' extrn lib_name -public fun +public fun as fun_str fun dd fun_name lib dd lib_name diff --git a/programs/develop/ktcc/trunk/lib/libc.obj/lldiv.asm b/programs/develop/ktcc/trunk/lib/libc.obj/lldiv.asm index a33d186043..1f453d50f6 100644 --- a/programs/develop/ktcc/trunk/lib/libc.obj/lldiv.asm +++ b/programs/develop/ktcc/trunk/lib/libc.obj/lldiv.asm @@ -1,11 +1,11 @@ format ELF include "__lib__.inc" -fun equ lldiv +fun equ __func@lldiv fun_str equ 'lldiv' section '.text' fun_name db fun_str, 0 section '.data' extrn lib_name -public fun +public fun as fun_str fun dd fun_name lib dd lib_name diff --git a/programs/develop/ktcc/trunk/lib/libc.obj/localtime.asm b/programs/develop/ktcc/trunk/lib/libc.obj/localtime.asm index d622a05676..5d0c3a6663 100644 --- a/programs/develop/ktcc/trunk/lib/libc.obj/localtime.asm +++ b/programs/develop/ktcc/trunk/lib/libc.obj/localtime.asm @@ -1,11 +1,11 @@ format ELF include "__lib__.inc" -fun equ localtime +fun equ __func@localtime fun_str equ 'localtime' section '.text' fun_name db fun_str, 0 section '.data' extrn lib_name -public fun +public fun as fun_str fun dd fun_name lib dd lib_name diff --git a/programs/develop/ktcc/trunk/lib/libc.obj/log.asm b/programs/develop/ktcc/trunk/lib/libc.obj/log.asm index 47bcb63e11..bb31cfb6ed 100644 --- a/programs/develop/ktcc/trunk/lib/libc.obj/log.asm +++ b/programs/develop/ktcc/trunk/lib/libc.obj/log.asm @@ -1,11 +1,11 @@ format ELF include "__lib__.inc" -fun equ log +fun equ __func@log fun_str equ 'log' section '.text' fun_name db fun_str, 0 section '.data' extrn lib_name -public fun +public fun as fun_str fun dd fun_name lib dd lib_name diff --git a/programs/develop/ktcc/trunk/lib/libc.obj/malloc.asm b/programs/develop/ktcc/trunk/lib/libc.obj/malloc.asm index 34ba57f1fb..4e39c421d5 100644 --- a/programs/develop/ktcc/trunk/lib/libc.obj/malloc.asm +++ b/programs/develop/ktcc/trunk/lib/libc.obj/malloc.asm @@ -1,11 +1,11 @@ format ELF include "__lib__.inc" -fun equ malloc +fun equ __func@malloc fun_str equ 'malloc' section '.text' fun_name db fun_str, 0 section '.data' extrn lib_name -public fun +public fun as fun_str fun dd fun_name lib dd lib_name diff --git a/programs/develop/ktcc/trunk/lib/libc.obj/memccpy.asm b/programs/develop/ktcc/trunk/lib/libc.obj/memccpy.asm index bc2c171585..8bdf689401 100644 --- a/programs/develop/ktcc/trunk/lib/libc.obj/memccpy.asm +++ b/programs/develop/ktcc/trunk/lib/libc.obj/memccpy.asm @@ -1,11 +1,11 @@ format ELF include "__lib__.inc" -fun equ memccpy +fun equ __func@memccpy fun_str equ 'memccpy' section '.text' fun_name db fun_str, 0 section '.data' extrn lib_name -public fun +public fun as fun_str fun dd fun_name lib dd lib_name diff --git a/programs/develop/ktcc/trunk/lib/libc.obj/memchr.asm b/programs/develop/ktcc/trunk/lib/libc.obj/memchr.asm index fa95bfcd3b..9596e7a5e2 100644 --- a/programs/develop/ktcc/trunk/lib/libc.obj/memchr.asm +++ b/programs/develop/ktcc/trunk/lib/libc.obj/memchr.asm @@ -1,11 +1,11 @@ format ELF include "__lib__.inc" -fun equ memchr +fun equ __func@memchr fun_str equ 'memchr' section '.text' fun_name db fun_str, 0 section '.data' extrn lib_name -public fun +public fun as fun_str fun dd fun_name lib dd lib_name diff --git a/programs/develop/ktcc/trunk/lib/libc.obj/memcmp.asm b/programs/develop/ktcc/trunk/lib/libc.obj/memcmp.asm index 1d8785b241..76a61f2560 100644 --- a/programs/develop/ktcc/trunk/lib/libc.obj/memcmp.asm +++ b/programs/develop/ktcc/trunk/lib/libc.obj/memcmp.asm @@ -1,11 +1,11 @@ format ELF include "__lib__.inc" -fun equ memcmp +fun equ __func@memcmp fun_str equ 'memcmp' section '.text' fun_name db fun_str, 0 section '.data' extrn lib_name -public fun +public fun as fun_str fun dd fun_name lib dd lib_name diff --git a/programs/develop/ktcc/trunk/lib/libc.obj/memcpy.asm b/programs/develop/ktcc/trunk/lib/libc.obj/memcpy.asm index 805a5e6cc9..234c09e76e 100644 --- a/programs/develop/ktcc/trunk/lib/libc.obj/memcpy.asm +++ b/programs/develop/ktcc/trunk/lib/libc.obj/memcpy.asm @@ -1,11 +1,11 @@ format ELF include "__lib__.inc" -fun equ memcpy +fun equ __func@memcpy fun_str equ 'memcpy' section '.text' fun_name db fun_str, 0 section '.data' extrn lib_name -public fun +public fun as fun_str fun dd fun_name lib dd lib_name diff --git a/programs/develop/ktcc/trunk/lib/libc.obj/memmove.asm b/programs/develop/ktcc/trunk/lib/libc.obj/memmove.asm index 7f54e097b9..99ccdc7bad 100644 --- a/programs/develop/ktcc/trunk/lib/libc.obj/memmove.asm +++ b/programs/develop/ktcc/trunk/lib/libc.obj/memmove.asm @@ -1,11 +1,11 @@ format ELF include "__lib__.inc" -fun equ memmove +fun equ __func@memmove fun_str equ 'memmove' section '.text' fun_name db fun_str, 0 section '.data' extrn lib_name -public fun +public fun as fun_str fun dd fun_name lib dd lib_name diff --git a/programs/develop/ktcc/trunk/lib/libc.obj/memset.asm b/programs/develop/ktcc/trunk/lib/libc.obj/memset.asm index 5b00ccee3a..6992f78dd4 100644 --- a/programs/develop/ktcc/trunk/lib/libc.obj/memset.asm +++ b/programs/develop/ktcc/trunk/lib/libc.obj/memset.asm @@ -1,11 +1,11 @@ format ELF include "__lib__.inc" -fun equ memset +fun equ __func@memset fun_str equ 'memset' section '.text' fun_name db fun_str, 0 section '.data' extrn lib_name -public fun +public fun as fun_str fun dd fun_name lib dd lib_name diff --git a/programs/develop/ktcc/trunk/lib/libc.obj/mktime.asm b/programs/develop/ktcc/trunk/lib/libc.obj/mktime.asm index 84d329687e..c501adc8a9 100644 --- a/programs/develop/ktcc/trunk/lib/libc.obj/mktime.asm +++ b/programs/develop/ktcc/trunk/lib/libc.obj/mktime.asm @@ -1,11 +1,11 @@ format ELF include "__lib__.inc" -fun equ mktime +fun equ __func@mktime fun_str equ 'mktime' section '.text' fun_name db fun_str, 0 section '.data' extrn lib_name -public fun +public fun as fun_str fun dd fun_name lib dd lib_name diff --git a/programs/develop/ktcc/trunk/lib/libc.obj/modf.asm b/programs/develop/ktcc/trunk/lib/libc.obj/modf.asm index 8b8720d697..54cef3dd9a 100644 --- a/programs/develop/ktcc/trunk/lib/libc.obj/modf.asm +++ b/programs/develop/ktcc/trunk/lib/libc.obj/modf.asm @@ -1,11 +1,11 @@ format ELF include "__lib__.inc" -fun equ modf +fun equ __func@modf fun_str equ 'modf' section '.text' fun_name db fun_str, 0 section '.data' extrn lib_name -public fun +public fun as fun_str fun dd fun_name lib dd lib_name diff --git a/programs/develop/ktcc/trunk/lib/libc.obj/modfl.asm b/programs/develop/ktcc/trunk/lib/libc.obj/modfl.asm index 7ce20eedec..c0adc4efce 100644 --- a/programs/develop/ktcc/trunk/lib/libc.obj/modfl.asm +++ b/programs/develop/ktcc/trunk/lib/libc.obj/modfl.asm @@ -1,11 +1,11 @@ format ELF include "__lib__.inc" -fun equ modfl +fun equ __func@modfl fun_str equ 'modfl' section '.text' fun_name db fun_str, 0 section '.data' extrn lib_name -public fun +public fun as fun_str fun dd fun_name lib dd lib_name diff --git a/programs/develop/ktcc/trunk/lib/libc.obj/opendir.asm b/programs/develop/ktcc/trunk/lib/libc.obj/opendir.asm index 0ba497c3c9..bd3b123e4a 100644 --- a/programs/develop/ktcc/trunk/lib/libc.obj/opendir.asm +++ b/programs/develop/ktcc/trunk/lib/libc.obj/opendir.asm @@ -1,11 +1,11 @@ format ELF include "__lib__.inc" -fun equ opendir +fun equ __func@opendir fun_str equ 'opendir' section '.text' fun_name db fun_str, 0 section '.data' extrn lib_name -public fun +public fun as fun_str fun dd fun_name lib dd lib_name diff --git a/programs/develop/ktcc/trunk/lib/libc.obj/perror.asm b/programs/develop/ktcc/trunk/lib/libc.obj/perror.asm index c0eb8986ee..f9301061c1 100644 --- a/programs/develop/ktcc/trunk/lib/libc.obj/perror.asm +++ b/programs/develop/ktcc/trunk/lib/libc.obj/perror.asm @@ -1,11 +1,11 @@ format ELF include "__lib__.inc" -fun equ perror +fun equ __func@perror fun_str equ 'perror' section '.text' fun_name db fun_str, 0 section '.data' extrn lib_name -public fun +public fun as fun_str fun dd fun_name lib dd lib_name diff --git a/programs/develop/ktcc/trunk/lib/libc.obj/pow.asm b/programs/develop/ktcc/trunk/lib/libc.obj/pow.asm index 4b01a9db9e..a4f11f164d 100644 --- a/programs/develop/ktcc/trunk/lib/libc.obj/pow.asm +++ b/programs/develop/ktcc/trunk/lib/libc.obj/pow.asm @@ -1,11 +1,11 @@ format ELF include "__lib__.inc" -fun equ pow +fun equ __func@pow fun_str equ 'pow' section '.text' fun_name db fun_str, 0 section '.data' extrn lib_name -public fun +public fun as fun_str fun dd fun_name lib dd lib_name diff --git a/programs/develop/ktcc/trunk/lib/libc.obj/pow10.asm b/programs/develop/ktcc/trunk/lib/libc.obj/pow10.asm index 1b865478dd..49d7c9cb19 100644 --- a/programs/develop/ktcc/trunk/lib/libc.obj/pow10.asm +++ b/programs/develop/ktcc/trunk/lib/libc.obj/pow10.asm @@ -1,11 +1,11 @@ format ELF include "__lib__.inc" -fun equ pow10 +fun equ __func@pow10 fun_str equ 'pow10' section '.text' fun_name db fun_str, 0 section '.data' extrn lib_name -public fun +public fun as fun_str fun dd fun_name lib dd lib_name diff --git a/programs/develop/ktcc/trunk/lib/libc.obj/pow2.asm b/programs/develop/ktcc/trunk/lib/libc.obj/pow2.asm index eb903fe0ef..3b4aaffaa8 100644 --- a/programs/develop/ktcc/trunk/lib/libc.obj/pow2.asm +++ b/programs/develop/ktcc/trunk/lib/libc.obj/pow2.asm @@ -1,11 +1,11 @@ format ELF include "__lib__.inc" -fun equ pow2 +fun equ __func@pow2 fun_str equ 'pow2' section '.text' fun_name db fun_str, 0 section '.data' extrn lib_name -public fun +public fun as fun_str fun dd fun_name lib dd lib_name diff --git a/programs/develop/ktcc/trunk/lib/libc.obj/printf.asm b/programs/develop/ktcc/trunk/lib/libc.obj/printf.asm index 8e36057e4b..e070803a4d 100644 --- a/programs/develop/ktcc/trunk/lib/libc.obj/printf.asm +++ b/programs/develop/ktcc/trunk/lib/libc.obj/printf.asm @@ -1,11 +1,11 @@ format ELF include "__lib__.inc" -fun equ printf +fun equ __func@printf fun_str equ 'printf' section '.text' fun_name db fun_str, 0 section '.data' extrn lib_name -public fun +public fun as fun_str fun dd fun_name lib dd lib_name diff --git a/programs/develop/ktcc/trunk/lib/libc.obj/puts.asm b/programs/develop/ktcc/trunk/lib/libc.obj/puts.asm index a7f1c26319..95d0042cd7 100644 --- a/programs/develop/ktcc/trunk/lib/libc.obj/puts.asm +++ b/programs/develop/ktcc/trunk/lib/libc.obj/puts.asm @@ -1,11 +1,11 @@ format ELF include "__lib__.inc" -fun equ puts +fun equ __func@puts fun_str equ 'puts' section '.text' fun_name db fun_str, 0 section '.data' extrn lib_name -public fun +public fun as fun_str fun dd fun_name lib dd lib_name diff --git a/programs/develop/ktcc/trunk/lib/libc.obj/readdir.asm b/programs/develop/ktcc/trunk/lib/libc.obj/readdir.asm index 586026567e..c2c51126ae 100644 --- a/programs/develop/ktcc/trunk/lib/libc.obj/readdir.asm +++ b/programs/develop/ktcc/trunk/lib/libc.obj/readdir.asm @@ -1,11 +1,11 @@ format ELF include "__lib__.inc" -fun equ readdir +fun equ __func@readdir fun_str equ 'readdir' section '.text' fun_name db fun_str, 0 section '.data' extrn lib_name -public fun +public fun as fun_str fun dd fun_name lib dd lib_name diff --git a/programs/develop/ktcc/trunk/lib/libc.obj/realloc.asm b/programs/develop/ktcc/trunk/lib/libc.obj/realloc.asm index 77632a71ff..b10b1c0009 100644 --- a/programs/develop/ktcc/trunk/lib/libc.obj/realloc.asm +++ b/programs/develop/ktcc/trunk/lib/libc.obj/realloc.asm @@ -1,11 +1,11 @@ format ELF include "__lib__.inc" -fun equ realloc +fun equ __func@realloc fun_str equ 'realloc' section '.text' fun_name db fun_str, 0 section '.data' extrn lib_name -public fun +public fun as fun_str fun dd fun_name lib dd lib_name diff --git a/programs/develop/ktcc/trunk/lib/libc.obj/remove.asm b/programs/develop/ktcc/trunk/lib/libc.obj/remove.asm index 7b7b59d290..5a564f3e57 100644 --- a/programs/develop/ktcc/trunk/lib/libc.obj/remove.asm +++ b/programs/develop/ktcc/trunk/lib/libc.obj/remove.asm @@ -1,11 +1,11 @@ format ELF include "__lib__.inc" -fun equ remove +fun equ __func@remove fun_str equ 'remove' section '.text' fun_name db fun_str, 0 section '.data' extrn lib_name -public fun +public fun as fun_str fun dd fun_name lib dd lib_name diff --git a/programs/develop/ktcc/trunk/lib/libc.obj/rename.asm b/programs/develop/ktcc/trunk/lib/libc.obj/rename.asm index a876e97a45..6bd698cf6c 100644 --- a/programs/develop/ktcc/trunk/lib/libc.obj/rename.asm +++ b/programs/develop/ktcc/trunk/lib/libc.obj/rename.asm @@ -1,11 +1,11 @@ format ELF include "__lib__.inc" -fun equ rename +fun equ __func@rename fun_str equ 'rename' section '.text' fun_name db fun_str, 0 section '.data' extrn lib_name -public fun +public fun as fun_str fun dd fun_name lib dd lib_name diff --git a/programs/develop/ktcc/trunk/lib/libc.obj/rewind.asm b/programs/develop/ktcc/trunk/lib/libc.obj/rewind.asm index 349e0dbaf3..6bcbfcd1da 100644 --- a/programs/develop/ktcc/trunk/lib/libc.obj/rewind.asm +++ b/programs/develop/ktcc/trunk/lib/libc.obj/rewind.asm @@ -1,11 +1,11 @@ format ELF include "__lib__.inc" -fun equ rewind +fun equ __func@rewind fun_str equ 'rewind' section '.text' fun_name db fun_str, 0 section '.data' extrn lib_name -public fun +public fun as fun_str fun dd fun_name lib dd lib_name diff --git a/programs/develop/ktcc/trunk/lib/libc.obj/rewinddir.asm b/programs/develop/ktcc/trunk/lib/libc.obj/rewinddir.asm index ceed98d4ca..7e5cfe78d3 100644 --- a/programs/develop/ktcc/trunk/lib/libc.obj/rewinddir.asm +++ b/programs/develop/ktcc/trunk/lib/libc.obj/rewinddir.asm @@ -1,11 +1,11 @@ format ELF include "__lib__.inc" -fun equ rewinddir +fun equ __func@rewinddir fun_str equ 'rewinddir' section '.text' fun_name db fun_str, 0 section '.data' extrn lib_name -public fun +public fun as fun_str fun dd fun_name lib dd lib_name diff --git a/programs/develop/ktcc/trunk/lib/libc.obj/seekdir.asm b/programs/develop/ktcc/trunk/lib/libc.obj/seekdir.asm index 600e6d3c15..5c13945343 100644 --- a/programs/develop/ktcc/trunk/lib/libc.obj/seekdir.asm +++ b/programs/develop/ktcc/trunk/lib/libc.obj/seekdir.asm @@ -1,11 +1,11 @@ format ELF include "__lib__.inc" -fun equ seekdir +fun equ __func@seekdir fun_str equ 'seekdir' section '.text' fun_name db fun_str, 0 section '.data' extrn lib_name -public fun +public fun as fun_str fun dd fun_name lib dd lib_name diff --git a/programs/develop/ktcc/trunk/lib/libc.obj/setbuf.asm b/programs/develop/ktcc/trunk/lib/libc.obj/setbuf.asm index 305a95d6c1..c4746c5ccd 100644 --- a/programs/develop/ktcc/trunk/lib/libc.obj/setbuf.asm +++ b/programs/develop/ktcc/trunk/lib/libc.obj/setbuf.asm @@ -1,11 +1,11 @@ format ELF include "__lib__.inc" -fun equ setbuf +fun equ __func@setbuf fun_str equ 'setbuf' section '.text' fun_name db fun_str, 0 section '.data' extrn lib_name -public fun +public fun as fun_str fun dd fun_name lib dd lib_name diff --git a/programs/develop/ktcc/trunk/lib/libc.obj/setvbuf.asm b/programs/develop/ktcc/trunk/lib/libc.obj/setvbuf.asm index 08f4ccc516..41a0a08b4e 100644 --- a/programs/develop/ktcc/trunk/lib/libc.obj/setvbuf.asm +++ b/programs/develop/ktcc/trunk/lib/libc.obj/setvbuf.asm @@ -1,11 +1,11 @@ format ELF include "__lib__.inc" -fun equ setvbuf +fun equ __func@setvbuf fun_str equ 'setvbuf' section '.text' fun_name db fun_str, 0 section '.data' extrn lib_name -public fun +public fun as fun_str fun dd fun_name lib dd lib_name diff --git a/programs/develop/ktcc/trunk/lib/libc.obj/sin.asm b/programs/develop/ktcc/trunk/lib/libc.obj/sin.asm index 659d8f13e6..292771ab6e 100644 --- a/programs/develop/ktcc/trunk/lib/libc.obj/sin.asm +++ b/programs/develop/ktcc/trunk/lib/libc.obj/sin.asm @@ -1,11 +1,11 @@ format ELF include "__lib__.inc" -fun equ sin +fun equ __func@sin fun_str equ 'sin' section '.text' fun_name db fun_str, 0 section '.data' extrn lib_name -public fun +public fun as fun_str fun dd fun_name lib dd lib_name diff --git a/programs/develop/ktcc/trunk/lib/libc.obj/sinh.asm b/programs/develop/ktcc/trunk/lib/libc.obj/sinh.asm index 54ec69f062..2eb6a58d88 100644 --- a/programs/develop/ktcc/trunk/lib/libc.obj/sinh.asm +++ b/programs/develop/ktcc/trunk/lib/libc.obj/sinh.asm @@ -1,11 +1,11 @@ format ELF include "__lib__.inc" -fun equ sinh +fun equ __func@sinh fun_str equ 'sinh' section '.text' fun_name db fun_str, 0 section '.data' extrn lib_name -public fun +public fun as fun_str fun dd fun_name lib dd lib_name diff --git a/programs/develop/ktcc/trunk/lib/libc.obj/snprintf.asm b/programs/develop/ktcc/trunk/lib/libc.obj/snprintf.asm index 43a3309bb6..8bc5442b46 100644 --- a/programs/develop/ktcc/trunk/lib/libc.obj/snprintf.asm +++ b/programs/develop/ktcc/trunk/lib/libc.obj/snprintf.asm @@ -1,11 +1,11 @@ format ELF include "__lib__.inc" -fun equ snprintf +fun equ __func@snprintf fun_str equ 'snprintf' section '.text' fun_name db fun_str, 0 section '.data' extrn lib_name -public fun +public fun as fun_str fun dd fun_name lib dd lib_name diff --git a/programs/develop/ktcc/trunk/lib/libc.obj/sprintf.asm b/programs/develop/ktcc/trunk/lib/libc.obj/sprintf.asm index 14b334aa15..8908e0609b 100644 --- a/programs/develop/ktcc/trunk/lib/libc.obj/sprintf.asm +++ b/programs/develop/ktcc/trunk/lib/libc.obj/sprintf.asm @@ -1,11 +1,11 @@ format ELF include "__lib__.inc" -fun equ sprintf +fun equ __func@sprintf fun_str equ 'sprintf' section '.text' fun_name db fun_str, 0 section '.data' extrn lib_name -public fun +public fun as fun_str fun dd fun_name lib dd lib_name diff --git a/programs/develop/ktcc/trunk/lib/libc.obj/sqrt.asm b/programs/develop/ktcc/trunk/lib/libc.obj/sqrt.asm index 6f8695e8ca..b2002a4a15 100644 --- a/programs/develop/ktcc/trunk/lib/libc.obj/sqrt.asm +++ b/programs/develop/ktcc/trunk/lib/libc.obj/sqrt.asm @@ -1,11 +1,11 @@ format ELF include "__lib__.inc" -fun equ sqrt +fun equ __func@sqrt fun_str equ 'sqrt' section '.text' fun_name db fun_str, 0 section '.data' extrn lib_name -public fun +public fun as fun_str fun dd fun_name lib dd lib_name diff --git a/programs/develop/ktcc/trunk/lib/libc.obj/strcat.asm b/programs/develop/ktcc/trunk/lib/libc.obj/strcat.asm index f802080f26..9d3aaa3ef5 100644 --- a/programs/develop/ktcc/trunk/lib/libc.obj/strcat.asm +++ b/programs/develop/ktcc/trunk/lib/libc.obj/strcat.asm @@ -1,11 +1,11 @@ format ELF include "__lib__.inc" -fun equ strcat +fun equ __func@strcat fun_str equ 'strcat' section '.text' fun_name db fun_str, 0 section '.data' extrn lib_name -public fun +public fun as fun_str fun dd fun_name lib dd lib_name diff --git a/programs/develop/ktcc/trunk/lib/libc.obj/strchr.asm b/programs/develop/ktcc/trunk/lib/libc.obj/strchr.asm index d072885a1f..d1cdc8d6d6 100644 --- a/programs/develop/ktcc/trunk/lib/libc.obj/strchr.asm +++ b/programs/develop/ktcc/trunk/lib/libc.obj/strchr.asm @@ -1,11 +1,11 @@ format ELF include "__lib__.inc" -fun equ strchr +fun equ __func@strchr fun_str equ 'strchr' section '.text' fun_name db fun_str, 0 section '.data' extrn lib_name -public fun +public fun as fun_str fun dd fun_name lib dd lib_name diff --git a/programs/develop/ktcc/trunk/lib/libc.obj/strcmp.asm b/programs/develop/ktcc/trunk/lib/libc.obj/strcmp.asm index ddf98efc91..94e2928187 100644 --- a/programs/develop/ktcc/trunk/lib/libc.obj/strcmp.asm +++ b/programs/develop/ktcc/trunk/lib/libc.obj/strcmp.asm @@ -1,11 +1,11 @@ format ELF include "__lib__.inc" -fun equ strcmp +fun equ __func@strcmp fun_str equ 'strcmp' section '.text' fun_name db fun_str, 0 section '.data' extrn lib_name -public fun +public fun as fun_str fun dd fun_name lib dd lib_name diff --git a/programs/develop/ktcc/trunk/lib/libc.obj/strcoll.asm b/programs/develop/ktcc/trunk/lib/libc.obj/strcoll.asm index d756402841..abe79ca46b 100644 --- a/programs/develop/ktcc/trunk/lib/libc.obj/strcoll.asm +++ b/programs/develop/ktcc/trunk/lib/libc.obj/strcoll.asm @@ -1,11 +1,11 @@ format ELF include "__lib__.inc" -fun equ strcoll +fun equ __func@strcoll fun_str equ 'strcoll' section '.text' fun_name db fun_str, 0 section '.data' extrn lib_name -public fun +public fun as fun_str fun dd fun_name lib dd lib_name diff --git a/programs/develop/ktcc/trunk/lib/libc.obj/strcpy.asm b/programs/develop/ktcc/trunk/lib/libc.obj/strcpy.asm index 0d5f7730ab..6bd9da8377 100644 --- a/programs/develop/ktcc/trunk/lib/libc.obj/strcpy.asm +++ b/programs/develop/ktcc/trunk/lib/libc.obj/strcpy.asm @@ -1,11 +1,11 @@ format ELF include "__lib__.inc" -fun equ strcpy +fun equ __func@strcpy fun_str equ 'strcpy' section '.text' fun_name db fun_str, 0 section '.data' extrn lib_name -public fun +public fun as fun_str fun dd fun_name lib dd lib_name diff --git a/programs/develop/ktcc/trunk/lib/libc.obj/strcspn.asm b/programs/develop/ktcc/trunk/lib/libc.obj/strcspn.asm index 33c8195985..6cff4b9420 100644 --- a/programs/develop/ktcc/trunk/lib/libc.obj/strcspn.asm +++ b/programs/develop/ktcc/trunk/lib/libc.obj/strcspn.asm @@ -1,11 +1,11 @@ format ELF include "__lib__.inc" -fun equ strcspn +fun equ __func@strcspn fun_str equ 'strcspn' section '.text' fun_name db fun_str, 0 section '.data' extrn lib_name -public fun +public fun as fun_str fun dd fun_name lib dd lib_name diff --git a/programs/develop/ktcc/trunk/lib/libc.obj/strerror.asm b/programs/develop/ktcc/trunk/lib/libc.obj/strerror.asm index 685f76f782..f62d91270e 100644 --- a/programs/develop/ktcc/trunk/lib/libc.obj/strerror.asm +++ b/programs/develop/ktcc/trunk/lib/libc.obj/strerror.asm @@ -1,11 +1,11 @@ format ELF include "__lib__.inc" -fun equ strerror +fun equ __func@strerror fun_str equ 'strerror' section '.text' fun_name db fun_str, 0 section '.data' extrn lib_name -public fun +public fun as fun_str fun dd fun_name lib dd lib_name diff --git a/programs/develop/ktcc/trunk/lib/libc.obj/strlen.asm b/programs/develop/ktcc/trunk/lib/libc.obj/strlen.asm index d24fa44457..5fe7c9ef6d 100644 --- a/programs/develop/ktcc/trunk/lib/libc.obj/strlen.asm +++ b/programs/develop/ktcc/trunk/lib/libc.obj/strlen.asm @@ -1,11 +1,11 @@ format ELF include "__lib__.inc" -fun equ strlen +fun equ __func@strlen fun_str equ 'strlen' section '.text' fun_name db fun_str, 0 section '.data' extrn lib_name -public fun +public fun as fun_str fun dd fun_name lib dd lib_name diff --git a/programs/develop/ktcc/trunk/lib/libc.obj/strncat.asm b/programs/develop/ktcc/trunk/lib/libc.obj/strncat.asm index 8cf27a6a37..abd4271802 100644 --- a/programs/develop/ktcc/trunk/lib/libc.obj/strncat.asm +++ b/programs/develop/ktcc/trunk/lib/libc.obj/strncat.asm @@ -1,11 +1,11 @@ format ELF include "__lib__.inc" -fun equ strncat +fun equ __func@strncat fun_str equ 'strncat' section '.text' fun_name db fun_str, 0 section '.data' extrn lib_name -public fun +public fun as fun_str fun dd fun_name lib dd lib_name diff --git a/programs/develop/ktcc/trunk/lib/libc.obj/strncmp.asm b/programs/develop/ktcc/trunk/lib/libc.obj/strncmp.asm index 72fb2b8afe..881e25048b 100644 --- a/programs/develop/ktcc/trunk/lib/libc.obj/strncmp.asm +++ b/programs/develop/ktcc/trunk/lib/libc.obj/strncmp.asm @@ -1,11 +1,11 @@ format ELF include "__lib__.inc" -fun equ strncmp +fun equ __func@strncmp fun_str equ 'strncmp' section '.text' fun_name db fun_str, 0 section '.data' extrn lib_name -public fun +public fun as fun_str fun dd fun_name lib dd lib_name diff --git a/programs/develop/ktcc/trunk/lib/libc.obj/strncpy.asm b/programs/develop/ktcc/trunk/lib/libc.obj/strncpy.asm index 30ebf04c51..2235afd293 100644 --- a/programs/develop/ktcc/trunk/lib/libc.obj/strncpy.asm +++ b/programs/develop/ktcc/trunk/lib/libc.obj/strncpy.asm @@ -1,11 +1,11 @@ format ELF include "__lib__.inc" -fun equ strncpy +fun equ __func@strncpy fun_str equ 'strncpy' section '.text' fun_name db fun_str, 0 section '.data' extrn lib_name -public fun +public fun as fun_str fun dd fun_name lib dd lib_name diff --git a/programs/develop/ktcc/trunk/lib/libc.obj/strpbrk.asm b/programs/develop/ktcc/trunk/lib/libc.obj/strpbrk.asm index 16d01d269e..322ac4de15 100644 --- a/programs/develop/ktcc/trunk/lib/libc.obj/strpbrk.asm +++ b/programs/develop/ktcc/trunk/lib/libc.obj/strpbrk.asm @@ -1,11 +1,11 @@ format ELF include "__lib__.inc" -fun equ strpbrk +fun equ __func@strpbrk fun_str equ 'strpbrk' section '.text' fun_name db fun_str, 0 section '.data' extrn lib_name -public fun +public fun as fun_str fun dd fun_name lib dd lib_name diff --git a/programs/develop/ktcc/trunk/lib/libc.obj/strrchr.asm b/programs/develop/ktcc/trunk/lib/libc.obj/strrchr.asm index c3230b9bf1..b1eb92e5fe 100644 --- a/programs/develop/ktcc/trunk/lib/libc.obj/strrchr.asm +++ b/programs/develop/ktcc/trunk/lib/libc.obj/strrchr.asm @@ -1,11 +1,11 @@ format ELF include "__lib__.inc" -fun equ strrchr +fun equ __func@strrchr fun_str equ 'strrchr' section '.text' fun_name db fun_str, 0 section '.data' extrn lib_name -public fun +public fun as fun_str fun dd fun_name lib dd lib_name diff --git a/programs/develop/ktcc/trunk/lib/libc.obj/strrev.asm b/programs/develop/ktcc/trunk/lib/libc.obj/strrev.asm index 5e382d60cb..21eaf526cd 100644 --- a/programs/develop/ktcc/trunk/lib/libc.obj/strrev.asm +++ b/programs/develop/ktcc/trunk/lib/libc.obj/strrev.asm @@ -1,11 +1,11 @@ format ELF include "__lib__.inc" -fun equ strrev +fun equ __func@strrev fun_str equ 'strrev' section '.text' fun_name db fun_str, 0 section '.data' extrn lib_name -public fun +public fun as fun_str fun dd fun_name lib dd lib_name diff --git a/programs/develop/ktcc/trunk/lib/libc.obj/strspn.asm b/programs/develop/ktcc/trunk/lib/libc.obj/strspn.asm index b799132de3..9e005cb5ed 100644 --- a/programs/develop/ktcc/trunk/lib/libc.obj/strspn.asm +++ b/programs/develop/ktcc/trunk/lib/libc.obj/strspn.asm @@ -1,11 +1,11 @@ format ELF include "__lib__.inc" -fun equ strspn +fun equ __func@strspn fun_str equ 'strspn' section '.text' fun_name db fun_str, 0 section '.data' extrn lib_name -public fun +public fun as fun_str fun dd fun_name lib dd lib_name diff --git a/programs/develop/ktcc/trunk/lib/libc.obj/strstr.asm b/programs/develop/ktcc/trunk/lib/libc.obj/strstr.asm index 529af41e2f..efc15bb972 100644 --- a/programs/develop/ktcc/trunk/lib/libc.obj/strstr.asm +++ b/programs/develop/ktcc/trunk/lib/libc.obj/strstr.asm @@ -1,11 +1,11 @@ format ELF include "__lib__.inc" -fun equ strstr +fun equ __func@strstr fun_str equ 'strstr' section '.text' fun_name db fun_str, 0 section '.data' extrn lib_name -public fun +public fun as fun_str fun dd fun_name lib dd lib_name diff --git a/programs/develop/ktcc/trunk/lib/libc.obj/strtok.asm b/programs/develop/ktcc/trunk/lib/libc.obj/strtok.asm index 01ddc2ff67..5f578074cf 100644 --- a/programs/develop/ktcc/trunk/lib/libc.obj/strtok.asm +++ b/programs/develop/ktcc/trunk/lib/libc.obj/strtok.asm @@ -1,11 +1,11 @@ format ELF include "__lib__.inc" -fun equ strtok +fun equ __func@strtok fun_str equ 'strtok' section '.text' fun_name db fun_str, 0 section '.data' extrn lib_name -public fun +public fun as fun_str fun dd fun_name lib dd lib_name diff --git a/programs/develop/ktcc/trunk/lib/libc.obj/strxfrm.asm b/programs/develop/ktcc/trunk/lib/libc.obj/strxfrm.asm index 2eab4c1630..d1a8ea3fbb 100644 --- a/programs/develop/ktcc/trunk/lib/libc.obj/strxfrm.asm +++ b/programs/develop/ktcc/trunk/lib/libc.obj/strxfrm.asm @@ -1,11 +1,11 @@ format ELF include "__lib__.inc" -fun equ strxfrm +fun equ __func@strxfrm fun_str equ 'strxfrm' section '.text' fun_name db fun_str, 0 section '.data' extrn lib_name -public fun +public fun as fun_str fun dd fun_name lib dd lib_name diff --git a/programs/develop/ktcc/trunk/lib/libc.obj/symbols.txt b/programs/develop/ktcc/trunk/lib/libc.obj/symbols.txt new file mode 100644 index 0000000000..a53ea8df1c --- /dev/null +++ b/programs/develop/ktcc/trunk/lib/libc.obj/symbols.txt @@ -0,0 +1,111 @@ +abs +acos +acosh +asin +asinh +atan +atan2 +atanh +atoi +atol +atoll +calloc +ceil +clearerr +closedir +cos +cosh +debug_printf +difftime +div +exit +exp +fabs +fclose +feof +ferror +fflush +fgetc +fgetpos +fgets +floor +fmod +fopen +fputc +fputs +fread +free +freopen +frexp +fseek +fsetpos +ftell +fwrite +getchar +gets +hypot +labs +ldexp +ldiv +llabs +lldiv +localtime +log +malloc +memccpy +memchr +memcmp +memcpy +memmove +memset +mktime +modf +modfl +opendir +perror +pow +pow10 +pow2 +printf +puts +readdir +realloc +remove +rename +rewind +rewinddir +seekdir +setbuf +setvbuf +sin +sinh +snprintf +sprintf +sqrt +strcat +strchr +strcmp +strcoll +strcpy +strcspn +strerror +strlen +strncat +strncmp +strncpy +strpbrk +strrchr +strrev +strspn +strstr +strtok +strxfrm +tan +tanh +telldir +time +tmpfile +tmpnam +vprintf +vsnprintf + diff --git a/programs/develop/ktcc/trunk/lib/libc.obj/tan.asm b/programs/develop/ktcc/trunk/lib/libc.obj/tan.asm index c2400a6a88..c7d91566af 100644 --- a/programs/develop/ktcc/trunk/lib/libc.obj/tan.asm +++ b/programs/develop/ktcc/trunk/lib/libc.obj/tan.asm @@ -1,11 +1,11 @@ format ELF include "__lib__.inc" -fun equ tan +fun equ __func@tan fun_str equ 'tan' section '.text' fun_name db fun_str, 0 section '.data' extrn lib_name -public fun +public fun as fun_str fun dd fun_name lib dd lib_name diff --git a/programs/develop/ktcc/trunk/lib/libc.obj/tanh.asm b/programs/develop/ktcc/trunk/lib/libc.obj/tanh.asm index b7fb349a59..8ffcdd95df 100644 --- a/programs/develop/ktcc/trunk/lib/libc.obj/tanh.asm +++ b/programs/develop/ktcc/trunk/lib/libc.obj/tanh.asm @@ -1,11 +1,11 @@ format ELF include "__lib__.inc" -fun equ tanh +fun equ __func@tanh fun_str equ 'tanh' section '.text' fun_name db fun_str, 0 section '.data' extrn lib_name -public fun +public fun as fun_str fun dd fun_name lib dd lib_name diff --git a/programs/develop/ktcc/trunk/lib/libc.obj/telldir.asm b/programs/develop/ktcc/trunk/lib/libc.obj/telldir.asm index 62b5e5b445..aa49a076d7 100644 --- a/programs/develop/ktcc/trunk/lib/libc.obj/telldir.asm +++ b/programs/develop/ktcc/trunk/lib/libc.obj/telldir.asm @@ -1,11 +1,11 @@ format ELF include "__lib__.inc" -fun equ telldir +fun equ __func@telldir fun_str equ 'telldir' section '.text' fun_name db fun_str, 0 section '.data' extrn lib_name -public fun +public fun as fun_str fun dd fun_name lib dd lib_name diff --git a/programs/develop/ktcc/trunk/lib/libc.obj/time.asm b/programs/develop/ktcc/trunk/lib/libc.obj/time.asm index 6588585d61..242e888c59 100644 --- a/programs/develop/ktcc/trunk/lib/libc.obj/time.asm +++ b/programs/develop/ktcc/trunk/lib/libc.obj/time.asm @@ -1,11 +1,11 @@ format ELF include "__lib__.inc" -fun equ time +fun equ __func@time fun_str equ 'time' section '.text' fun_name db fun_str, 0 section '.data' extrn lib_name -public fun +public fun as fun_str fun dd fun_name lib dd lib_name diff --git a/programs/develop/ktcc/trunk/lib/libc.obj/tmpfile.asm b/programs/develop/ktcc/trunk/lib/libc.obj/tmpfile.asm index 3d595ef8d9..a8ca309ae4 100644 --- a/programs/develop/ktcc/trunk/lib/libc.obj/tmpfile.asm +++ b/programs/develop/ktcc/trunk/lib/libc.obj/tmpfile.asm @@ -1,11 +1,11 @@ format ELF include "__lib__.inc" -fun equ tmpfile +fun equ __func@tmpfile fun_str equ 'tmpfile' section '.text' fun_name db fun_str, 0 section '.data' extrn lib_name -public fun +public fun as fun_str fun dd fun_name lib dd lib_name diff --git a/programs/develop/ktcc/trunk/lib/libc.obj/tmpnam.asm b/programs/develop/ktcc/trunk/lib/libc.obj/tmpnam.asm index 78560e043e..c9303e89db 100644 --- a/programs/develop/ktcc/trunk/lib/libc.obj/tmpnam.asm +++ b/programs/develop/ktcc/trunk/lib/libc.obj/tmpnam.asm @@ -1,11 +1,11 @@ format ELF include "__lib__.inc" -fun equ tmpnam +fun equ __func@tmpnam fun_str equ 'tmpnam' section '.text' fun_name db fun_str, 0 section '.data' extrn lib_name -public fun +public fun as fun_str fun dd fun_name lib dd lib_name diff --git a/programs/develop/ktcc/trunk/lib/libc.obj/tools/mklib b/programs/develop/ktcc/trunk/lib/libc.obj/tools/mklib new file mode 100755 index 0000000000000000000000000000000000000000..b8c90ca26f2d340944da5345eec9aee0de1eab45 GIT binary patch literal 4844 zcmc&&U2GIp6u!Hq?RJ4}!ICsU?1ZHJs9k& zopaB3&Ufy)|1;$ zr7G%3G7nYc&8}4T*_C~=!g4~vf+hEFdot1A+Oj7QdPH?;^(i z0&`sJfNvrI?mNybvb9Lgk8R$Ro>L!iZ3izL%# zOi;9lnKj~xRKlr)Y6;nZVVoFDr>IFoVEZ`ft(X_iPc0=#%SrBmRe<5L#Vy8TNp1qC zh?gXG7uRAn{4f@e7gR+JKCsYQKpPE@gvVF)Nr`-J8-a5U9P{8Z;lLeRUtDnDw0tDx zBH@@D=Zl6(hrctQDThDr8T7yAz@7b@ap2eoF0&3C+vYOozC~H#|-d!2Tn(b z47ETwwpl(m=pPcTdOsp=T|=|#lAKWrFDDZ`P(@9 zPxtEfkNT^3PQw7|W1$7z4$T+WKrlTYn%DClJ$Koo+uifGZ|ReAfuP9_6{Oh?&FPbM z*fbQ~{#>8rY0&Mfh4)}A^?di7Zo4>`-8~D{SqLx#vTz?IqbM_qf_~TZeC4}U8UzxZ z_7&pf5rzh@cG+JSo|YU4n)lRx;>s;}Ye(>~paiEt!VjGbEy{CV|5zq0bM_SXgDkcv z1_Xf&?a(B2`64jkCz)Pk<_ge{?nymgqq{CoVu(>!@tc22C2(8-(glzg^xT4|JyQY8 zjzjtzgj(TAus6{u7 z$rsbON)`+5x8UKfv3)PWHVHo0X@48+?X-Un_5|&}d-bvAD8SElZM&!E?sy7Ya6?|c zS79~o{I0g~GzRIif9bM+?y!Ffmg;ZlxoMZa=lkp}J@={S`D4MO!DGSWL1Q`|_t!R_ zk!{NT4K){?g7p#w{nRtUHC*S~u&UaF_c7x5ZZq{)sk9w^I;!QSevm&J+246CKFGg= z{6(o$iedZ%zPdNvoxX-QDndSOY(>bo_4UdQ-;UR+bYEMp`YB%^QOBdYI3ab6KY&+Taa`(N z)bUCyo|d{Bb-c=oL!g5cO{PC=4vH81;l9rdhAj==g}ow?iX^kqn6^pY_lDsIV3SwG zvnfrM*b7|M25; z6hh$iz)>j+e{1nK7@jZALQ}a2;W>cofcd;uEOO+zuOJ4mIbH)vz|qEhUVGOG;I&5d z#Wl>j1r=Pk%;&Y7qy{lRENtiYS&o7Y>ul$>J41ZV6YcoT#XQE(mhlS}0YKoLlK6*c z9FULSS>=2*~haMu)`)b|lH|GK}|}lix%99^&KS>@4Mc{4RCoKR|qW z3pj~XFVDZ@A^C?MlK(F8dH&1uAE&%oaQ-|Fc;;gNX}Q6F8GX`~|I@f3wWSC1894 +#include +#include + +typedef struct List_s { + char *this; + struct List_s *next; +} List; + +int main() { + List *root; + for (List **pitem = &root;; pitem = &(*pitem)->next) { + size_t n = 1024; + *pitem = calloc(1, sizeof(List)); + List *item = *pitem; + item->this = calloc(1, n); + fgets(item->this, n, stdin); + if (item->this[0] == '\n') { + free(*pitem); + *pitem = NULL; + break; + } else { + item->this[strlen(item->this) - 1] = '\0'; + } + } + + for (List *item = root; item; item = item->next) { + char asm_name[255]; + sprintf(asm_name, "%s.asm", item->this); + FILE *out = fopen(asm_name, "wb"); + + fprintf(out, "format ELF\n"); + fprintf(out, "include \"__lib__.inc\"\n"); + fprintf(out, "fun equ __func@%s\n", item->this); + fprintf(out, "fun_str equ '%s'\n", item->this); + fprintf(out, "section '.text'\n"); + fprintf(out, "fun_name db fun_str, 0\n"); + fprintf(out, "section '.data'\n"); + fprintf(out, "extrn lib_name\n"); + fprintf(out, "public fun as fun_str\n"); + fprintf(out, "fun dd fun_name\n"); + fprintf(out, "lib dd lib_name\n"); + + fclose(out); + } +} diff --git a/programs/develop/ktcc/trunk/lib/libc.obj/vprintf.asm b/programs/develop/ktcc/trunk/lib/libc.obj/vprintf.asm index 90428be3c4..56221caa4e 100644 --- a/programs/develop/ktcc/trunk/lib/libc.obj/vprintf.asm +++ b/programs/develop/ktcc/trunk/lib/libc.obj/vprintf.asm @@ -1,11 +1,11 @@ format ELF include "__lib__.inc" -fun equ vprintf +fun equ __func@vprintf fun_str equ 'vprintf' section '.text' fun_name db fun_str, 0 section '.data' extrn lib_name -public fun +public fun as fun_str fun dd fun_name lib dd lib_name diff --git a/programs/develop/ktcc/trunk/lib/libc.obj/vsnprintf.asm b/programs/develop/ktcc/trunk/lib/libc.obj/vsnprintf.asm index 5acadb5a09..bce9eb6998 100644 --- a/programs/develop/ktcc/trunk/lib/libc.obj/vsnprintf.asm +++ b/programs/develop/ktcc/trunk/lib/libc.obj/vsnprintf.asm @@ -1,11 +1,11 @@ format ELF include "__lib__.inc" -fun equ vsnprintf +fun equ __func@vsnprintf fun_str equ 'vsnprintf' section '.text' fun_name db fun_str, 0 section '.data' extrn lib_name -public fun +public fun as fun_str fun dd fun_name lib dd lib_name