aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/include
diff options
context:
space:
mode:
authorRusty Russell <rusty@rustcorp.com.au>2014-03-18 05:29:26 -0400
committerAnton Blanchard <anton@samba.org>2014-04-22 20:05:29 -0400
commit4edebbeae3085e71f75584b6582495459e2e6cb2 (patch)
treebd272a73d1150e63bf3a1e86489f81d267dabbc7 /arch/powerpc/include
parent71ec7c55ed91e2352c00d51d171fccaa7cef5a00 (diff)
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')
-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 49fa55bfbac4..c9c7aaaf95f5 100644
--- a/arch/powerpc/include/asm/module.h
+++ b/arch/powerpc/include/asm/module.h
@@ -35,6 +35,7 @@ struct mod_arch_specific {
35#ifdef __powerpc64__ 35#ifdef __powerpc64__
36 unsigned int stubs_section; /* Index of stubs section in module */ 36 unsigned int stubs_section; /* Index of stubs section in module */
37 unsigned int toc_section; /* What section is the TOC? */ 37 unsigned int toc_section; /* What section is the TOC? */
38 bool toc_fixed; /* Have we fixed up .TOC.? */
38#ifdef CONFIG_DYNAMIC_FTRACE 39#ifdef CONFIG_DYNAMIC_FTRACE
39 unsigned long toc; 40 unsigned long toc;
40 unsigned long tramp; 41 unsigned long tramp;