Keil™, An ARM® Company

RealView Linker and Utilities Guide

Reuse of veneers with overlay execution regions

3.3.9. Reuse of veneers with overlay execution regions

armlink reuses veneers whenever possible. However, both the following conditions are enforced on reuse:

  • an overlay execution region cannot reuse a veneer placed in any other overlay execution region

  • no other execution region can reuse a veneer placed in an overlay execution region.

If these conditions are not met, new veneers are created instead of reusing existing ones. Unless you have instructed the linker to place veneers somewhere specific using scatter-loading, a veneer is always placed in the execution region that contains the call requiring the veneer. This implies that:

  • for an overlay execution region, all its veneers are included within the execution region

  • an overlay execution region never requires a veneer from another execution region.

Copyright © 2007 ARM Limited. All rights reserved.ARM DUI 0377A