summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2001-07-03 18:22:05 +0000
committerEric Andersen <andersen@codepoet.org>2001-07-03 18:22:05 +0000
commit58a6cf2c7add64af1c17c161a61f9307ffa3bad6 (patch)
treee2a403ec6192bc768dad392649c2e576071007b2
parenta8c44154ec0c53668cf9c3140d018cee30f1586c (diff)
Scrub a couple of ints
-rw-r--r--ldso/ldso/i386/elfinterp.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/ldso/ldso/i386/elfinterp.c b/ldso/ldso/i386/elfinterp.c
index 9fc88eed9..0dacb1165 100644
--- a/ldso/ldso/i386/elfinterp.c
+++ b/ldso/ldso/i386/elfinterp.c
@@ -80,7 +80,8 @@ unsigned long _dl_linux_resolver(struct elf_resolve *tpnt, int reloc_entry)
};
/* Address of jump instruction to fix up */
- instr_addr = ((int) this_reloc->r_offset + (int) tpnt->loadaddr);
+ instr_addr = ((unsigned long) this_reloc->r_offset +
+ (unsigned long) tpnt->loadaddr);
got_addr = (char **) instr_addr;
#ifdef DEBUG
@@ -90,7 +91,7 @@ unsigned long _dl_linux_resolver(struct elf_resolve *tpnt, int reloc_entry)
/* Get the address of the GOT entry */
new_addr = _dl_find_hash(strtab + symtab[symtab_index].st_name,
- tpnt->symbol_scope, (int) got_addr, tpnt, 0);
+ tpnt->symbol_scope, (unsigned long) got_addr, tpnt, 0);
if (!new_addr) {
_dl_fdprintf(2, "%s: can't resolve symbol '%s'\n",
_dl_progname, strtab + symtab[symtab_index].st_name);