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:
-e
entry command-line option;
ENTRY(
symbol)
command in a linker script;
start
, if defined;
.text
section, if present;
0
.