module: fix module loading failure of large kernel modules for parisc
authorHelge Deller <deller@gmx.de>
Wed, 31 Dec 2008 11:31:18 +0000 (12:31 +0100)
committerRusty Russell <rusty@rustcorp.com.au>
Sun, 4 Jan 2009 22:10:13 +0000 (08:10 +1030)
commit088af9a6e05d51e7c3dc85d45d8b7a52c3ee08d7
tree86e2dd6be7fbc17cb01a42fc11f5eef794a824df
parentd1e99d7ae4e6bbd1ebb5e81ecd3af2b8793efee0
module: fix module loading failure of large kernel modules for parisc

When creating the final layout of a kernel module in memory, allow the
module loader to reserve some additional memory in front of a given section.
This is currently only needed for the parisc port which needs to put the
stub entries there to fulfill the 17/22bit PCREL relocations with large
kernel modules like xfs.

Signed-off-by: Helge Deller <deller@gmx.de>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> (renamed fn)
include/linux/moduleloader.h
kernel/module.c