This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Getting MAXPAGESIZE from ELF_MAXPAGESIZE


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]