]> git.karo-electronics.de Git - linux-beck.git/commit
powerpc: EXPORT_SYMBOL(.TOC.)
authorRusty Russell <rusty@rustcorp.com.au>
Tue, 18 Mar 2014 07:07:28 +0000 (17:37 +1030)
committerAnton Blanchard <anton@samba.org>
Wed, 23 Apr 2014 00:05:28 +0000 (10:05 +1000)
commit9baeaef64095eab00c232f55df2e7c2d8e89845d
tree403bc69cefdc25215f43276029a93f957cf2b3ea
parentd247da0a8ebcc4ebb4c766487de6af5df560adac
powerpc: EXPORT_SYMBOL(.TOC.)

For the ELFv2 ABI, powerpc introduces a magic symbol ".TOC.".  depmod
then complains that this doesn't resolve (so does modpost, but we could
easily fix that).  To export this, we need to use asm.

modpost and depmod both strip "." from symbols for the old PPC64 ELFv1
ABI, so we actually export a "TOC.".

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
arch/powerpc/kernel/misc_64.S