Browse Source

Some very minor cleanups

Eric Andersen 24 years ago
parent
commit
d3fda8f182
4 changed files with 9 additions and 8 deletions
  1. 2 2
      ldso/ldso/i386/dl-sysdep.h
  2. 3 2
      ldso/ldso/i386/elfinterp.c
  3. 2 2
      ldso/ldso/i386/ld_sysdep.h
  4. 2 2
      ldso/ldso/i386/sysdep.h

+ 2 - 2
ldso/ldso/i386/dl-sysdep.h

@@ -25,8 +25,8 @@
  */
 #define INIT_GOT(GOT_BASE,MODULE) \
 {				\
-  GOT_BASE[2] = (int) _dl_linux_resolve; \
-  GOT_BASE[1] = (int) MODULE; \
+  GOT_BASE[2] = (unsigned long) _dl_linux_resolve; \
+  GOT_BASE[1] = (unsigned long) MODULE; \
 }
 
 /*

+ 3 - 2
ldso/ldso/i386/elfinterp.c

@@ -305,8 +305,9 @@ int _dl_parse_copy_information(struct dyn_elf *xpnt, unsigned long rel_addr,
 				_dl_symbol(strtab + symtab[symtab_index].st_name))
 				continue;
 
-			symbol_addr = (unsigned long) _dl_find_hash(strtab + symtab[symtab_index].st_name, 
-					xpnt->next, (int) reloc_addr, NULL, 1);
+			symbol_addr = (unsigned long) _dl_find_hash(strtab + 
+				symtab[symtab_index].st_name, xpnt->next, 
+				(unsigned long) reloc_addr, NULL, 1);
 			if (!symbol_addr) {
 				_dl_fdprintf(2, "%s: can't resolve symbol '%s'\n", 
 					_dl_progname, strtab + symtab[symtab_index].st_name);

+ 2 - 2
ldso/ldso/i386/ld_sysdep.h

@@ -25,8 +25,8 @@
  */
 #define INIT_GOT(GOT_BASE,MODULE) \
 {				\
-  GOT_BASE[2] = (int) _dl_linux_resolve; \
-  GOT_BASE[1] = (int) MODULE; \
+  GOT_BASE[2] = (unsigned long) _dl_linux_resolve; \
+  GOT_BASE[1] = (unsigned long) MODULE; \
 }
 
 /*

+ 2 - 2
ldso/ldso/i386/sysdep.h

@@ -25,8 +25,8 @@
  */
 #define INIT_GOT(GOT_BASE,MODULE) \
 {				\
-  GOT_BASE[2] = (int) _dl_linux_resolve; \
-  GOT_BASE[1] = (int) MODULE; \
+  GOT_BASE[2] = (unsigned long) _dl_linux_resolve; \
+  GOT_BASE[1] = (unsigned long) MODULE; \
 }
 
 /*