This option enables the linker to use alternative C libraries
with a different startup symbol if required.
Syntax
--startup=symbol
By default, symbol is
set to __main.
--no_startup does not take a symbol argument.
Default
The default is --startup=__main.
Usage
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) symbol,
then it generates an error.
If the linker finds a definition of main() and
a reference to (or definition of) symbol,
and no entry point is specified, then the linker generates a warning.
This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.
ARM websites use two types of cookie: (1) those that enable the site to function and perform as required; and (2) analytical cookies which anonymously track visitors only while using the site. If you are not happy with this use of these cookies please review our Privacy Policy to learn how they can be disabled. By disabling cookies some features of the site will not work.