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


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


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