Page 1 of 1

Entry Point with LD linker.

Posted: Fri Dec 10, 2004 2:31 pm
by Krys
Hello,
I'm french so my english is not very good. Well, i would like to know the method to define the entry point with the LD linker.
Do you have some examples about it ?
I saw there was an option in the LD option. This option is "-e".
Someone did use it in the past ?
I try but i not yet find the solution :'(.
Can you help me concerning this point ?
Thank you.

Krys

Re:Entry Point with LD linker.

Posted: Fri Dec 10, 2004 2:50 pm
by IRBMe
At the top (before SECTIONS), add something like:

ENTRY (MyEntryPoint)

Make sure the MyEntryPoint symbol is an exported symbol. If writing the entry point in assembly and assembling with nasm, that would mean adding [global MyEntryPoint] to the assembly code.