diff options
Diffstat (limited to 'arch/h8300/kernel/module.c')
-rw-r--r-- | arch/h8300/kernel/module.c | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/arch/h8300/kernel/module.c b/arch/h8300/kernel/module.c index db4953dc4e1..1d526e05db1 100644 --- a/arch/h8300/kernel/module.c +++ b/arch/h8300/kernel/module.c | |||
@@ -11,40 +11,6 @@ | |||
11 | #define DEBUGP(fmt...) | 11 | #define DEBUGP(fmt...) |
12 | #endif | 12 | #endif |
13 | 13 | ||
14 | void *module_alloc(unsigned long size) | ||
15 | { | ||
16 | if (size == 0) | ||
17 | return NULL; | ||
18 | return vmalloc(size); | ||
19 | } | ||
20 | |||
21 | |||
22 | /* Free memory returned from module_alloc */ | ||
23 | void module_free(struct module *mod, void *module_region) | ||
24 | { | ||
25 | vfree(module_region); | ||
26 | } | ||
27 | |||
28 | /* We don't need anything special. */ | ||
29 | int module_frob_arch_sections(Elf_Ehdr *hdr, | ||
30 | Elf_Shdr *sechdrs, | ||
31 | char *secstrings, | ||
32 | struct module *mod) | ||
33 | { | ||
34 | return 0; | ||
35 | } | ||
36 | |||
37 | int apply_relocate(Elf32_Shdr *sechdrs, | ||
38 | const char *strtab, | ||
39 | unsigned int symindex, | ||
40 | unsigned int relsec, | ||
41 | struct module *me) | ||
42 | { | ||
43 | printk(KERN_ERR "module %s: RELOCATION unsupported\n", | ||
44 | me->name); | ||
45 | return -ENOEXEC; | ||
46 | } | ||
47 | |||
48 | int apply_relocate_add(Elf32_Shdr *sechdrs, | 14 | int apply_relocate_add(Elf32_Shdr *sechdrs, |
49 | const char *strtab, | 15 | const char *strtab, |
50 | unsigned int symindex, | 16 | unsigned int symindex, |
@@ -107,14 +73,3 @@ int apply_relocate_add(Elf32_Shdr *sechdrs, | |||
107 | me->name, rela[i].r_offset); | 73 | me->name, rela[i].r_offset); |
108 | return -ENOEXEC; | 74 | return -ENOEXEC; |
109 | } | 75 | } |
110 | |||
111 | int module_finalize(const Elf_Ehdr *hdr, | ||
112 | const Elf_Shdr *sechdrs, | ||
113 | struct module *me) | ||
114 | { | ||
115 | return 0; | ||
116 | } | ||
117 | |||
118 | void module_arch_cleanup(struct module *mod) | ||
119 | { | ||
120 | } | ||