9.64 --last=section_id

Places the selected input section last in its execution region.

Syntax

--last=section_id
Where section_id is one of the following:
symbol
Selects the section that defines symbol. You must not specify a symbol that has more than one definition because only a single section can be placed last. For example: --last=checksum.
object(section)
Selects the section from object. There must be no space between object and the following open parenthesis. For example: --last=checksum.o(check).
object
Selects the single input section from object. If there is more than one input section in object, armlink generates an error message.

Usage

The --last option cannot be used with --scatter. Instead, use the +LAST attribute in a scatter file.

Example

This option can force an input section that contains a checksum to be placed last in the RW section.
Related concepts
3.3.2 Section placement with the FIRST and LAST attributes
3.3 Section placement with the linker
Related reference
9.50 --first=section_id
9.102 --scatter=filename
Non-ConfidentialPDF file icon PDF versionARM DUI0377G
Copyright © 2007, 2008, 2011, 2012, 2014, 2015 ARM. All rights reserved.