]> git.baikalelectronics.ru Git - kernel.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)
commit476117c109413e76933a48a017990df855469008
tree403bc69cefdc25215f43276029a93f957cf2b3ea
parent36b80d70b79e365c1934d006cb872086caac450f
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