Commit 71ec7c55 authored by Rusty Russell's avatar Rusty Russell Committed by Anton Blanchard

powerpc: module: handle MODVERSION for .TOC.

For the ELFv2 ABI, powerpc introduces a magic symbol ".TOC.".  If we
don't create a CRC for it (minus the leading ".", since we strip that)
we get a modpost warning about missing CRC and the CRC array seems to
be displaced by 1 so other CRCs mismatch too.
Signed-off-by: default avatarRusty Russell <rusty@rustcorp.com.au>
parent 9baeaef6
...@@ -637,6 +637,15 @@ _GLOBAL(kexec_sequence) ...@@ -637,6 +637,15 @@ _GLOBAL(kexec_sequence)
#ifdef CONFIG_MODULES #ifdef CONFIG_MODULES
#if defined(_CALL_ELF) && _CALL_ELF == 2 #if defined(_CALL_ELF) && _CALL_ELF == 2
#ifdef CONFIG_MODVERSIONS
.weak __crc_TOC.
.section "___kcrctab+TOC.","a"
.globl __kcrctab_TOC.
__kcrctab_TOC.:
.llong __crc_TOC.
#endif
/* /*
* Export a fake .TOC. since both modpost and depmod will complain otherwise. * Export a fake .TOC. since both modpost and depmod will complain otherwise.
* Both modpost and depmod strip the leading . so we do the same here. * Both modpost and depmod strip the leading . so we do the same here.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment