git: kernel ELF: Map PIE binaries at non-zero or specified addre

看板DFBSD_commit作者時間14年前 (2011/05/17 07:33), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
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
文章代碼(AID): #1DqRH9WZ (DFBSD_commit)