The command-line options to the linker give some control over the placement of data and code, but complete control of placement requires more detailed instructions than can be entered on the command line.
Complex memory maps
Placement of code and data in complex memory maps must be specified in a
scatter file. You specify the scatter file with the option:
--scatter=scatter_file
This instructs the linker to construct the image memory map as described in
scatter_file.
You can use --scatter with the --base_platform linking model.
Simple memory maps
For simple memory maps, you can place code and data with with the following memory map
related command-line options:
--bpabi.
--dll.
--partial.
--ro_base.
--rw_base.
--ropi.
--rwpi.
--rosplit.
--split.
--reloc.
--xo_base
--zi_base.
Note:
Apart from --dll, you
cannot use --scatter with these options.
Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers of your data.