[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

CVS: cvs.openbsd.org: src



CVSROOT:	/cvs
Module name:	src
Changes by:	kurt_(_at_)_cvs_(_dot_)_openbsd_(_dot_)_org	2008/07/18 10:40:17

Modified files:
	sys/arch/amd64/include: vmparam.h 
	sys/arch/i386/include: vmparam.h 
	sys/arch/macppc/include: vmparam.h 
	sys/arch/sparc64/include: vmparam.h 
	sys/uvm        : uvm_map.c uvm_map.h 

Log message:
Add new uvm function called uvm_map_pie() which takes align as a
parameter and returns an aligned random load address for position
independent executables to use. This also adds three new vmparam.h
defines to specify the maximum address, minimum address and minimum
allowed alignment for uvm_map_pie() to use. The PIE address range
for i386 was carefully selected to work well within the i386 W^X
framework.

With much help and feedback from weingart_(_at_)__(_dot_)_
okay weingart@, miod@, kettenis@, drahn@