]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Implement LD_BIND_NOT knob for rtld.
authorkib <kib@FreeBSD.org>
Wed, 15 Mar 2017 21:11:57 +0000 (21:11 +0000)
committerkib <kib@FreeBSD.org>
Wed, 15 Mar 2017 21:11:57 +0000 (21:11 +0000)
commit3d8511bbc42842de622620b85b1a2bd023b8d3f6
tree86ff1feff54011df6d945a921206c79f04886fef
parent829a1a12326728c32bf06e9ed0b528292fdcce45
Implement LD_BIND_NOT knob for rtld.

From the manpage:
When set to a nonempty string, prevents modifications of the PLT slots
when doing bindings.  As result, each call of the PLT-resolved
function is resolved.  In combination with debug output, this provides
complete account of all bind actions at runtime.

Same feature exists on Linux and Solaris.

Sponsored by: The FreeBSD Foundation
MFC after: 2 weeks
21 files changed:
libexec/rtld-elf/aarch64/reloc.c
libexec/rtld-elf/aarch64/rtld_machdep.h
libexec/rtld-elf/amd64/reloc.c
libexec/rtld-elf/amd64/rtld_machdep.h
libexec/rtld-elf/arm/reloc.c
libexec/rtld-elf/arm/rtld_machdep.h
libexec/rtld-elf/i386/reloc.c
libexec/rtld-elf/i386/rtld_machdep.h
libexec/rtld-elf/mips/reloc.c
libexec/rtld-elf/mips/rtld_machdep.h
libexec/rtld-elf/powerpc/reloc.c
libexec/rtld-elf/powerpc/rtld_machdep.h
libexec/rtld-elf/powerpc64/reloc.c
libexec/rtld-elf/powerpc64/rtld_machdep.h
libexec/rtld-elf/riscv/reloc.c
libexec/rtld-elf/riscv/rtld_machdep.h
libexec/rtld-elf/rtld.1
libexec/rtld-elf/rtld.c
libexec/rtld-elf/rtld.h
libexec/rtld-elf/sparc64/reloc.c
libexec/rtld-elf/sparc64/rtld_machdep.h