| |||
| Home > Linker command-line options > --startup=symbol, --no_startup | |||
This option enables the linker to use alternative C libraries with a different startup symbol if required.
--startup=symbol
By default, is
set to symbol__main.
--no_startup does not take a symbol argument.
The linker includes the C library startup code if there is
a reference to a symbol that is defined by the C library startup
code. This symbol reference is called the startup symbol. It is automatically
created by the linker when it sees a definition of main(). The --startup option enables
you to change this symbol reference.
If the linker finds a definition
of main() and does not find a reference to
(or definition of) ,
then it generates an error. symbol
If the linker finds a definition of main() and
a reference to (or definition of) ,
and no entry point is specified, then the linker generates a warning.symbol