1
0

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>
Este cometimento está contido em:
Jonas Bonn
2011-06-30 21:22:12 +02:00
cometido por Rusty Russell
ascendente 74e08fcf7b
cometimento 66574cc054
26 ficheiros modificados com 12 adições e 777 eliminações

Ver ficheiro

@@ -98,25 +98,6 @@ void module_free(struct module *mod, void *module_region)
*/
}
/* We don't need anything special. */
int module_frob_arch_sections(Elf_Ehdr *hdr,
Elf_Shdr *sechdrs,
char *secstrings,
struct module *mod)
{
return 0;
}
int apply_relocate(Elf_Shdr *sechdrs,
const char *strtab,
unsigned int symindex,
unsigned int relsec,
struct module *me)
{
pr_err("module %s: .rel relocation unsupported\n", me->name);
return -ENOEXEC;
}
#ifdef __tilegx__
/*
* Validate that the high 16 bits of "value" is just the sign-extension of
@@ -249,15 +230,3 @@ int apply_relocate_add(Elf_Shdr *sechdrs,
}
return 0;
}
int module_finalize(const Elf_Ehdr *hdr,
const Elf_Shdr *sechdrs,
struct module *me)
{
/* FIXME: perhaps remove the "writable" bit from the TLB? */
return 0;
}
void module_arch_cleanup(struct module *mod)
{
}