This is the mail archive of the binutils@sourceware.cygnus.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]

Re: Variable page size for ELF


> Merely changing the linker script is not a terribly useful feature,
> since people can already change it anyhow.  The interesting new
> feature here is changing the use of maxpagesize in the backend data
> structure.  However, the only interesting use of the backend
> maxpagesize is to set up the program headers, and you can already do
> that using PHDRS in the linker script.

I took a look at PHDRS. It is not easy to get it right with alignment
by hand.

> 
> So I don't see any new functionality in the --page-size option.  Of
> course, if it is a useful shorthand, we should add it anyhow.  But
> that is where I wonder what the application is, since I don't see that
> either.

I got the request from our IA64 people.

> 
> By the way, MAXPAGESIZE should probably not be used as a symbol name
> in a linker script, because it is part of the user's name space.
> Something like __MAXPAGESIZE would be better.
> 

MAXPAGESIZE is a variable in linker script just like SIZEOF_HEADER.
It shouldn't show up in executable.



-- 
H.J. Lu (hjl@gnu.org)

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