Commit db0b3815 authored by Richard Henderson's avatar Richard Henderson

[ALPHA] Adjust signature of module_frob_arch_sections.

parent 10d43ec6
...@@ -87,13 +87,12 @@ process_reloc_for_got(Elf64_Rela *rela, ...@@ -87,13 +87,12 @@ process_reloc_for_got(Elf64_Rela *rela,
} }
int int
module_frob_arch_sections(const Elf64_Ehdr *hdr, const Elf64_Shdr *sechdrs, module_frob_arch_sections(Elf64_Ehdr *hdr, Elf64_Shdr *sechdrs,
const char *secstrings, struct module *me) char *secstrings, struct module *me)
{ {
struct got_entry *chains; struct got_entry *chains;
Elf64_Rela *rela; Elf64_Rela *rela;
const Elf64_Shdr *esechdrs, *symtab, *s; Elf64_Shdr *esechdrs, *symtab, *s, *got;
Elf64_Shdr *got;
unsigned long nsyms, nrela, i; unsigned long nsyms, nrela, i;
esechdrs = sechdrs + hdr->e_shnum; esechdrs = sechdrs + hdr->e_shnum;
...@@ -106,7 +105,7 @@ module_frob_arch_sections(const Elf64_Ehdr *hdr, const Elf64_Shdr *sechdrs, ...@@ -106,7 +105,7 @@ module_frob_arch_sections(const Elf64_Ehdr *hdr, const Elf64_Shdr *sechdrs,
if (s->sh_type == SHT_SYMTAB) if (s->sh_type == SHT_SYMTAB)
symtab = s; symtab = s;
else if (!strcmp(".got", secstrings + s->sh_name)) { else if (!strcmp(".got", secstrings + s->sh_name)) {
got = (Elf64_Shdr *) s; got = s;
me->arch.gotsecindex = s - sechdrs; me->arch.gotsecindex = s - sechdrs;
} }
......
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