]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/commit
MFC r232831:
authorkib <kib@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 30 Mar 2012 09:34:19 +0000 (09:34 +0000)
committerkib <kib@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 30 Mar 2012 09:34:19 +0000 (09:34 +0000)
commit4bfc45efff73e0704b4b8dc48c202e4e091047f3
tree3a9ab6b7bc73d083a255d4963aa27a39d57ad747
parentffb331051b59e3a23ed6d27bf1c815d4897dd3cc
MFC r232831:
Add support for preinit, init and fini arrays to rtld.
Only binaries marked with proper ABI note gets array ctr/dtrs called.

MFC r232856:
When iterating over the dso program headers, the object is not initialized
yet, and object segments are not yet mapped.  Only parse the notes that
appear in the first page of the dso (as it should be anyway), and use
the preloaded page content.

MFC r232857 (by dim):
Fix a warning/error with clang.

MFC r232859 (by dim):
Amend r232857, now dropping the casts entirely, as they were not
necessary at all.

git-svn-id: svn://svn.freebsd.org/base/stable/9@233694 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
13 files changed:
libexec/rtld-elf/Makefile
libexec/rtld-elf/amd64/rtld_machdep.h
libexec/rtld-elf/arm/rtld_machdep.h
libexec/rtld-elf/i386/rtld_machdep.h
libexec/rtld-elf/ia64/reloc.c
libexec/rtld-elf/ia64/rtld_machdep.h
libexec/rtld-elf/map_object.c
libexec/rtld-elf/mips/rtld_machdep.h
libexec/rtld-elf/powerpc/rtld_machdep.h
libexec/rtld-elf/powerpc64/rtld_machdep.h
libexec/rtld-elf/rtld.c
libexec/rtld-elf/rtld.h
libexec/rtld-elf/sparc64/rtld_machdep.h