This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc 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: Use munmap when loading ELF


On Mon, Sep 08, 2003 at 11:59:21AM -0700, Ulrich Drepper wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Daniel Jacobowitz wrote:
> > There may be a reason I haven't thought of why this is a bad idea, but it
> > definitely works.  This patch eliminates the "---p" mappings that glibc
> > tends to leave around on architectures with a larger MAXPAGESIZE (ARM,
> > PowerPC, et cetera).
> > 
> > Thoughts?
> 
> Won't be applied.  The space is reserved so that nothing gets mapped
> there.  No code must have any problems with the ---p maps.

OK.  But is there any way something could be mapped there and do harm?
I suppose it could make some heap allocated memory memory appear to
come from a shared library?

-- 
Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer


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