Calling c program from bootloader

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
yogie_cs

Calling c program from bootloader

Post by yogie_cs »

i have the foll problem
A bootloader calls a asm file, say myprg.asm

this myprg.asm has a call to function main() as follows:call _main
this main() is present in a c prgram say ker.c.

and both files(myprg.asm and ker.c)compile without any problem
but when i link it as
ld -T link.ld -o hello.bin myprg.o ker.o
it flags an error saying "undefined reference to _main"
pls help me solve this problem
common

RE:Calling c program from bootloader

Post by common »

try just call main
Post Reply