From cb1ff8760c8327ca6b98fecf04065e058330ff99 Mon Sep 17 00:00:00 2001 From: Russell King Date: Tue, 19 Nov 2002 15:41:06 +0000 Subject: [ARM] 2.5.48 module fixups (and disable module loading for ARM) This cset implements half the changes required for Rusty's in-kernel module loader. It implements the basic principles required to link a module with other modules and the kernel, as well as providing the required functions to allow the kernel to build with CONFIG_MODULES=y. However, as an unfortunate side effect, this cset DISABLES the ability to load modules on ARM; it's currently broken since we need to allocate a jump table for out of range branches (which is required for most calls from modules to the kernel binary to work.) Since we don't know the size of the jump table until we come to link the module, a subsequent vmalloc could return memory no where near the module itself, giving the same problem. --- include/asm-arm/module.h | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'include') diff --git a/include/asm-arm/module.h b/include/asm-arm/module.h index 7717a588ece5..5b4d1a3f3679 100644 --- a/include/asm-arm/module.h +++ b/include/asm-arm/module.h @@ -1,12 +1,13 @@ #ifndef _ASM_ARM_MODULE_H #define _ASM_ARM_MODULE_H -/* - * This file contains the arm architecture specific module code. - */ -#define module_map(x) vmalloc(x) -#define module_unmap(x) vfree(x) -#define module_arch_init(x) (0) -#define arch_init_modules(x) do { } while (0) +struct mod_arch_specific +{ + int foo; +}; + +#define Elf_Shdr Elf32_Shdr +#define Elf_Sym Elf32_Sym +#define Elf_Ehdr Elf32_Ehdr #endif /* _ASM_ARM_MODULE_H */ -- cgit v1.2.3