kolibri-libc:

- Added example program
- Delete trash files
- Added libc.obj loader (will be removed from ktcc)

git-svn-id: svn://kolibrios.org@8625 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
turbocat 2021-03-02 20:22:37 +00:00
parent 162d919194
commit 728d0ab126
136 changed files with 1652 additions and 1302 deletions

View File

@ -1,6 +0,0 @@
*.swp
lib
lib/*
*.o
tests/argtest
source/make.bat

View File

@ -1,2 +0,0 @@
# kolibri-libc
Standart C library for KolibriOS

File diff suppressed because it is too large Load Diff

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -21,4 +21,4 @@ fi
FLAGS="-m elf_i386 -nostdlib" FLAGS="-m elf_i386 -nostdlib"
# And, execute ld: # And, execute ld:
ld $FLAGS -L $KLIBC/bin/lib -T $KLIBC/tests/static.lds $KLIBC/bin/lib/crt0.o $* ld $FLAGS -L $KLIBC/lib -T $KLIBC/static.lds $KLIBC/lib/crt0.o $*

Binary file not shown.

View File

@ -0,0 +1,46 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
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);
}
}

View File

@ -0,0 +1,17 @@
FASM = fasm
MKLIB = ../linuxtools/mklib
SRCS=$(wildcard *.asm)
OBJS=$(SRCS:.asm=.o)
%.o : %.asm
$(FASM) $<
all: asm_gen $(OBJS)
ar -rsc ../lib/libc.obj.a *.o
asm_gen:
cat symbols.txt | $(MKLIB)
clean:
rm -f *.o

View File

@ -0,0 +1,9 @@
format ELF
include '__lib__.inc'
section '.text'
public lib_name
lib_name db 0x55, 0xAA, lib_name_str, 0

View File

@ -0,0 +1,2 @@
lib_name equ @libc.obj
lib_name_str equ '/sys/lib/libc.obj'

View File

@ -0,0 +1,11 @@
format ELF
include "__lib__.inc"
fun equ __func@abs
fun_str equ 'abs'
section '.text'
fun_name db fun_str, 0
section '.data'
extrn lib_name
public fun as fun_str
fun dd fun_name
lib dd lib_name

View File

@ -0,0 +1,11 @@
format ELF
include "__lib__.inc"
fun equ __func@acos
fun_str equ 'acos'
section '.text'
fun_name db fun_str, 0
section '.data'
extrn lib_name
public fun as fun_str
fun dd fun_name
lib dd lib_name

View File

@ -0,0 +1,11 @@
format ELF
include "__lib__.inc"
fun equ __func@acosh
fun_str equ 'acosh'
section '.text'
fun_name db fun_str, 0
section '.data'
extrn lib_name
public fun as fun_str
fun dd fun_name
lib dd lib_name

View File

@ -0,0 +1,11 @@
format ELF
include "__lib__.inc"
fun equ __func@asin
fun_str equ 'asin'
section '.text'
fun_name db fun_str, 0
section '.data'
extrn lib_name
public fun as fun_str
fun dd fun_name
lib dd lib_name

View File

@ -0,0 +1,11 @@
format ELF
include "__lib__.inc"
fun equ __func@asinh
fun_str equ 'asinh'
section '.text'
fun_name db fun_str, 0
section '.data'
extrn lib_name
public fun as fun_str
fun dd fun_name
lib dd lib_name

View File

@ -0,0 +1,11 @@
format ELF
include "__lib__.inc"
fun equ __func@atan
fun_str equ 'atan'
section '.text'
fun_name db fun_str, 0
section '.data'
extrn lib_name
public fun as fun_str
fun dd fun_name
lib dd lib_name

View File

@ -0,0 +1,11 @@
format ELF
include "__lib__.inc"
fun equ __func@atan2
fun_str equ 'atan2'
section '.text'
fun_name db fun_str, 0
section '.data'
extrn lib_name
public fun as fun_str
fun dd fun_name
lib dd lib_name

View File

@ -0,0 +1,11 @@
format ELF
include "__lib__.inc"
fun equ __func@atanh
fun_str equ 'atanh'
section '.text'
fun_name db fun_str, 0
section '.data'
extrn lib_name
public fun as fun_str
fun dd fun_name
lib dd lib_name

View File

@ -0,0 +1,11 @@
format ELF
include "__lib__.inc"
fun equ __func@atoi
fun_str equ 'atoi'
section '.text'
fun_name db fun_str, 0
section '.data'
extrn lib_name
public fun as fun_str
fun dd fun_name
lib dd lib_name

View File

@ -0,0 +1,11 @@
format ELF
include "__lib__.inc"
fun equ __func@atol
fun_str equ 'atol'
section '.text'
fun_name db fun_str, 0
section '.data'
extrn lib_name
public fun as fun_str
fun dd fun_name
lib dd lib_name

View File

@ -0,0 +1,11 @@
format ELF
include "__lib__.inc"
fun equ __func@atoll
fun_str equ 'atoll'
section '.text'
fun_name db fun_str, 0
section '.data'
extrn lib_name
public fun as fun_str
fun dd fun_name
lib dd lib_name

View File

@ -0,0 +1,11 @@
format ELF
include "__lib__.inc"
fun equ __func@calloc
fun_str equ 'calloc'
section '.text'
fun_name db fun_str, 0
section '.data'
extrn lib_name
public fun as fun_str
fun dd fun_name
lib dd lib_name

View File

@ -0,0 +1,11 @@
format ELF
include "__lib__.inc"
fun equ __func@ceil
fun_str equ 'ceil'
section '.text'
fun_name db fun_str, 0
section '.data'
extrn lib_name
public fun as fun_str
fun dd fun_name
lib dd lib_name

View File

@ -0,0 +1,11 @@
format ELF
include "__lib__.inc"
fun equ __func@clearerr
fun_str equ 'clearerr'
section '.text'
fun_name db fun_str, 0
section '.data'
extrn lib_name
public fun as fun_str
fun dd fun_name
lib dd lib_name

View File

@ -0,0 +1,11 @@
format ELF
include "__lib__.inc"
fun equ __func@closedir
fun_str equ 'closedir'
section '.text'
fun_name db fun_str, 0
section '.data'
extrn lib_name
public fun as fun_str
fun dd fun_name
lib dd lib_name

View File

@ -0,0 +1,11 @@
format ELF
include "__lib__.inc"
fun equ __func@cos
fun_str equ 'cos'
section '.text'
fun_name db fun_str, 0
section '.data'
extrn lib_name
public fun as fun_str
fun dd fun_name
lib dd lib_name

View File

@ -0,0 +1,11 @@
format ELF
include "__lib__.inc"
fun equ __func@cosh
fun_str equ 'cosh'
section '.text'
fun_name db fun_str, 0
section '.data'
extrn lib_name
public fun as fun_str
fun dd fun_name
lib dd lib_name

View File

@ -0,0 +1,11 @@
format ELF
include "__lib__.inc"
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 as fun_str
fun dd fun_name
lib dd lib_name

View File

@ -0,0 +1,11 @@
format ELF
include "__lib__.inc"
fun equ __func@difftime
fun_str equ 'difftime'
section '.text'
fun_name db fun_str, 0
section '.data'
extrn lib_name
public fun as fun_str
fun dd fun_name
lib dd lib_name

View File

@ -0,0 +1,11 @@
format ELF
include "__lib__.inc"
fun equ __func@div
fun_str equ 'div'
section '.text'
fun_name db fun_str, 0
section '.data'
extrn lib_name
public fun as fun_str
fun dd fun_name
lib dd lib_name

View File

@ -0,0 +1,11 @@
format ELF
include "__lib__.inc"
fun equ __func@exit
fun_str equ 'exit'
section '.text'
fun_name db fun_str, 0
section '.data'
extrn lib_name
public fun as fun_str
fun dd fun_name
lib dd lib_name

View File

@ -0,0 +1,11 @@
format ELF
include "__lib__.inc"
fun equ __func@exp
fun_str equ 'exp'
section '.text'
fun_name db fun_str, 0
section '.data'
extrn lib_name
public fun as fun_str
fun dd fun_name
lib dd lib_name

View File

@ -0,0 +1,11 @@
format ELF
include "__lib__.inc"
fun equ __func@fabs
fun_str equ 'fabs'
section '.text'
fun_name db fun_str, 0
section '.data'
extrn lib_name
public fun as fun_str
fun dd fun_name
lib dd lib_name

View File

@ -0,0 +1,11 @@
format ELF
include "__lib__.inc"
fun equ __func@fclose
fun_str equ 'fclose'
section '.text'
fun_name db fun_str, 0
section '.data'
extrn lib_name
public fun as fun_str
fun dd fun_name
lib dd lib_name

View File

@ -0,0 +1,11 @@
format ELF
include "__lib__.inc"
fun equ __func@feof
fun_str equ 'feof'
section '.text'
fun_name db fun_str, 0
section '.data'
extrn lib_name
public fun as fun_str
fun dd fun_name
lib dd lib_name

View File

@ -0,0 +1,11 @@
format ELF
include "__lib__.inc"
fun equ __func@ferror
fun_str equ 'ferror'
section '.text'
fun_name db fun_str, 0
section '.data'
extrn lib_name
public fun as fun_str
fun dd fun_name
lib dd lib_name

View File

@ -0,0 +1,11 @@
format ELF
include "__lib__.inc"
fun equ __func@fflush
fun_str equ 'fflush'
section '.text'
fun_name db fun_str, 0
section '.data'
extrn lib_name
public fun as fun_str
fun dd fun_name
lib dd lib_name

View File

@ -0,0 +1,11 @@
format ELF
include "__lib__.inc"
fun equ __func@fgetc
fun_str equ 'fgetc'
section '.text'
fun_name db fun_str, 0
section '.data'
extrn lib_name
public fun as fun_str
fun dd fun_name
lib dd lib_name

View File

@ -0,0 +1,11 @@
format ELF
include "__lib__.inc"
fun equ __func@fgetpos
fun_str equ 'fgetpos'
section '.text'
fun_name db fun_str, 0
section '.data'
extrn lib_name
public fun as fun_str
fun dd fun_name
lib dd lib_name

View File

@ -0,0 +1,11 @@
format ELF
include "__lib__.inc"
fun equ __func@fgets
fun_str equ 'fgets'
section '.text'
fun_name db fun_str, 0
section '.data'
extrn lib_name
public fun as fun_str
fun dd fun_name
lib dd lib_name

View File

@ -0,0 +1,11 @@
format ELF
include "__lib__.inc"
fun equ __func@floor
fun_str equ 'floor'
section '.text'
fun_name db fun_str, 0
section '.data'
extrn lib_name
public fun as fun_str
fun dd fun_name
lib dd lib_name

View File

@ -0,0 +1,11 @@
format ELF
include "__lib__.inc"
fun equ __func@fmod
fun_str equ 'fmod'
section '.text'
fun_name db fun_str, 0
section '.data'
extrn lib_name
public fun as fun_str
fun dd fun_name
lib dd lib_name

View File

@ -0,0 +1,11 @@
format ELF
include "__lib__.inc"
fun equ __func@fopen
fun_str equ 'fopen'
section '.text'
fun_name db fun_str, 0
section '.data'
extrn lib_name
public fun as fun_str
fun dd fun_name
lib dd lib_name

View File

@ -0,0 +1,11 @@
format ELF
include "__lib__.inc"
fun equ __func@fputc
fun_str equ 'fputc'
section '.text'
fun_name db fun_str, 0
section '.data'
extrn lib_name
public fun as fun_str
fun dd fun_name
lib dd lib_name

View File

@ -0,0 +1,11 @@
format ELF
include "__lib__.inc"
fun equ __func@fputs
fun_str equ 'fputs'
section '.text'
fun_name db fun_str, 0
section '.data'
extrn lib_name
public fun as fun_str
fun dd fun_name
lib dd lib_name

View File

@ -0,0 +1,11 @@
format ELF
include "__lib__.inc"
fun equ __func@fread
fun_str equ 'fread'
section '.text'
fun_name db fun_str, 0
section '.data'
extrn lib_name
public fun as fun_str
fun dd fun_name
lib dd lib_name

View File

@ -0,0 +1,11 @@
format ELF
include "__lib__.inc"
fun equ __func@free
fun_str equ 'free'
section '.text'
fun_name db fun_str, 0
section '.data'
extrn lib_name
public fun as fun_str
fun dd fun_name
lib dd lib_name

View File

@ -0,0 +1,11 @@
format ELF
include "__lib__.inc"
fun equ __func@freopen
fun_str equ 'freopen'
section '.text'
fun_name db fun_str, 0
section '.data'
extrn lib_name
public fun as fun_str
fun dd fun_name
lib dd lib_name

View File

@ -0,0 +1,11 @@
format ELF
include "__lib__.inc"
fun equ __func@frexp
fun_str equ 'frexp'
section '.text'
fun_name db fun_str, 0
section '.data'
extrn lib_name
public fun as fun_str
fun dd fun_name
lib dd lib_name

View File

@ -0,0 +1,11 @@
format ELF
include "__lib__.inc"
fun equ __func@fseek
fun_str equ 'fseek'
section '.text'
fun_name db fun_str, 0
section '.data'
extrn lib_name
public fun as fun_str
fun dd fun_name
lib dd lib_name

View File

@ -0,0 +1,11 @@
format ELF
include "__lib__.inc"
fun equ __func@fsetpos
fun_str equ 'fsetpos'
section '.text'
fun_name db fun_str, 0
section '.data'
extrn lib_name
public fun as fun_str
fun dd fun_name
lib dd lib_name

View File

@ -0,0 +1,11 @@
format ELF
include "__lib__.inc"
fun equ __func@ftell
fun_str equ 'ftell'
section '.text'
fun_name db fun_str, 0
section '.data'
extrn lib_name
public fun as fun_str
fun dd fun_name
lib dd lib_name

View File

@ -0,0 +1,11 @@
format ELF
include "__lib__.inc"
fun equ __func@fwrite
fun_str equ 'fwrite'
section '.text'
fun_name db fun_str, 0
section '.data'
extrn lib_name
public fun as fun_str
fun dd fun_name
lib dd lib_name

View File

@ -0,0 +1,11 @@
format ELF
include "__lib__.inc"
fun equ __func@getchar
fun_str equ 'getchar'
section '.text'
fun_name db fun_str, 0
section '.data'
extrn lib_name
public fun as fun_str
fun dd fun_name
lib dd lib_name

View File

@ -0,0 +1,11 @@
format ELF
include "__lib__.inc"
fun equ __func@gets
fun_str equ 'gets'
section '.text'
fun_name db fun_str, 0
section '.data'
extrn lib_name
public fun as fun_str
fun dd fun_name
lib dd lib_name

View File

@ -0,0 +1,11 @@
format ELF
include "__lib__.inc"
fun equ __func@hypot
fun_str equ 'hypot'
section '.text'
fun_name db fun_str, 0
section '.data'
extrn lib_name
public fun as fun_str
fun dd fun_name
lib dd lib_name

View File

@ -0,0 +1,11 @@
format ELF
include "__lib__.inc"
fun equ __func@labs
fun_str equ 'labs'
section '.text'
fun_name db fun_str, 0
section '.data'
extrn lib_name
public fun as fun_str
fun dd fun_name
lib dd lib_name

View File

@ -0,0 +1,11 @@
format ELF
include "__lib__.inc"
fun equ __func@ldexp
fun_str equ 'ldexp'
section '.text'
fun_name db fun_str, 0
section '.data'
extrn lib_name
public fun as fun_str
fun dd fun_name
lib dd lib_name

View File

@ -0,0 +1,11 @@
format ELF
include "__lib__.inc"
fun equ __func@ldiv
fun_str equ 'ldiv'
section '.text'
fun_name db fun_str, 0
section '.data'
extrn lib_name
public fun as fun_str
fun dd fun_name
lib dd lib_name

View File

@ -0,0 +1,11 @@
format ELF
include "__lib__.inc"
fun equ __func@llabs
fun_str equ 'llabs'
section '.text'
fun_name db fun_str, 0
section '.data'
extrn lib_name
public fun as fun_str
fun dd fun_name
lib dd lib_name

View File

@ -0,0 +1,11 @@
format ELF
include "__lib__.inc"
fun equ __func@lldiv
fun_str equ 'lldiv'
section '.text'
fun_name db fun_str, 0
section '.data'
extrn lib_name
public fun as fun_str
fun dd fun_name
lib dd lib_name

View File

@ -0,0 +1,11 @@
format ELF
include "__lib__.inc"
fun equ __func@localtime
fun_str equ 'localtime'
section '.text'
fun_name db fun_str, 0
section '.data'
extrn lib_name
public fun as fun_str
fun dd fun_name
lib dd lib_name

View File

@ -0,0 +1,11 @@
format ELF
include "__lib__.inc"
fun equ __func@log
fun_str equ 'log'
section '.text'
fun_name db fun_str, 0
section '.data'
extrn lib_name
public fun as fun_str
fun dd fun_name
lib dd lib_name

View File

@ -0,0 +1,114 @@
fasm __lib__.asm
fasm abs.asm
fasm acos.asm
fasm acosh.asm
fasm asin.asm
fasm asinh.asm
fasm atan.asm
fasm atan2.asm
fasm atanh.asm
fasm atoi.asm
fasm atol.asm
fasm atoll.asm
fasm calloc.asm
fasm ceil.asm
fasm clearerr.asm
fasm closedir.asm
fasm cos.asm
fasm cosh.asm
fasm debug_printf.asm
fasm difftime.asm
fasm div.asm
fasm exit.asm
fasm exp.asm
fasm fabs.asm
fasm fclose.asm
fasm feof.asm
fasm ferror.asm
fasm fflush.asm
fasm fgetc.asm
fasm fgetpos.asm
fasm fgets.asm
fasm floor.asm
fasm fmod.asm
fasm fopen.asm
fasm fputc.asm
fasm fputs.asm
fasm fread.asm
fasm free.asm
fasm freopen.asm
fasm frexp.asm
fasm fseek.asm
fasm fsetpos.asm
fasm ftell.asm
fasm fwrite.asm
fasm getchar.asm
fasm gets.asm
fasm hypot.asm
fasm labs.asm
fasm ldexp.asm
fasm ldiv.asm
fasm llabs.asm
fasm lldiv.asm
fasm localtime.asm
fasm log.asm
fasm malloc.asm
fasm memccpy.asm
fasm memchr.asm
fasm memcmp.asm
fasm memcpy.asm
fasm memmove.asm
fasm memset.asm
fasm mktime.asm
fasm modf.asm
fasm modfl.asm
fasm opendir.asm
fasm perror.asm
fasm pow.asm
fasm pow10.asm
fasm pow2.asm
fasm printf.asm
fasm puts.asm
fasm readdir.asm
fasm realloc.asm
fasm remove.asm
fasm rename.asm
fasm rewind.asm
fasm rewinddir.asm
fasm seekdir.asm
fasm setbuf.asm
fasm setvbuf.asm
fasm sin.asm
fasm sinh.asm
fasm snprintf.asm
fasm sprintf.asm
fasm sqrt.asm
fasm strcat.asm
fasm strchr.asm
fasm strcmp.asm
fasm strcoll.asm
fasm strcpy.asm
fasm strcspn.asm
fasm strerror.asm
fasm strlen.asm
fasm strncat.asm
fasm strncmp.asm
fasm strncpy.asm
fasm strpbrk.asm
fasm strrchr.asm
fasm strrev.asm
fasm strspn.asm
fasm strstr.asm
fasm strtok.asm
fasm strxfrm.asm
fasm tan.asm
fasm tanh.asm
fasm telldir.asm
fasm time.asm
fasm tmpfile.asm
fasm tmpnam.asm
fasm vprintf.asm
fasm vsnprintf.asm
kos32-ar -ru liblibc.obj.a *.o
del *.o
pause

View File

@ -0,0 +1,11 @@
format ELF
include "__lib__.inc"
fun equ __func@malloc
fun_str equ 'malloc'
section '.text'
fun_name db fun_str, 0
section '.data'
extrn lib_name
public fun as fun_str
fun dd fun_name
lib dd lib_name

View File

@ -0,0 +1,11 @@
format ELF
include "__lib__.inc"
fun equ __func@memccpy
fun_str equ 'memccpy'
section '.text'
fun_name db fun_str, 0
section '.data'
extrn lib_name
public fun as fun_str
fun dd fun_name
lib dd lib_name

View File

@ -0,0 +1,11 @@
format ELF
include "__lib__.inc"
fun equ __func@memchr
fun_str equ 'memchr'
section '.text'
fun_name db fun_str, 0
section '.data'
extrn lib_name
public fun as fun_str
fun dd fun_name
lib dd lib_name

View File

@ -0,0 +1,11 @@
format ELF
include "__lib__.inc"
fun equ __func@memcmp
fun_str equ 'memcmp'
section '.text'
fun_name db fun_str, 0
section '.data'
extrn lib_name
public fun as fun_str
fun dd fun_name
lib dd lib_name

View File

@ -0,0 +1,11 @@
format ELF
include "__lib__.inc"
fun equ __func@memcpy
fun_str equ 'memcpy'
section '.text'
fun_name db fun_str, 0
section '.data'
extrn lib_name
public fun as fun_str
fun dd fun_name
lib dd lib_name

View File

@ -0,0 +1,11 @@
format ELF
include "__lib__.inc"
fun equ __func@memmove
fun_str equ 'memmove'
section '.text'
fun_name db fun_str, 0
section '.data'
extrn lib_name
public fun as fun_str
fun dd fun_name
lib dd lib_name

View File

@ -0,0 +1,11 @@
format ELF
include "__lib__.inc"
fun equ __func@memset
fun_str equ 'memset'
section '.text'
fun_name db fun_str, 0
section '.data'
extrn lib_name
public fun as fun_str
fun dd fun_name
lib dd lib_name

View File

@ -0,0 +1,11 @@
format ELF
include "__lib__.inc"
fun equ __func@mktime
fun_str equ 'mktime'
section '.text'
fun_name db fun_str, 0
section '.data'
extrn lib_name
public fun as fun_str
fun dd fun_name
lib dd lib_name

View File

@ -0,0 +1,11 @@
format ELF
include "__lib__.inc"
fun equ __func@modf
fun_str equ 'modf'
section '.text'
fun_name db fun_str, 0
section '.data'
extrn lib_name
public fun as fun_str
fun dd fun_name
lib dd lib_name

View File

@ -0,0 +1,11 @@
format ELF
include "__lib__.inc"
fun equ __func@modfl
fun_str equ 'modfl'
section '.text'
fun_name db fun_str, 0
section '.data'
extrn lib_name
public fun as fun_str
fun dd fun_name
lib dd lib_name

View File

@ -0,0 +1,11 @@
format ELF
include "__lib__.inc"
fun equ __func@opendir
fun_str equ 'opendir'
section '.text'
fun_name db fun_str, 0
section '.data'
extrn lib_name
public fun as fun_str
fun dd fun_name
lib dd lib_name

View File

@ -0,0 +1,11 @@
format ELF
include "__lib__.inc"
fun equ __func@perror
fun_str equ 'perror'
section '.text'
fun_name db fun_str, 0
section '.data'
extrn lib_name
public fun as fun_str
fun dd fun_name
lib dd lib_name

View File

@ -0,0 +1,11 @@
format ELF
include "__lib__.inc"
fun equ __func@pow
fun_str equ 'pow'
section '.text'
fun_name db fun_str, 0
section '.data'
extrn lib_name
public fun as fun_str
fun dd fun_name
lib dd lib_name

View File

@ -0,0 +1,11 @@
format ELF
include "__lib__.inc"
fun equ __func@pow10
fun_str equ 'pow10'
section '.text'
fun_name db fun_str, 0
section '.data'
extrn lib_name
public fun as fun_str
fun dd fun_name
lib dd lib_name

View File

@ -0,0 +1,11 @@
format ELF
include "__lib__.inc"
fun equ __func@pow2
fun_str equ 'pow2'
section '.text'
fun_name db fun_str, 0
section '.data'
extrn lib_name
public fun as fun_str
fun dd fun_name
lib dd lib_name

View File

@ -0,0 +1,11 @@
format ELF
include "__lib__.inc"
fun equ __func@printf
fun_str equ 'printf'
section '.text'
fun_name db fun_str, 0
section '.data'
extrn lib_name
public fun as fun_str
fun dd fun_name
lib dd lib_name

View File

@ -0,0 +1,11 @@
format ELF
include "__lib__.inc"
fun equ __func@puts
fun_str equ 'puts'
section '.text'
fun_name db fun_str, 0
section '.data'
extrn lib_name
public fun as fun_str
fun dd fun_name
lib dd lib_name

View File

@ -0,0 +1,11 @@
format ELF
include "__lib__.inc"
fun equ __func@readdir
fun_str equ 'readdir'
section '.text'
fun_name db fun_str, 0
section '.data'
extrn lib_name
public fun as fun_str
fun dd fun_name
lib dd lib_name

View File

@ -0,0 +1,11 @@
format ELF
include "__lib__.inc"
fun equ __func@realloc
fun_str equ 'realloc'
section '.text'
fun_name db fun_str, 0
section '.data'
extrn lib_name
public fun as fun_str
fun dd fun_name
lib dd lib_name

View File

@ -0,0 +1,11 @@
format ELF
include "__lib__.inc"
fun equ __func@remove
fun_str equ 'remove'
section '.text'
fun_name db fun_str, 0
section '.data'
extrn lib_name
public fun as fun_str
fun dd fun_name
lib dd lib_name

View File

@ -0,0 +1,11 @@
format ELF
include "__lib__.inc"
fun equ __func@rename
fun_str equ 'rename'
section '.text'
fun_name db fun_str, 0
section '.data'
extrn lib_name
public fun as fun_str
fun dd fun_name
lib dd lib_name

View File

@ -0,0 +1,11 @@
format ELF
include "__lib__.inc"
fun equ __func@rewind
fun_str equ 'rewind'
section '.text'
fun_name db fun_str, 0
section '.data'
extrn lib_name
public fun as fun_str
fun dd fun_name
lib dd lib_name

View File

@ -0,0 +1,11 @@
format ELF
include "__lib__.inc"
fun equ __func@rewinddir
fun_str equ 'rewinddir'
section '.text'
fun_name db fun_str, 0
section '.data'
extrn lib_name
public fun as fun_str
fun dd fun_name
lib dd lib_name

View File

@ -0,0 +1,11 @@
format ELF
include "__lib__.inc"
fun equ __func@seekdir
fun_str equ 'seekdir'
section '.text'
fun_name db fun_str, 0
section '.data'
extrn lib_name
public fun as fun_str
fun dd fun_name
lib dd lib_name

View File

@ -0,0 +1,11 @@
format ELF
include "__lib__.inc"
fun equ __func@setbuf
fun_str equ 'setbuf'
section '.text'
fun_name db fun_str, 0
section '.data'
extrn lib_name
public fun as fun_str
fun dd fun_name
lib dd lib_name

View File

@ -0,0 +1,11 @@
format ELF
include "__lib__.inc"
fun equ __func@setvbuf
fun_str equ 'setvbuf'
section '.text'
fun_name db fun_str, 0
section '.data'
extrn lib_name
public fun as fun_str
fun dd fun_name
lib dd lib_name

View File

@ -0,0 +1,11 @@
format ELF
include "__lib__.inc"
fun equ __func@sin
fun_str equ 'sin'
section '.text'
fun_name db fun_str, 0
section '.data'
extrn lib_name
public fun as fun_str
fun dd fun_name
lib dd lib_name

View File

@ -0,0 +1,11 @@
format ELF
include "__lib__.inc"
fun equ __func@sinh
fun_str equ 'sinh'
section '.text'
fun_name db fun_str, 0
section '.data'
extrn lib_name
public fun as fun_str
fun dd fun_name
lib dd lib_name

View File

@ -0,0 +1,11 @@
format ELF
include "__lib__.inc"
fun equ __func@snprintf
fun_str equ 'snprintf'
section '.text'
fun_name db fun_str, 0
section '.data'
extrn lib_name
public fun as fun_str
fun dd fun_name
lib dd lib_name

View File

@ -0,0 +1,11 @@
format ELF
include "__lib__.inc"
fun equ __func@sprintf
fun_str equ 'sprintf'
section '.text'
fun_name db fun_str, 0
section '.data'
extrn lib_name
public fun as fun_str
fun dd fun_name
lib dd lib_name

View File

@ -0,0 +1,11 @@
format ELF
include "__lib__.inc"
fun equ __func@sqrt
fun_str equ 'sqrt'
section '.text'
fun_name db fun_str, 0
section '.data'
extrn lib_name
public fun as fun_str
fun dd fun_name
lib dd lib_name

View File

@ -0,0 +1,11 @@
format ELF
include "__lib__.inc"
fun equ __func@strcat
fun_str equ 'strcat'
section '.text'
fun_name db fun_str, 0
section '.data'
extrn lib_name
public fun as fun_str
fun dd fun_name
lib dd lib_name

Some files were not shown because too many files have changed in this diff Show More