Subject: Re: mmap() and page alignment
To: None <tech-kern@NetBSD.ORG>
From: Christos Zoulas <christos@deshaw.com>
List: tech-kern
Date: 07/07/1995 15:45:37
In article <9507071443.AA10047@bach> "Gordon Ross" <gwr@mc.com> writes:
>
>The exec code should page-align the size too, for the same reasons.
>(Actually, I think vm_mmap will round-up the size, no?)

That is what has to be done [if it is not already]. Otherwise you might
get errors when you run into the end of file?

>I've pointed out before that the ELF exec could use demand loading.
>All it needs to do is round down the start address of each segment
>(to a page) when it creates the mapping, and map them in file order.

It does that already I think.

>I'd try it, but I don't have any machine that uses ELF.
>(I hate 386/486 boxes...)

Try it on the sparc.

christos