From b2aea1ad8f670340d85b3813ab0b4a9a4b091668 Mon Sep 17 00:00:00 2001 From: Justin Hibbits Date: Mon, 27 May 2019 03:18:56 +0000 Subject: [PATCH] powerpc/dtrace: Fix fbt function probing for ELFv2 '.' function names exist only in ELFv1. ELFv2 does away with function descriptors, and look more like they do on powerpc(32) and most other platforms, as direct function pointers. Stop blacklisting regular function names in ELFv2. Submitted by: Brandon Bergren Differential Revision: https://reviews.freebsd.org/D20346 --- sys/cddl/dev/fbt/powerpc/fbt_isa.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/cddl/dev/fbt/powerpc/fbt_isa.c b/sys/cddl/dev/fbt/powerpc/fbt_isa.c index 8843e2aafe12..0da74c9cf076 100644 --- a/sys/cddl/dev/fbt/powerpc/fbt_isa.c +++ b/sys/cddl/dev/fbt/powerpc/fbt_isa.c @@ -116,6 +116,7 @@ fbt_provide_module_function(linker_file_t lf, int symindx, uint32_t *instr, *limit; #ifdef __powerpc64__ +#if !defined(_CALL_ELF) || _CALL_ELF == 1 /* * PowerPC64 uses '.' prefixes on symbol names, ignore it, but only * allow symbols with the '.' prefix, so that we don't get the function @@ -125,6 +126,7 @@ fbt_provide_module_function(linker_file_t lf, int symindx, name++; else return (0); +#endif #endif if (fbt_excluded(name))