diff options
Diffstat (limited to 'arch/arm/kernel/module.c')
-rw-r--r-- | arch/arm/kernel/module.c | 29 |
1 files changed, 1 insertions, 28 deletions
diff --git a/arch/arm/kernel/module.c b/arch/arm/kernel/module.c index 016d6a0830a3..05b377616fd5 100644 --- a/arch/arm/kernel/module.c +++ b/arch/arm/kernel/module.c | |||
@@ -43,25 +43,7 @@ void *module_alloc(unsigned long size) | |||
43 | GFP_KERNEL, PAGE_KERNEL_EXEC, -1, | 43 | GFP_KERNEL, PAGE_KERNEL_EXEC, -1, |
44 | __builtin_return_address(0)); | 44 | __builtin_return_address(0)); |
45 | } | 45 | } |
46 | #else /* CONFIG_MMU */ | 46 | #endif |
47 | void *module_alloc(unsigned long size) | ||
48 | { | ||
49 | return size == 0 ? NULL : vmalloc(size); | ||
50 | } | ||
51 | #endif /* !CONFIG_MMU */ | ||
52 | |||
53 | void module_free(struct module *module, void *region) | ||
54 | { | ||
55 | vfree(region); | ||
56 | } | ||
57 | |||
58 | int module_frob_arch_sections(Elf_Ehdr *hdr, | ||
59 | Elf_Shdr *sechdrs, | ||
60 | char *secstrings, | ||
61 | struct module *mod) | ||
62 | { | ||
63 | return 0; | ||
64 | } | ||
65 | 47 | ||
66 | int | 48 | int |
67 | apply_relocate(Elf32_Shdr *sechdrs, const char *strtab, unsigned int symindex, | 49 | apply_relocate(Elf32_Shdr *sechdrs, const char *strtab, unsigned int symindex, |
@@ -265,15 +247,6 @@ apply_relocate(Elf32_Shdr *sechdrs, const char *strtab, unsigned int symindex, | |||
265 | return 0; | 247 | return 0; |
266 | } | 248 | } |
267 | 249 | ||
268 | int | ||
269 | apply_relocate_add(Elf32_Shdr *sechdrs, const char *strtab, | ||
270 | unsigned int symindex, unsigned int relsec, struct module *module) | ||
271 | { | ||
272 | printk(KERN_ERR "module %s: ADD RELOCATION unsupported\n", | ||
273 | module->name); | ||
274 | return -ENOEXEC; | ||
275 | } | ||
276 | |||
277 | struct mod_unwind_map { | 250 | struct mod_unwind_map { |
278 | const Elf_Shdr *unw_sec; | 251 | const Elf_Shdr *unw_sec; |
279 | const Elf_Shdr *txt_sec; | 252 | const Elf_Shdr *txt_sec; |