From f4d9a266b9434e6857083a5bce58770547bc9876 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Mon, 11 Jul 2005 22:08:35 +0000 Subject: 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) --- ldso/ldso/dl-elf.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ldso') diff --git a/ldso/ldso/dl-elf.c b/ldso/ldso/dl-elf.c index a469ddfd8..a55429615 100644 --- a/ldso/ldso/dl-elf.c +++ b/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); -- cgit v1.2.3