Index: head/sys/sys/linker_set.h =================================================================== --- head/sys/sys/linker_set.h +++ head/sys/sys/linker_set.h @@ -42,8 +42,11 @@ * For ELF, this is done by constructing a separate segment for each set. */ -#if defined(__powerpc64__) +#if defined(__powerpc64__) && (!defined(_CALL_ELF) || _CALL_ELF == 1) /* + * ELFv1 pointers to functions are actaully pointers to function + * descriptors. + * * Move the symbol pointer from ".text" to ".data" segment, to make * the GCC compiler happy: */