diff options
author | Eric Andersen <andersen@codepoet.org> | 2003-11-05 10:46:42 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2003-11-05 10:46:42 +0000 |
commit | 8b03eded3d190469cf02412bc9cfd32004bc26cf (patch) | |
tree | 348ca2aa1bf44077bf448c5cc31bcf5266c124eb /ldso | |
parent | 5d559656e4213fd5a5bf0133d5f9a943ac1f0d8e (diff) |
tiny cleanup
Diffstat (limited to 'ldso')
-rw-r--r-- | ldso/ldso/i386/elfinterp.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/ldso/ldso/i386/elfinterp.c b/ldso/ldso/i386/elfinterp.c index 5ccad3259..78591b030 100644 --- a/ldso/ldso/i386/elfinterp.c +++ b/ldso/ldso/i386/elfinterp.c @@ -114,15 +114,14 @@ unsigned long _dl_linux_resolver(struct elf_resolve *tpnt, int reloc_entry) ELF_RELOC *this_reloc; char *strtab; Elf32_Sym *symtab; + ELF_RELOC *rel_addr; int symtab_index; - char *rel_addr; char *new_addr; char **got_addr; unsigned long instr_addr; char *symname; - rel_addr = (char *) (tpnt->dynamic_info[DT_JMPREL] + tpnt->loadaddr); - + rel_addr = (ELF_RELOC *) (tpnt->dynamic_info[DT_JMPREL] + tpnt->loadaddr); this_reloc = (ELF_RELOC *)(intptr_t)(rel_addr + reloc_entry); reloc_type = ELF32_R_TYPE(this_reloc->r_info); symtab_index = ELF32_R_SYM(this_reloc->r_info); |