summaryrefslogtreecommitdiffstats
path: root/libexec/rtld-elf/powerpc/rtld_machdep.h
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2016-11-23 17:48:43 +0000
committerkib <kib@FreeBSD.org>2016-11-23 17:48:43 +0000
commit9ef73b375eb639d0ca5e6fe029a6aed4bf092ca6 (patch)
treea18aab4ed7ad8e0389d6779e328cfde735de1868 /libexec/rtld-elf/powerpc/rtld_machdep.h
parent7cd55eaa0f37289e264d9325cb65d7b221badb56 (diff)
downloadFreeBSD-src-9ef73b375eb639d0ca5e6fe029a6aed4bf092ca6.zip
FreeBSD-src-9ef73b375eb639d0ca5e6fe029a6aed4bf092ca6.tar.gz
MFC r308689:
Pass CPUID[1] %edx (cpu_feature), %ecx (cpu_feature2) and CPUID[7].%ebx (cpu_stdext_feature), %ecx (cpu_stdext_feature2) to the ifunc resolvers on x86. MFC r308925: Adjust r308689 to make rtld compilable with either in-tree or (hopefully) stock gcc 4.2.1 on i386 and other arches.
Diffstat (limited to 'libexec/rtld-elf/powerpc/rtld_machdep.h')
-rw-r--r--libexec/rtld-elf/powerpc/rtld_machdep.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/libexec/rtld-elf/powerpc/rtld_machdep.h b/libexec/rtld-elf/powerpc/rtld_machdep.h
index 1ddf1bc..9ab0e75 100644
--- a/libexec/rtld-elf/powerpc/rtld_machdep.h
+++ b/libexec/rtld-elf/powerpc/rtld_machdep.h
@@ -51,6 +51,9 @@ Elf_Addr reloc_jmpslot(Elf_Addr *where, Elf_Addr target,
#define call_init_pointer(obj, target) \
(((InitArrFunc)(target))(main_argc, main_argv, environ))
+#define call_ifunc_resolver(ptr) \
+ (((Elf_Addr (*)(void))ptr)())
+
/*
* Lazy binding entry point, called via PLT.
*/
OpenPOWER on IntegriCloud