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))