This is the mail archive of the
libc-hacker@sourceware.cygnus.com
mailing list for the glibc project.
Re: dl-load.c suggestion
- To: drepper@cygnus.com (Ulrich Drepper)
- Subject: Re: dl-load.c suggestion
- From: Roland McGrath <roland@frob.com>
- Date: Fri, 22 May 1998 19:48:09 -0400
- Cc: GNU libc hacker <libc-hacker@gnu.org>
> > In case someone feels like hacking, it might perform better to
> > use mprotect instead of additional mmap's in _dl_map_object_from_fd
> > for loading the segments after the first of a position-independent object.
>
> You mean:
>
> - mmap the entire file
No, just all the segments as a contiguous region.
Please note how the function already works; I think you have forgotten.
> - restrict the initial mmap using mprotect to whatever the
> first load command says.
This is what it already does.
> - load the segments 1 to N
This is what it already does.