Browse Source

declare reloc_addr as ElfW(Addr) instead of Word since it is an Addr, not a Word (and it will truncate addresses on 64bit hosts)

Mike Frysinger 19 years ago
parent
commit
f4d9a266b9
1 changed files with 2 additions and 1 deletions
  1. 2 1
      ldso/ldso/dl-elf.c

+ 2 - 1
ldso/ldso/dl-elf.c

@@ -721,7 +721,8 @@ int _dl_fixup(struct dyn_elf *rpnt, int now_flag)
 {
 	int goof = 0;
 	struct elf_resolve *tpnt;
-	ElfW(Word) reloc_size, reloc_addr, relative_count;
+	ElfW(Word) reloc_size, relative_count;
+	ElfW(Addr) reloc_addr;
 
 	if (rpnt->next)
 		goof += _dl_fixup(rpnt->next, now_flag);