Commit d899c1d0 authored by David S. Miller's avatar David S. Miller

[SPARC]: Module loading API updates.

parent eeb83d44
......@@ -11,7 +11,7 @@
#include <linux/fs.h>
#include <linux/string.h>
static void *alloc_and_zero(unsigned long size)
void *module_alloc(unsigned long size)
{
void *ret;
......@@ -36,22 +36,6 @@ void module_free(struct module *mod, void *module_region)
table entries. */
}
void *module_core_alloc(const Elf32_Ehdr *hdr,
const Elf32_Shdr *sechdrs,
const char *secstrings,
struct module *module)
{
return alloc_and_zero(module->core_size);
}
void *module_init_alloc(const Elf32_Ehdr *hdr,
const Elf32_Shdr *sechdrs,
const char *secstrings,
struct module *module)
{
return alloc_and_zero(module->init_size);
}
int apply_relocate(Elf32_Shdr *sechdrs,
const char *strtab,
unsigned int symindex,
......
......@@ -118,7 +118,7 @@ static void *module_map(unsigned long size)
return NULL;
}
static void *alloc_and_zero(unsigned long size)
void *module_alloc(unsigned long size)
{
void *ret;
......@@ -143,22 +143,6 @@ void module_free(struct module *mod, void *module_region)
table entries. */
}
void *module_core_alloc(const Elf64_Ehdr *hdr,
const Elf64_Shdr *sechdrs,
const char *secstrings,
struct module *module)
{
return alloc_and_zero(module->core_size);
}
void *module_init_alloc(const Elf64_Ehdr *hdr,
const Elf64_Shdr *sechdrs,
const char *secstrings,
struct module *module)
{
return alloc_and_zero(module->init_size);
}
int apply_relocate(Elf64_Shdr *sechdrs,
const char *strtab,
unsigned int symindex,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment