This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: Fix relro when COMMONPAGESIZE < MAXPAGESIZE
On Tue, Sep 07, 2004 at 02:49:02PM -0400, Hans-Peter Nilsson wrote:
> > Can you post readelf -WS output before and after the patch?
> > The big hole was certainly intended there, so that MAXPAGESIZE is properly
> > honored. After all, it is just diskspace (well, ld creates sparse file),
> > not memory.
>
> "Diskspace" might be solid-state media (usually flash ROM) which
> is certainly not inexpensive. (And the flash file-system might
> not support sparse files.)
>
> Please, whenever you make a change to increase the size of
> anything available at execution time, please remember that not
> all "diskspace" is cheap, and make the size-increasing
> functionality an *option*.
It is an option (-z relro), not enabled by default.
Jakub