summaryrefslogtreecommitdiff
path: root/arch/alpha/kernel/module.c
diff options
context:
space:
mode:
authorRichard Henderson <rth@are.twiddle.net>2003-01-06 01:26:25 -0800
committerRichard Henderson <rth@are.twiddle.net>2003-01-06 01:26:25 -0800
commitdb0b3815baafeccbc68caf2a34fe3605dcb95a49 (patch)
tree3121a27c5e67c3d7258abc873f5a2d35cb5f80af /arch/alpha/kernel/module.c
parent10d43ec6d2fca1c3b55ea80d9cfe18107897929b (diff)
[ALPHA] Adjust signature of module_frob_arch_sections.
Diffstat (limited to 'arch/alpha/kernel/module.c')
-rw-r--r--arch/alpha/kernel/module.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/arch/alpha/kernel/module.c b/arch/alpha/kernel/module.c
index 0d3f1f35a937..143c27efdbcb 100644
--- a/arch/alpha/kernel/module.c
+++ b/arch/alpha/kernel/module.c
@@ -87,13 +87,12 @@ process_reloc_for_got(Elf64_Rela *rela,
}
int
-module_frob_arch_sections(const Elf64_Ehdr *hdr, const Elf64_Shdr *sechdrs,
- const char *secstrings, struct module *me)
+module_frob_arch_sections(Elf64_Ehdr *hdr, Elf64_Shdr *sechdrs,
+ char *secstrings, struct module *me)
{
struct got_entry *chains;
Elf64_Rela *rela;
- const Elf64_Shdr *esechdrs, *symtab, *s;
- Elf64_Shdr *got;
+ Elf64_Shdr *esechdrs, *symtab, *s, *got;
unsigned long nsyms, nrela, i;
esechdrs = sechdrs + hdr->e_shnum;
@@ -106,7 +105,7 @@ module_frob_arch_sections(const Elf64_Ehdr *hdr, const Elf64_Shdr *sechdrs,
if (s->sh_type == SHT_SYMTAB)
symtab = s;
else if (!strcmp(".got", secstrings + s->sh_name)) {
- got = (Elf64_Shdr *) s;
+ got = s;
me->arch.gotsecindex = s - sechdrs;
}