diff options
author | Rusty Russell <rusty@rustcorp.com.au> | 2014-03-18 19:59:26 +1030 |
---|---|---|
committer | Anton Blanchard <anton@samba.org> | 2014-04-23 10:05:29 +1000 |
commit | 4edebbeae3085e71f75584b6582495459e2e6cb2 (patch) | |
tree | bd272a73d1150e63bf3a1e86489f81d267dabbc7 /arch/powerpc/include/asm/module.h | |
parent | 71ec7c55ed91e2352c00d51d171fccaa7cef5a00 (diff) | |
download | linux-4edebbeae3085e71f75584b6582495459e2e6cb2.tar.bz2 |
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.h | 1 |
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 { #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; |