module: handle ppc64 relocating kcrctabs when CONFIG_RELOCATABLE=y
authorRusty Russell <rusty@rustcorp.com.au>
Tue, 15 Dec 2009 22:28:32 +0000 (16:28 -0600)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 18 Jan 2010 18:19:51 +0000 (10:19 -0800)
commit54f1b39ce06aaf023db558ce4cc73f1d550d0d53
tree566d65cf63f89ba0855e7a224fb7dec273bd5630
parent9ef9a7c717299c9c57cba7a246462bf1c342118a
module: handle ppc64 relocating kcrctabs when CONFIG_RELOCATABLE=y

commit d4703aefdbc8f9f347f6dcefcddd791294314eb7 upstream.

powerpc applies relocations to the kcrctab.  They're absolute symbols,
but it's not completely unreasonable: other archs may too, but the
relocation is often 0.

http://lists.ozlabs.org/pipermail/linuxppc-dev/2009-November/077972.html

Inspired-by: Neil Horman <nhorman@tuxdriver.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Tested-by: Neil Horman <nhorman@tuxdriver.com>
Acked-by: Paul Mackerras <paulus@samba.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
arch/powerpc/include/asm/module.h
arch/powerpc/kernel/vmlinux.lds.S
kernel/module.c