--first=section_id
Places the selected input section first in its execution region. This can, for example, place the section containing the vector table first in the image.
Syntax
--first=section_id
Where
is one of the following:section_id
symbol
-
Selects the section that defines
. For example:symbol
--first=reset
.You must not specify a symbol that has more than one definition, because only one section can be placed first.
object
(section
)-
Selects
fromsection
. There must be no space betweenobject
and the following open parenthesis. For example:object
--first=init.o(init)
. object
-
Selects the single input section in
. For example:object
--first=init.o
.If you use this short form and there is more than one input section in
, armlink generates an error message.object
Usage
The --first
option cannot be used with --scatter
.
Instead, use the +FIRST
attribute in a scatter file.