diff options
author | Rusty Russell <rusty@rustcorp.com.au> | 2014-03-18 10:29:26 +0100 |
---|---|---|
committer | Anton Blanchard <anton@samba.org> | 2014-04-23 02:05:29 +0200 |
commit | 4edebbeae3085e71f75584b6582495459e2e6cb2 (patch) | |
tree | bd272a73d1150e63bf3a1e86489f81d267dabbc7 /arch/powerpc/include/asm/module.h | |
parent | powerpc: module: handle MODVERSION for .TOC. (diff) | |
download | linux-4edebbeae3085e71f75584b6582495459e2e6cb2.tar.xz linux-4edebbeae3085e71f75584b6582495459e2e6cb2.zip |
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; |