ld: Entry Point
1
1 3.4.1 Setting the Entry Point
1 -----------------------------
1
1 The first instruction to execute in a program is called the "entry
1 point". You can use the 'ENTRY' linker script command to set the entry
1 point. The argument is a symbol name:
1 ENTRY(SYMBOL)
1
1 There are several ways to set the entry point. The linker will set
1 the entry point by trying each of the following methods in order, and
1 stopping when one of them succeeds:
1 * the '-e' ENTRY command-line option;
1 * the 'ENTRY(SYMBOL)' command in a linker script;
1 * the value of a target specific symbol, if it is defined; For many
1 targets this is 'start', but PE and BeOS based systems for example
1 check a list of possible entry symbols, matching the first one
1 found.
1 * the address of the first byte of the '.text' section, if present;
1 * The address '0'.
1