Getting MAXPAGESIZE from ELF_MAXPAGESIZE

H. J. Lu hjl@lucon.org
Sun May 22 05:54:00 GMT 2005


On Sat, May 21, 2005 at 09:50:02PM -0400, Ian Lance Taylor wrote:
> "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?

Since that will be ELF specific, how about adding ELF_CONSTANT (xxx)
where xxx can be MAXPAGESIZE, ....?


H.J.



More information about the Binutils mailing list