Use munmap when loading ELF

Daniel Jacobowitz drow@mvista.com
Mon Sep 8 19:02:00 GMT 2003


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



More information about the Libc-alpha mailing list