提交 07de8377 编写于 作者: A Anton Blanchard

powerpc: Fix ABIv2 issue with dereference_function_descriptor

Don't try and dereference a function descriptor on ABIv2.
Signed-off-by: NAnton Blanchard <anton@samba.org>
上级 2751b628
...@@ -39,6 +39,7 @@ static inline int overlaps_kernel_text(unsigned long start, unsigned long end) ...@@ -39,6 +39,7 @@ static inline int overlaps_kernel_text(unsigned long start, unsigned long end)
(unsigned long)_stext < end; (unsigned long)_stext < end;
} }
#if !defined(_CALL_ELF) || _CALL_ELF != 2
#undef dereference_function_descriptor #undef dereference_function_descriptor
static inline void *dereference_function_descriptor(void *ptr) static inline void *dereference_function_descriptor(void *ptr)
{ {
...@@ -49,6 +50,7 @@ static inline void *dereference_function_descriptor(void *ptr) ...@@ -49,6 +50,7 @@ static inline void *dereference_function_descriptor(void *ptr)
ptr = p; ptr = p;
return ptr; return ptr;
} }
#endif
#endif #endif
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册