projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2751b62
)
powerpc: Fix ABIv2 issue with dereference_function_descriptor
author
Anton Blanchard
<anton@samba.org>
Tue, 11 Mar 2014 01:15:27 +0000
(12:15 +1100)
committer
Anton Blanchard
<anton@samba.org>
Wed, 23 Apr 2014 00:05:26 +0000
(10:05 +1000)
Don't try and dereference a function descriptor on ABIv2.
Signed-off-by: Anton Blanchard <anton@samba.org>
arch/powerpc/include/asm/sections.h
patch
|
blob
|
blame
|
history
diff --git
a/arch/powerpc/include/asm/sections.h
b/arch/powerpc/include/asm/sections.h
index d0e784e0ff484f0053f807e081a4c89fec13dee6..d1bb96d5a298b3f82a068ba0dd9ec9b41095a695 100644
(file)
--- a/
arch/powerpc/include/asm/sections.h
+++ b/
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