summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/include/asm/module.h
diff options
context:
space:
mode:
authorRusty Russell <rusty@rustcorp.com.au>2014-03-18 19:59:26 +1030
committerAnton Blanchard <anton@samba.org>2014-04-23 10:05:29 +1000
commit4edebbeae3085e71f75584b6582495459e2e6cb2 (patch)
treebd272a73d1150e63bf3a1e86489f81d267dabbc7 /arch/powerpc/include/asm/module.h
parent71ec7c55ed91e2352c00d51d171fccaa7cef5a00 (diff)
downloadop-kernel-dev-4edebbeae3085e71f75584b6582495459e2e6cb2.zip
op-kernel-dev-4edebbeae3085e71f75584b6582495459e2e6cb2.tar.gz
powerpc: Fix up TOC. for modules.
The kernel resolved the '.TOC.' to a fake symbol, so we need to fix it up to point to our .toc section plus 0x8000. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'arch/powerpc/include/asm/module.h')
-rw-r--r--arch/powerpc/include/asm/module.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/module.h b/arch/powerpc/include/asm/module.h
index 49fa55b..c9c7aaa 100644
--- a/arch/powerpc/include/asm/module.h
+++ b/arch/powerpc/include/asm/module.h
@@ -35,6 +35,7 @@ struct mod_arch_specific {
#ifdef __powerpc64__
unsigned int stubs_section; /* Index of stubs section in module */
unsigned int toc_section; /* What section is the TOC? */
+ bool toc_fixed; /* Have we fixed up .TOC.? */
#ifdef CONFIG_DYNAMIC_FTRACE
unsigned long toc;
unsigned long tramp;
OpenPOWER on IntegriCloud