forked from KolibriOS/kolibrios
Implement dynamic linking with system libraries via -lsyslibname:
console.obj http.ibj InputBox.obj Add header files for apps what dynamically link these libraries. git-svn-id: svn://kolibrios.org@7925 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
18
programs/develop/ktcc/trunk/lib/inputbox/InputBox.asm
Normal file
18
programs/develop/ktcc/trunk/lib/inputbox/InputBox.asm
Normal file
@@ -0,0 +1,18 @@
|
||||
format ELF
|
||||
|
||||
include "__lib__.inc"
|
||||
|
||||
fun equ InputBox
|
||||
fun_str equ 'InputBox'
|
||||
|
||||
section '.text'
|
||||
|
||||
fun_name db fun_str, 0
|
||||
|
||||
section '.data'
|
||||
|
||||
extrn lib_name
|
||||
public fun
|
||||
|
||||
fun dd fun_name
|
||||
lib dd lib_name
|
9
programs/develop/ktcc/trunk/lib/inputbox/__lib__.asm
Normal file
9
programs/develop/ktcc/trunk/lib/inputbox/__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
programs/develop/ktcc/trunk/lib/inputbox/__lib__.inc
Normal file
2
programs/develop/ktcc/trunk/lib/inputbox/__lib__.inc
Normal file
@@ -0,0 +1,2 @@
|
||||
lib_name equ @inputbox.obj
|
||||
lib_name_str equ '/sys/lib/inputbox.obj'
|
5
programs/develop/ktcc/trunk/lib/inputbox/make.bat
Normal file
5
programs/develop/ktcc/trunk/lib/inputbox/make.bat
Normal file
@@ -0,0 +1,5 @@
|
||||
fasm __lib__.asm
|
||||
fasm InputBox.asm
|
||||
kos32-ar -ru libinputbox.a *.o
|
||||
del *.o
|
||||
pause
|
Reference in New Issue
Block a user