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

Re: dl-load.c suggestion


> > 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.


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