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: Sat, 23 May 1998 02:45:09 -0400
- Cc: GNU libc hacker <libc-hacker@gnu.org>
> This is not what I meant. I thought about mapping the entire file
> immediately when we have to get the header. With Richard's patch we
> now simply load it.
I was talking about an issue independent of that change, and had not
considered the idea you now suggest.
> Anyhow, I don't really see how one can load all segments in one region.
> The boundaries between code (R-X) and data (RW-) is in the object file
> right where the code ends. There is no padding for page size and the
> loader has to pay attention of loading the last code/first data page
> twice. All the addresses are computed based on this and therefore it's
> not possible to use one single region.
You have a good point, if not too succinctly stated. I had forgotten about
the off-by-a-page mapping of the second segment. Oh well, never mind.