Guys please help, or give some advice.

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
Alex

Guys please help, or give some advice.

Post by Alex »

Hello,

I need advice or link to example with code how to use LD linker when linking program with shared libraries and changing entry point of program.

I wrote simple code with some eg XXXmain, function and wrote simple library with xxxentmain function wich has to call XXXmain, on linking stage I got a error, cannot find entry symbol bla bla bla, defaulting to...

So, I want just to call mymain function from function in library, bypassing standard routine from crt1.o and so on.

Kindly Regards,
Zander
mercury

RE:Guys please help, or give some advice.

Post by mercury »

Well, again I'm still new to this, but if you're designing an OS, when you link that's a normal error. I know to make a .com program you have to use org 100h or something in part of your code, but when you're making your own OS you don't. When I link my code for basic stuff anyway I use ld -Ttext 0xFF800000 --oformat binary then the file names to link.
Post Reply