diff options
author | Jonas Bonn <jonas@southpole.se> | 2011-06-30 15:22:12 -0400 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2011-07-24 08:36:04 -0400 |
commit | 66574cc05438dd0907029075d7e6ec5ac0036fbc (patch) | |
tree | 8516792e486a535840e09b67f0831c303df3d45d /arch/xtensa | |
parent | 74e08fcf7bef973512a1f813700f802a93678670 (diff) |
modules: make arch's use default loader hooks
This patch removes all the module loader hook implementations in the
architecture specific code where the functionality is the same as that
now provided by the recently added default hooks.
Signed-off-by: Jonas Bonn <jonas@southpole.se>
Acked-by: Mike Frysinger <vapier@gentoo.org>
Acked-by: Geert Uytterhoeven <geert@linux-m68k.org>
Tested-by: Michal Simek <monstr@monstr.eu>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'arch/xtensa')
-rw-r--r-- | arch/xtensa/kernel/module.c | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/arch/xtensa/kernel/module.c b/arch/xtensa/kernel/module.c index c1accea8cb56..451dda928c93 100644 --- a/arch/xtensa/kernel/module.c +++ b/arch/xtensa/kernel/module.c | |||
@@ -24,26 +24,6 @@ | |||
24 | 24 | ||
25 | #undef DEBUG_RELOCATE | 25 | #undef DEBUG_RELOCATE |
26 | 26 | ||
27 | void *module_alloc(unsigned long size) | ||
28 | { | ||
29 | if (size == 0) | ||
30 | return NULL; | ||
31 | return vmalloc_exec(size); | ||
32 | } | ||
33 | |||
34 | void module_free(struct module *mod, void *module_region) | ||
35 | { | ||
36 | vfree(module_region); | ||
37 | } | ||
38 | |||
39 | int module_frob_arch_sections(Elf32_Ehdr *hdr, | ||
40 | Elf32_Shdr *sechdrs, | ||
41 | char *secstrings, | ||
42 | struct module *mod) | ||
43 | { | ||
44 | return 0; | ||
45 | } | ||
46 | |||
47 | static int | 27 | static int |
48 | decode_calln_opcode (unsigned char *location) | 28 | decode_calln_opcode (unsigned char *location) |
49 | { | 29 | { |
@@ -66,18 +46,6 @@ decode_l32r_opcode (unsigned char *location) | |||
66 | #endif | 46 | #endif |
67 | } | 47 | } |
68 | 48 | ||
69 | int apply_relocate(Elf32_Shdr *sechdrs, | ||
70 | const char *strtab, | ||
71 | unsigned int symindex, | ||
72 | unsigned int relsec, | ||
73 | struct module *mod) | ||
74 | { | ||
75 | printk(KERN_ERR "module %s: REL RELOCATION unsupported\n", | ||
76 | mod->name); | ||
77 | return -ENOEXEC; | ||
78 | |||
79 | } | ||
80 | |||
81 | int apply_relocate_add(Elf32_Shdr *sechdrs, | 49 | int apply_relocate_add(Elf32_Shdr *sechdrs, |
82 | const char *strtab, | 50 | const char *strtab, |
83 | unsigned int symindex, | 51 | unsigned int symindex, |
@@ -222,14 +190,3 @@ int apply_relocate_add(Elf32_Shdr *sechdrs, | |||
222 | } | 190 | } |
223 | return 0; | 191 | return 0; |
224 | } | 192 | } |
225 | |||
226 | int module_finalize(const Elf_Ehdr *hdr, | ||
227 | const Elf_Shdr *sechdrs, | ||
228 | struct module *mod) | ||
229 | { | ||
230 | return 0; | ||
231 | } | ||
232 | |||
233 | void module_arch_cleanup(struct module *mod) | ||
234 | { | ||
235 | } | ||