forked from KolibriOS/kolibrios
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:
parent
162d919194
commit
728d0ab126
6
contrib/kolibri-libc/.gitignore
vendored
6
contrib/kolibri-libc/.gitignore
vendored
@ -1,6 +0,0 @@
|
|||||||
*.swp
|
|
||||||
lib
|
|
||||||
lib/*
|
|
||||||
*.o
|
|
||||||
tests/argtest
|
|
||||||
source/make.bat
|
|
@ -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.
Binary file not shown.
0
contrib/kolibri-libc/bin/clink → contrib/kolibri-libc/linuxtools/clink
Normal file → Executable file
0
contrib/kolibri-libc/bin/clink → contrib/kolibri-libc/linuxtools/clink
Normal file → Executable 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 $*
|
||||||
|
BIN
contrib/kolibri-libc/linuxtools/mklib
Executable file
BIN
contrib/kolibri-libc/linuxtools/mklib
Executable file
Binary file not shown.
46
contrib/kolibri-libc/linuxtools/mklib.c
Normal file
46
contrib/kolibri-libc/linuxtools/mklib.c
Normal 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);
|
||||||
|
}
|
||||||
|
}
|
17
contrib/kolibri-libc/loader/Makefile
Normal file
17
contrib/kolibri-libc/loader/Makefile
Normal 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
|
9
contrib/kolibri-libc/loader/__lib__.asm
Normal file
9
contrib/kolibri-libc/loader/__lib__.asm
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
format ELF
|
||||||
|
|
||||||
|
include '__lib__.inc'
|
||||||
|
|
||||||
|
section '.text'
|
||||||
|
|
||||||
|
public lib_name
|
||||||
|
|
||||||
|
lib_name db 0x55, 0xAA, lib_name_str, 0
|
2
contrib/kolibri-libc/loader/__lib__.inc
Normal file
2
contrib/kolibri-libc/loader/__lib__.inc
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
lib_name equ @libc.obj
|
||||||
|
lib_name_str equ '/sys/lib/libc.obj'
|
11
contrib/kolibri-libc/loader/abs.asm
Normal file
11
contrib/kolibri-libc/loader/abs.asm
Normal 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
|
11
contrib/kolibri-libc/loader/acos.asm
Normal file
11
contrib/kolibri-libc/loader/acos.asm
Normal 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
|
11
contrib/kolibri-libc/loader/acosh.asm
Normal file
11
contrib/kolibri-libc/loader/acosh.asm
Normal 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
|
11
contrib/kolibri-libc/loader/asin.asm
Normal file
11
contrib/kolibri-libc/loader/asin.asm
Normal 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
|
11
contrib/kolibri-libc/loader/asinh.asm
Normal file
11
contrib/kolibri-libc/loader/asinh.asm
Normal 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
|
11
contrib/kolibri-libc/loader/atan.asm
Normal file
11
contrib/kolibri-libc/loader/atan.asm
Normal 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
|
11
contrib/kolibri-libc/loader/atan2.asm
Normal file
11
contrib/kolibri-libc/loader/atan2.asm
Normal 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
|
11
contrib/kolibri-libc/loader/atanh.asm
Normal file
11
contrib/kolibri-libc/loader/atanh.asm
Normal 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
|
11
contrib/kolibri-libc/loader/atoi.asm
Normal file
11
contrib/kolibri-libc/loader/atoi.asm
Normal 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
|
11
contrib/kolibri-libc/loader/atol.asm
Normal file
11
contrib/kolibri-libc/loader/atol.asm
Normal 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
|
11
contrib/kolibri-libc/loader/atoll.asm
Normal file
11
contrib/kolibri-libc/loader/atoll.asm
Normal 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
|
11
contrib/kolibri-libc/loader/calloc.asm
Normal file
11
contrib/kolibri-libc/loader/calloc.asm
Normal 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
|
11
contrib/kolibri-libc/loader/ceil.asm
Normal file
11
contrib/kolibri-libc/loader/ceil.asm
Normal 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
|
11
contrib/kolibri-libc/loader/clearerr.asm
Normal file
11
contrib/kolibri-libc/loader/clearerr.asm
Normal 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
|
11
contrib/kolibri-libc/loader/closedir.asm
Normal file
11
contrib/kolibri-libc/loader/closedir.asm
Normal 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
|
11
contrib/kolibri-libc/loader/cos.asm
Normal file
11
contrib/kolibri-libc/loader/cos.asm
Normal 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
|
11
contrib/kolibri-libc/loader/cosh.asm
Normal file
11
contrib/kolibri-libc/loader/cosh.asm
Normal 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
|
11
contrib/kolibri-libc/loader/debug_printf.asm
Normal file
11
contrib/kolibri-libc/loader/debug_printf.asm
Normal 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
|
11
contrib/kolibri-libc/loader/difftime.asm
Normal file
11
contrib/kolibri-libc/loader/difftime.asm
Normal 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
|
11
contrib/kolibri-libc/loader/div.asm
Normal file
11
contrib/kolibri-libc/loader/div.asm
Normal 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
|
11
contrib/kolibri-libc/loader/exit.asm
Normal file
11
contrib/kolibri-libc/loader/exit.asm
Normal 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
|
11
contrib/kolibri-libc/loader/exp.asm
Normal file
11
contrib/kolibri-libc/loader/exp.asm
Normal 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
|
11
contrib/kolibri-libc/loader/fabs.asm
Normal file
11
contrib/kolibri-libc/loader/fabs.asm
Normal 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
|
11
contrib/kolibri-libc/loader/fclose.asm
Normal file
11
contrib/kolibri-libc/loader/fclose.asm
Normal 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
|
11
contrib/kolibri-libc/loader/feof.asm
Normal file
11
contrib/kolibri-libc/loader/feof.asm
Normal 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
|
11
contrib/kolibri-libc/loader/ferror.asm
Normal file
11
contrib/kolibri-libc/loader/ferror.asm
Normal 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
|
11
contrib/kolibri-libc/loader/fflush.asm
Normal file
11
contrib/kolibri-libc/loader/fflush.asm
Normal 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
|
11
contrib/kolibri-libc/loader/fgetc.asm
Normal file
11
contrib/kolibri-libc/loader/fgetc.asm
Normal 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
|
11
contrib/kolibri-libc/loader/fgetpos.asm
Normal file
11
contrib/kolibri-libc/loader/fgetpos.asm
Normal 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
|
11
contrib/kolibri-libc/loader/fgets.asm
Normal file
11
contrib/kolibri-libc/loader/fgets.asm
Normal 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
|
11
contrib/kolibri-libc/loader/floor.asm
Normal file
11
contrib/kolibri-libc/loader/floor.asm
Normal 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
|
11
contrib/kolibri-libc/loader/fmod.asm
Normal file
11
contrib/kolibri-libc/loader/fmod.asm
Normal 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
|
11
contrib/kolibri-libc/loader/fopen.asm
Normal file
11
contrib/kolibri-libc/loader/fopen.asm
Normal 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
|
11
contrib/kolibri-libc/loader/fputc.asm
Normal file
11
contrib/kolibri-libc/loader/fputc.asm
Normal 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
|
11
contrib/kolibri-libc/loader/fputs.asm
Normal file
11
contrib/kolibri-libc/loader/fputs.asm
Normal 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
|
11
contrib/kolibri-libc/loader/fread.asm
Normal file
11
contrib/kolibri-libc/loader/fread.asm
Normal 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
|
11
contrib/kolibri-libc/loader/free.asm
Normal file
11
contrib/kolibri-libc/loader/free.asm
Normal 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
|
11
contrib/kolibri-libc/loader/freopen.asm
Normal file
11
contrib/kolibri-libc/loader/freopen.asm
Normal 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
|
11
contrib/kolibri-libc/loader/frexp.asm
Normal file
11
contrib/kolibri-libc/loader/frexp.asm
Normal 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
|
11
contrib/kolibri-libc/loader/fseek.asm
Normal file
11
contrib/kolibri-libc/loader/fseek.asm
Normal 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
|
11
contrib/kolibri-libc/loader/fsetpos.asm
Normal file
11
contrib/kolibri-libc/loader/fsetpos.asm
Normal 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
|
11
contrib/kolibri-libc/loader/ftell.asm
Normal file
11
contrib/kolibri-libc/loader/ftell.asm
Normal 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
|
11
contrib/kolibri-libc/loader/fwrite.asm
Normal file
11
contrib/kolibri-libc/loader/fwrite.asm
Normal 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
|
11
contrib/kolibri-libc/loader/getchar.asm
Normal file
11
contrib/kolibri-libc/loader/getchar.asm
Normal 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
|
11
contrib/kolibri-libc/loader/gets.asm
Normal file
11
contrib/kolibri-libc/loader/gets.asm
Normal 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
|
11
contrib/kolibri-libc/loader/hypot.asm
Normal file
11
contrib/kolibri-libc/loader/hypot.asm
Normal 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
|
11
contrib/kolibri-libc/loader/labs.asm
Normal file
11
contrib/kolibri-libc/loader/labs.asm
Normal 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
|
11
contrib/kolibri-libc/loader/ldexp.asm
Normal file
11
contrib/kolibri-libc/loader/ldexp.asm
Normal 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
|
11
contrib/kolibri-libc/loader/ldiv.asm
Normal file
11
contrib/kolibri-libc/loader/ldiv.asm
Normal 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
|
11
contrib/kolibri-libc/loader/llabs.asm
Normal file
11
contrib/kolibri-libc/loader/llabs.asm
Normal 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
|
11
contrib/kolibri-libc/loader/lldiv.asm
Normal file
11
contrib/kolibri-libc/loader/lldiv.asm
Normal 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
|
11
contrib/kolibri-libc/loader/localtime.asm
Normal file
11
contrib/kolibri-libc/loader/localtime.asm
Normal 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
|
11
contrib/kolibri-libc/loader/log.asm
Normal file
11
contrib/kolibri-libc/loader/log.asm
Normal 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
|
114
contrib/kolibri-libc/loader/make.bat
Normal file
114
contrib/kolibri-libc/loader/make.bat
Normal 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
|
11
contrib/kolibri-libc/loader/malloc.asm
Normal file
11
contrib/kolibri-libc/loader/malloc.asm
Normal 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
|
11
contrib/kolibri-libc/loader/memccpy.asm
Normal file
11
contrib/kolibri-libc/loader/memccpy.asm
Normal 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
|
11
contrib/kolibri-libc/loader/memchr.asm
Normal file
11
contrib/kolibri-libc/loader/memchr.asm
Normal 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
|
11
contrib/kolibri-libc/loader/memcmp.asm
Normal file
11
contrib/kolibri-libc/loader/memcmp.asm
Normal 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
|
11
contrib/kolibri-libc/loader/memcpy.asm
Normal file
11
contrib/kolibri-libc/loader/memcpy.asm
Normal 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
|
11
contrib/kolibri-libc/loader/memmove.asm
Normal file
11
contrib/kolibri-libc/loader/memmove.asm
Normal 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
|
11
contrib/kolibri-libc/loader/memset.asm
Normal file
11
contrib/kolibri-libc/loader/memset.asm
Normal 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
|
11
contrib/kolibri-libc/loader/mktime.asm
Normal file
11
contrib/kolibri-libc/loader/mktime.asm
Normal 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
|
11
contrib/kolibri-libc/loader/modf.asm
Normal file
11
contrib/kolibri-libc/loader/modf.asm
Normal 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
|
11
contrib/kolibri-libc/loader/modfl.asm
Normal file
11
contrib/kolibri-libc/loader/modfl.asm
Normal 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
|
11
contrib/kolibri-libc/loader/opendir.asm
Normal file
11
contrib/kolibri-libc/loader/opendir.asm
Normal 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
|
11
contrib/kolibri-libc/loader/perror.asm
Normal file
11
contrib/kolibri-libc/loader/perror.asm
Normal 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
|
11
contrib/kolibri-libc/loader/pow.asm
Normal file
11
contrib/kolibri-libc/loader/pow.asm
Normal 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
|
11
contrib/kolibri-libc/loader/pow10.asm
Normal file
11
contrib/kolibri-libc/loader/pow10.asm
Normal 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
|
11
contrib/kolibri-libc/loader/pow2.asm
Normal file
11
contrib/kolibri-libc/loader/pow2.asm
Normal 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
|
11
contrib/kolibri-libc/loader/printf.asm
Normal file
11
contrib/kolibri-libc/loader/printf.asm
Normal 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
|
11
contrib/kolibri-libc/loader/puts.asm
Normal file
11
contrib/kolibri-libc/loader/puts.asm
Normal 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
|
11
contrib/kolibri-libc/loader/readdir.asm
Normal file
11
contrib/kolibri-libc/loader/readdir.asm
Normal 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
|
11
contrib/kolibri-libc/loader/realloc.asm
Normal file
11
contrib/kolibri-libc/loader/realloc.asm
Normal 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
|
11
contrib/kolibri-libc/loader/remove.asm
Normal file
11
contrib/kolibri-libc/loader/remove.asm
Normal 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
|
11
contrib/kolibri-libc/loader/rename.asm
Normal file
11
contrib/kolibri-libc/loader/rename.asm
Normal 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
|
11
contrib/kolibri-libc/loader/rewind.asm
Normal file
11
contrib/kolibri-libc/loader/rewind.asm
Normal 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
|
11
contrib/kolibri-libc/loader/rewinddir.asm
Normal file
11
contrib/kolibri-libc/loader/rewinddir.asm
Normal 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
|
11
contrib/kolibri-libc/loader/seekdir.asm
Normal file
11
contrib/kolibri-libc/loader/seekdir.asm
Normal 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
|
11
contrib/kolibri-libc/loader/setbuf.asm
Normal file
11
contrib/kolibri-libc/loader/setbuf.asm
Normal 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
|
11
contrib/kolibri-libc/loader/setvbuf.asm
Normal file
11
contrib/kolibri-libc/loader/setvbuf.asm
Normal 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
|
11
contrib/kolibri-libc/loader/sin.asm
Normal file
11
contrib/kolibri-libc/loader/sin.asm
Normal 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
|
11
contrib/kolibri-libc/loader/sinh.asm
Normal file
11
contrib/kolibri-libc/loader/sinh.asm
Normal 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
|
11
contrib/kolibri-libc/loader/snprintf.asm
Normal file
11
contrib/kolibri-libc/loader/snprintf.asm
Normal 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
|
11
contrib/kolibri-libc/loader/sprintf.asm
Normal file
11
contrib/kolibri-libc/loader/sprintf.asm
Normal 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
|
11
contrib/kolibri-libc/loader/sqrt.asm
Normal file
11
contrib/kolibri-libc/loader/sqrt.asm
Normal 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
|
11
contrib/kolibri-libc/loader/strcat.asm
Normal file
11
contrib/kolibri-libc/loader/strcat.asm
Normal 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
Loading…
Reference in New Issue
Block a user