ld: Symbolic Constants

1 
1 3.10.2 Symbolic Constants
1 -------------------------
1 
1 It is possible to refer to target specific constants via the use of the
1 'CONSTANT(NAME)' operator, where NAME is one of:
1 
1 'MAXPAGESIZE'
1      The target's maximum page size.
1 
1 'COMMONPAGESIZE'
1      The target's default page size.
1 
1    So for example:
1 
1        .text ALIGN (CONSTANT (MAXPAGESIZE)) : { *(.text) }
1 
1    will create a text section aligned to the largest page boundary
1 supported by the target.
1