diff options
Diffstat (limited to 'arch/xtensa/kernel/module.c')
-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 c1accea8cb5..451dda928c9 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 | } | ||