Bona Fide OS Development
http://forums.osdever.net/

How do i get my kernel to load binary programs?
http://forums.osdever.net/viewtopic.php?f=6&t=36
Page 6 of 7

Author:  smeezekitty [ Fri Oct 09, 2009 11:29 pm ]
Post subject:  Re: How do i get my kernel to load binary programs?

i am having fun implmenting it into my kernel
tasm never gives me trouble
p.s. turbo debugger is awesome

Author:  smeezekitty [ Sat Oct 10, 2009 12:01 am ]
Post subject:  Re: How do i get my kernel to load binary programs?

uhoh
Code:
Turbo Link  Version 5.0 Copyright (c) 1992 Borland International
Error: Undefined symbol exec(void near*) in module NODOS.CPP
Warning: No stack

Author:  DudeOfX [ Sat Oct 10, 2009 6:33 am ]
Post subject:  Re: How do i get my kernel to load binary programs?

Code:
TCC -v -mt kernel.c exec.obj

you need to include exec.obj at TCC

Author:  smeezekitty [ Sat Oct 10, 2009 12:29 pm ]
Post subject:  Re: How do i get my kernel to load binary programs?

Turbo Link Version 5.0 Copyright (c) 1992 Borland International
Error: Undefined symbol exec(void near*) in module NODOS.CPP

Author:  DudeOfX [ Sat Oct 10, 2009 12:37 pm ]
Post subject:  Re: How do i get my kernel to load binary programs?

you have to link in EXEC.OBJ
assemble EXEC.ASM -> EXEC.OBJ
then link it in with whatever needs it...

Author:  smeezekitty [ Sat Oct 10, 2009 12:46 pm ]
Post subject:  Re: How do i get my kernel to load binary programs?

heres how i compile
nasm16 -f bin -o bnl.bin boot.asm
tasm exec
tasm call
tcc -mt -c nodos
tlink /n /m call+exec+nodos, call.exe
exetobin call.exe kernel.ker
copy /b bnl.bin+kernel.ker kernel.out
copy kernel.ker dbg.com

Author:  DudeOfX [ Sat Oct 10, 2009 2:38 pm ]
Post subject:  Re: How do i get my kernel to load binary programs?

try:
Code:
tcc -mt -c nodos.c exec.obj
tlink /n /m call+nodos, call.exe

Author:  smeezekitty [ Sat Oct 10, 2009 3:37 pm ]
Post subject:  Re: How do i get my kernel to load binary programs?

same linker error

Author:  DudeOfX [ Sat Oct 10, 2009 3:46 pm ]
Post subject:  Re: How do i get my kernel to load binary programs?

case sensitivity maybe?
else I have no clue

Author:  smeezekitty [ Sat Oct 10, 2009 4:27 pm ]
Post subject:  Re: How do i get my kernel to load binary programs?

tried with and without case sensitivity
but i do remember that tlink hates it when i call asm code from c

Page 6 of 7 All times are UTC - 6 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/