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/frv | |
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/frv')
-rw-r--r-- | arch/frv/kernel/module.c | 57 |
1 files changed, 3 insertions, 54 deletions
diff --git a/arch/frv/kernel/module.c b/arch/frv/kernel/module.c index 711763c8a6f3..9d9835f1fe2b 100644 --- a/arch/frv/kernel/module.c +++ b/arch/frv/kernel/module.c | |||
@@ -22,57 +22,6 @@ | |||
22 | #define DEBUGP(fmt...) | 22 | #define DEBUGP(fmt...) |
23 | #endif | 23 | #endif |
24 | 24 | ||
25 | void *module_alloc(unsigned long size) | 25 | /* TODO: At least one of apply_relocate or apply_relocate_add must be |
26 | { | 26 | * implemented in order to get working module support. |
27 | if (size == 0) | 27 | */ |
28 | return NULL; | ||
29 | |||
30 | return vmalloc_exec(size); | ||
31 | } | ||
32 | |||
33 | |||
34 | /* Free memory returned from module_alloc */ | ||
35 | void module_free(struct module *mod, void *module_region) | ||
36 | { | ||
37 | vfree(module_region); | ||
38 | } | ||
39 | |||
40 | /* We don't need anything special. */ | ||
41 | int module_frob_arch_sections(Elf_Ehdr *hdr, | ||
42 | Elf_Shdr *sechdrs, | ||
43 | char *secstrings, | ||
44 | struct module *mod) | ||
45 | { | ||
46 | return 0; | ||
47 | } | ||
48 | |||
49 | int apply_relocate(Elf32_Shdr *sechdrs, | ||
50 | const char *strtab, | ||
51 | unsigned int symindex, | ||
52 | unsigned int relsec, | ||
53 | struct module *me) | ||
54 | { | ||
55 | printk(KERN_ERR "module %s: ADD RELOCATION unsupported\n", me->name); | ||
56 | return -ENOEXEC; | ||
57 | } | ||
58 | |||
59 | int apply_relocate_add(Elf32_Shdr *sechdrs, | ||
60 | const char *strtab, | ||
61 | unsigned int symindex, | ||
62 | unsigned int relsec, | ||
63 | struct module *me) | ||
64 | { | ||
65 | printk(KERN_ERR "module %s: ADD RELOCATION unsupported\n", me->name); | ||
66 | return -ENOEXEC; | ||
67 | } | ||
68 | |||
69 | int module_finalize(const Elf_Ehdr *hdr, | ||
70 | const Elf_Shdr *sechdrs, | ||
71 | struct module *me) | ||
72 | { | ||
73 | return 0; | ||
74 | } | ||
75 | |||
76 | void module_arch_cleanup(struct module *mod) | ||
77 | { | ||
78 | } | ||