summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/lib/copyuser_64.S
diff options
context:
space:
mode:
authorAnton Blanchard <anton@samba.org>2014-04-03 07:01:11 +0200
committerAnton Blanchard <anton@samba.org>2014-04-23 02:05:32 +0200
commit169c7cee3131cdf5e2f2d2a6c722c7db0283bcd5 (patch)
treea9804c62b8090d719337159fd98294b9282209cf /arch/powerpc/lib/copyuser_64.S
parentpowerpc: modules: implement stubs for ELFv2 ABI. (diff)
downloadlinux-169c7cee3131cdf5e2f2d2a6c722c7db0283bcd5.tar.xz
linux-169c7cee3131cdf5e2f2d2a6c722c7db0283bcd5.zip
powerpc: Add _GLOBAL_TOC for ABIv2 assembly functions exported to modules
If an assembly function that calls back into c code is exported to modules, we need to ensure r2 is setup correctly. There are only two places crazy enough to do it (two of which are my fault). Signed-off-by: Anton Blanchard <anton@samba.org>
Diffstat (limited to 'arch/powerpc/lib/copyuser_64.S')
-rw-r--r--arch/powerpc/lib/copyuser_64.S2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/lib/copyuser_64.S b/arch/powerpc/lib/copyuser_64.S
index 596a285c0755..0860ee46013c 100644
--- a/arch/powerpc/lib/copyuser_64.S
+++ b/arch/powerpc/lib/copyuser_64.S
@@ -18,7 +18,7 @@
#endif
.align 7
-_GLOBAL(__copy_tofrom_user)
+_GLOBAL_TOC(__copy_tofrom_user)
BEGIN_FTR_SECTION
nop
FTR_SECTION_ELSE