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


"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


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