DragonFly commits List (threaded) for 2011-05
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]
git: kernel ELF: Map PIE binaries at non-zero or specified address
commit 72453240fe7f2d537cfd6cccd9a0b2f299efc3fc
Author: John Marino <draco@marino.st>
Date: Tue May 10 23:06:51 2011 +0200
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.
Summary of changes:
sys/cpu/i386/include/elf.h | 5 ++
sys/cpu/x86_64/include/elf.h | 7 +++-
sys/kern/imgact_elf.c | 90 ++++++++++++++++++++++++++---------------
3 files changed, 68 insertions(+), 34 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/72453240fe7f2d537cfd6cccd9a0b2f299efc3fc
--
DragonFly BSD source repository
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]