ld.info: Entry Point
Go forward to File Commands
Go up to Simple Commands
Go to the top op ld
Setting the entry point
The first instruction to execute in a program is called the "entry
point". You can use the `ENTRY' linker script command to set the entry
point. The argument is a symbol name:
ENTRY(SYMBOL)
There are several ways to set the entry point. The linker will set
the entry point by trying each of the following methods in order, and
stopping when one of them succeeds:
* the `-e' ENTRY command-line option;
* the `ENTRY(SYMBOL)' command in a linker script;
* the value of the symbol `start', if defined;
* the address of the first byte of the `.text' section, if present;
* The address `0'.
Created Wed Sep 1 16:42:37 2004 on bee with info_to_html version 0.9.6.