diff options
Diffstat (limited to 'arch/mn10300/kernel')
-rw-r--r-- | arch/mn10300/kernel/module.c | 61 |
1 files changed, 0 insertions, 61 deletions
diff --git a/arch/mn10300/kernel/module.c b/arch/mn10300/kernel/module.c index 196a111e2e2..216ad23c957 100644 --- a/arch/mn10300/kernel/module.c +++ b/arch/mn10300/kernel/module.c | |||
@@ -32,36 +32,6 @@ | |||
32 | #define DEBUGP(fmt, ...) | 32 | #define DEBUGP(fmt, ...) |
33 | #endif | 33 | #endif |
34 | 34 | ||
35 | /* | ||
36 | * allocate storage for a module | ||
37 | */ | ||
38 | void *module_alloc(unsigned long size) | ||
39 | { | ||
40 | if (size == 0) | ||
41 | return NULL; | ||
42 | return vmalloc_exec(size); | ||
43 | } | ||
44 | |||
45 | /* | ||
46 | * free memory returned from module_alloc() | ||
47 | */ | ||
48 | void module_free(struct module *mod, void *module_region) | ||
49 | { | ||
50 | vfree(module_region); | ||
51 | } | ||
52 | |||
53 | /* | ||
54 | * allow the arch to fix up the section table | ||
55 | * - we don't need anything special | ||
56 | */ | ||
57 | int module_frob_arch_sections(Elf_Ehdr *hdr, | ||
58 | Elf_Shdr *sechdrs, | ||
59 | char *secstrings, | ||
60 | struct module *mod) | ||
61 | { | ||
62 | return 0; | ||
63 | } | ||
64 | |||
65 | static void reloc_put16(uint8_t *p, uint32_t val) | 35 | static void reloc_put16(uint8_t *p, uint32_t val) |
66 | { | 36 | { |
67 | p[0] = val & 0xff; | 37 | p[0] = val & 0xff; |
@@ -81,20 +51,6 @@ static void reloc_put32(uint8_t *p, uint32_t val) | |||
81 | } | 51 | } |
82 | 52 | ||
83 | /* | 53 | /* |
84 | * apply a REL relocation | ||
85 | */ | ||
86 | int apply_relocate(Elf32_Shdr *sechdrs, | ||
87 | const char *strtab, | ||
88 | unsigned int symindex, | ||
89 | unsigned int relsec, | ||
90 | struct module *me) | ||
91 | { | ||
92 | printk(KERN_ERR "module %s: RELOCATION unsupported\n", | ||
93 | me->name); | ||
94 | return -ENOEXEC; | ||
95 | } | ||
96 | |||
97 | /* | ||
98 | * apply a RELA relocation | 54 | * apply a RELA relocation |
99 | */ | 55 | */ |
100 | int apply_relocate_add(Elf32_Shdr *sechdrs, | 56 | int apply_relocate_add(Elf32_Shdr *sechdrs, |
@@ -198,20 +154,3 @@ int apply_relocate_add(Elf32_Shdr *sechdrs, | |||
198 | } | 154 | } |
199 | return 0; | 155 | return 0; |
200 | } | 156 | } |
201 | |||
202 | /* | ||
203 | * finish loading the module | ||
204 | */ | ||
205 | int module_finalize(const Elf_Ehdr *hdr, | ||
206 | const Elf_Shdr *sechdrs, | ||
207 | struct module *me) | ||
208 | { | ||
209 | return 0; | ||
210 | } | ||
211 | |||
212 | /* | ||
213 | * finish clearing the module | ||
214 | */ | ||
215 | void module_arch_cleanup(struct module *mod) | ||
216 | { | ||
217 | } | ||