Symbolic Constants (LD) (original) (raw)
Next: Symbol Names, Previous: Constants, Up: Expressions in Linker Scripts [Contents][Index]
3.10.2 Symbolic Constants ¶
It is possible to refer to target-specific constants via the use of the CONSTANT(name)
operator, where name is one of:
MAXPAGESIZE
¶
The target’s maximum page size.
COMMONPAGESIZE
¶
The target’s default page size.
So for example:
.text ALIGN (CONSTANT (MAXPAGESIZE)) : { *(.text) }
will create a text section aligned to the largest page boundary supported by the target.