It is possible to refer to target specific constants via the use of
the CONSTANT(
name)
operator, where name is one of:
MAXPAGESIZE
COMMONPAGESIZE
So for example:
.text ALIGN (CONSTANT (MAXPAGESIZE)) : { *(.text) }
will create a text section aligned to the largest page boundary supported by the target.