Getting MAXPAGESIZE from ELF_MAXPAGESIZE

Ian Lance Taylor ian@airs.com
Sun May 22 03:48:00 GMT 2005


"H. J. Lu" <hjl@lucon.org> writes:

> I found a need to change ELF_MAXPAGESIZE at the command line. I can
> add a new option like -z page-size=128M. The problem is I have to
> update the linker script also. I'd like to modify the linker to
> get MAXPAGESIZE from ELF_MAXPAGESIZE in bfd. MAXPAGESIZE will be
> treated as a special read only symbol like '.'.  At least, we don't
> need to set MAXPAGESIZE in linker.

I think it might be nicer if we didn't introduce yet another magic
symbol name in the linker script language.  How about making it a
function: MAXPAGESIZE()?

What should it return for a non-ELF target?

Ian



More information about the Binutils mailing list