9.93 --reloc

Creates a single relocatable load region with contiguous execution regions.

Usage

Only use this option for legacy systems with the type of relocatable ELF images that conform to the ELF for the ARM Architecture specification. The generated image might not be compliant with the ELF for the ARM® Architecture specification.
When relocated MOVT and MOVW instructions are encountered in an image being linked with --reloc, armlink produces the following additional dynamic tags:
DT_RELA
The address of a relocation table.
DT_RELASZ
The total size, in bytes, of the DT_RELA relocation table.
DT_RELAENT
The size, in bytes, of the DT_RELA relocation entry.

Restrictions

You cannot use --reloc with --scatter.
You cannot use this option if an object file contains execute-only sections.
You cannot use this option with --xo_base.
Related concepts
7.13.2 Type 1 image, one load region and contiguous execution regions
3.2.4 Type 3 image structure, multiple load regions and non-contiguous execution regions
Related information
Base Platform ABI for the ARM Architecture
ELF for the ARM Architecture
Non-ConfidentialPDF file icon PDF versionARM DUI0377G
Copyright © 2007, 2008, 2011, 2012, 2014, 2015 ARM. All rights reserved.