Commit 38b7c6db authored by Anton Blanchard's avatar Anton Blanchard

ppc64: Andrew Morton is picking on me

parent 822006c3
......@@ -20,6 +20,7 @@
#include <linux/moduleloader.h>
#include <linux/err.h>
#include <linux/vmalloc.h>
#include <asm/module.h>
#include <asm/uaccess.h>
/* FIXME: We don't do .init separately. To do this, we'd need to have
......@@ -375,15 +376,11 @@ int apply_relocate_add(Elf64_Shdr *sechdrs,
return 0;
}
/* In arch/ppc64/mm/extable.c */
extern void sort_ex_table(struct exception_table_entry *start,
struct exception_table_entry *finish);
int module_finalize(const Elf_Ehdr *hdr,
const Elf_Shdr *sechdrs,
struct module *me)
const Elf_Shdr *sechdrs, struct module *me)
{
sort_ex_table(me->extable,
me->extable + me->num_exentries);
sort_ex_table((struct exception_table_entry *)me->extable,
(struct exception_table_entry *)me->extable +
me->num_exentries);
return 0;
}
......@@ -19,4 +19,8 @@ struct mod_arch_specific
asm(".section .stubs,\"ax\",@nobits; .align 3; .previous");
#endif
struct exception_table_entry;
void sort_ex_table(struct exception_table_entry *start,
struct exception_table_entry *finish);
#endif /* _ASM_PPC64_MODULE_H */
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