Explorar o código

powerpc: Fix ABIv2 issue with dereference_function_descriptor

Don't try and dereference a function descriptor on ABIv2.

Signed-off-by: Anton Blanchard <anton@samba.org>
Anton Blanchard %!s(int64=11) %!d(string=hai) anos
pai
achega
07de8377f7
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      arch/powerpc/include/asm/sections.h

+ 2 - 0
arch/powerpc/include/asm/sections.h

@@ -39,6 +39,7 @@ static inline int overlaps_kernel_text(unsigned long start, unsigned long end)
 		(unsigned long)_stext < end;
 }
 
+#if !defined(_CALL_ELF) || _CALL_ELF != 2
 #undef dereference_function_descriptor
 static inline void *dereference_function_descriptor(void *ptr)
 {
@@ -49,6 +50,7 @@ static inline void *dereference_function_descriptor(void *ptr)
 		ptr = p;
 	return ptr;
 }
+#endif
 
 #endif