This option moves tail calling sections immediately before their target, if possible, to optimize the branch instruction at the end of a section. A tail calling section is a section that contains a branch instruction at the end of the section. The branch must have a relocation that targets a function at the start of a section.
Note
Reordering of tail calling sections is not supported for AArch64 state.
The linker:
Can only move one tail calling section for each tail call target. If there are multiple tail calls to a single section, the tail calling section with an identical section name is moved before the target. If no section name is found in the tail calling section that has a matching name, then the linker moves the first section it encounters.
Cannot move a tail calling section out of its execution region.
Does not move tail calling sections before inline veneers.
- Concepts
armlink User Guide:
- Reference