kernel ELF: Map PIE binaries at non-zero or specified address
authorJohn Marino <draco@marino.st>
Tue, 10 May 2011 21:06:51 +0000 (23:06 +0200)
committerJohn Marino <draco@marino.st>
Wed, 11 May 2011 07:27:15 +0000 (09:27 +0200)
commit72453240fe7f2d537cfd6cccd9a0b2f299efc3fc
tree3cfcae396fe32f324d3e1281f6a19b1c79b8fa83
parentc350568db130cab12ad1adb68eb097014544c745
kernel ELF: Map PIE binaries at non-zero or specified address

From FreeBSD:
svn 197933 (10 OCT 2009)
svn 197934 (10 OCT 2009)
svn 198202 (18 OCT 2009)

By default, map PIE binaries to a non-zero address.  The specified
default address was determined by FreeBSD by examining ld to see where
non-relocable binaries get put normally.

The binary relocation will not happen if the ET_DYN binary already has
a non-zero base address specified.

Also cleaned up some whitespace issues, and took some alignment checks
from FreeBSD.
sys/cpu/i386/include/elf.h
sys/cpu/x86_64/include/elf.h
sys/kern/imgact_elf.c