| |||
| Home > Linker command-line options > --first=section_id | |||
This option 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.
--first=section_id
Where is
one of the following:section_id
symbolSelects the section that defines .
You must not specify a symbol that has more than one definition,
because only one section can be placed first. For example: symbol--first=reset
object(section)Selects from section.
There must be no space between object and
the following open parenthesis. For example: object--first=init.o(init)
objectSelects the single input section in .
If you use this short form and there is more than one input section,
the linker generates an error message. For example: object--first=init.o
The --first option cannot be used with --scatter.
Instead, use the +FIRST attribute in a scatter file.