You can produce an ELF file with each execution region starting at a page boundary.
The linker provides the following built-in functions to help create load and execution
regions on page boundaries:
AlignExpr, to specify an address
expression.
GetPageSize, to obtain the page size for
use in AlignExpr. If you use GetPageSize, you must also
use the --paged linker command-line option.
SizeOfHeaders(), to return the size of the ELF header and Program
Header table.
Note:
Alignment on an execution region causes both the load address and execution address to
be aligned.
The default page size is 0x8000. To change the page size, specify the
--pagesize linker command-line option.
To produce an ELF file with each execution region starting on a new page,
and with code starting on the next page boundary after the header information:
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.