9.85 --pad=num

Enables you to set a value for padding bytes. The linker assigns this value to all padding bytes inserted in load or execution regions.

Syntax

--pad=num
Where num is an integer, which can be given in hexadecimal format.
For example, setting num to 0xFF might help to speed up ROM programming time. If num is greater than 0xFF, then the padding byte is cast to a char, that is (char)num.

Usage

Padding is only inserted:
  • Within load regions. No padding is present between load regions.
  • Between fixed execution regions (in addition to forcing alignment). Padding is not inserted up to the maximum length of a load region unless it has a fixed execution region at the top.
  • Between sections to ensure that they conform to alignment constraints.
Related concepts
3.1.2 Input sections, output sections, regions, and program segments
3.1.3 Load view and execution view of an image
Non-ConfidentialPDF file icon PDF versionARM DUI0377G
Copyright © 2007, 2008, 2011, 2012, 2014, 2015 ARM. All rights reserved.