Subject: Add a MAP_ALIGNED flag for mmap(2).
To: None <tech-kern@netbsd.org>
From: Matt Thomas <matt@3am-software.com>
List: tech-kern
Date: 02/28/2003 18:01:47
Currently, ld.elf_so doesn't honor the alignment specified in a
ELF file's psections.  This is due to the lack of ability to request
an aligned block of addresses from mmap(2).  I propose we add a
MAP_ALIGNED flag which would mean that the addr argument to mmap(2)
would be the required alignment of the block.  Supplying both
MAP_ALIGNED|MAP_FIXED would cause an error EINVAL to be returned.

Any thought on this proposal?

-- 
Matt Thomas               Internet:   matt@3am-software.com
3am Software Foundry      WWW URL:    http://www.3am-software.com/bio/matt/
Cupertino, CA             Disclaimer: I avow all knowledge of this message