Date: Sun, 18 Oct 2009 12:57:48 +0000 (UTC) From: Konstantin Belousov <kib@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/sys/kern imgact_elf.c Message-ID: <200910181258.n9ICwA6v087053@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
kib 2009-10-18 12:57:48 UTC
FreeBSD src repository
Modified files:
sys/kern imgact_elf.c
Log:
SVN rev 198202 on 2009-10-18 12:57:48Z by kib
If ET_DYN binary has non-zero base address for some reason, honour it
and do not relocate the binary to ET_DYN_LOAD_ADDR. This allows for the
binary author to influence address map of the process. In particular,
when the binary is actually an interpeter, this allows to have almost
usual process address map.
Communicate the relocation bias of the mapping for interpeter-less
ET_DYN binary, that is interperter itself, in AT_BASE aux entry. This
way, rtld is able to find its dynamic structure and relocate itself.
Note that mapbase in the rtld is still wrong and requires further
fixing.
Reported and tested by: rwatson
Discussed with: kan
MFC after: 3 days
Revision Changes Path
1.203 +20 -5 src/sys/kern/imgact_elf.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200910181258.n9ICwA6v087053>
