diff options
| author | Russell King <rmk@flint.arm.linux.org.uk> | 2002-11-19 15:41:06 +0000 |
|---|---|---|
| committer | Russell King <rmk@flint.arm.linux.org.uk> | 2002-11-19 15:41:06 +0000 |
| commit | cb1ff8760c8327ca6b98fecf04065e058330ff99 (patch) | |
| tree | d41d7343149a251a0b0f9f858650793f3594771c /include | |
| parent | 1b41a898fe846819c1cb23b1e2d4d997851d68a8 (diff) | |
[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.
Diffstat (limited to 'include')
| -rw-r--r-- | include/asm-arm/module.h | 15 |
1 files changed, 8 insertions, 7 deletions
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 */ |
