|Non-Confidential||PDF version||ARM 100066_0608_00_en|
|Home > Mapping code and data to target memory > Automatic overlay support|
For the linker to automatically allocate code sections to overlay regions, you must modify your C or assembly code to identify the parts to be overlaid. You must also set up a scatter file to locate the overlays.
The automatic overlay mechanism consists of:
AUTO_OVERLAYexecution region attribute. Use this in a scatter file to indicate regions of memory where the linker assigns the overlay sections for loading into at runtime.
--overlay-veneersto make the linker redirect calls between overlays to a veneer that lets an overlay manager unload and load the correct overlays.
--emit_debug_overlay_sectioncommand-line options to add extra debug information to the image. This option permits an overlay-aware debugger to track which overlay is currently active.