|Non-Confidential||PDF version||ARM 100748_0607_00_en|
|Home > Mapping Code and Data to the Target > Placing unassigned sections > Command-line options for controlling the placement of unassigned sections|
You can modify how the linker places unassigned input sections when using multiple
.ANY selectors by using a different placement algorithm or a different sort order.
The following command-line options are available:
is one of
is one of
first_fit when you want to fill
regions in order.
best_fit when you want to fill regions
to their maximum.
worst_fit when you want to fill
regions evenly. With equal sized regions and sections
worst_fit fills regions cyclically.
next_fit when you need a more
deterministic fill pattern.
If the linker attempts to fill a region to its limit, as it does with
it might overfill the region. This is because linker-generated content such as padding and
veneers are not known until sections have been assigned to
.ANY selectors. If this occurs you might see the following error:
Error: L6220E: Execution region .
regionname size (
bytes) exceeds limit (
--any_contingency option prevents the
linker from filling the region up to its maximum. It reserves a portion of the region's size
for linker-generated content and fills this contingency area only if no other regions have
space. It is enabled by default for the
best_fit algorithms, because they are most likely to
exhibit this behavior.