Update.
authorAndreas Jaeger <aj@suse.de>
Sat, 15 Apr 2000 04:34:14 +0000 (04:34 +0000)
committerAndreas Jaeger <aj@suse.de>
Sat, 15 Apr 2000 04:34:14 +0000 (04:34 +0000)
(elf_machine_got_rel): Cast sym correctly.

ChangeLog
sysdeps/mips/dl-machine.h

index 9d43a83..d54a90e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -9,6 +9,7 @@
 
        * sysdeps/mips/dl-machine.h (elf_machine_got_rel): Initialize
        symidx correctly.
+       (elf_machine_got_rel): Cast sym correctly.
 
        * sysdeps/mips/add_n.S: Use __PIC__, add end directive.
        * sysdeps/mips/addmul_1.S: Likewise.
index 5c628ce..965cef9 100644 (file)
@@ -541,7 +541,7 @@ elf_machine_got_rel (struct link_map *map, int lazy)
   got += n;
   /* Keep track of the symbol index.  */
   symidx = map->l_info[DT_MIPS (GOTSYM)]->d_un.d_val;
-  sym = (void *) D_PTR (map, l_info[DT_SYMTAB]) + symidx;
+  sym = (ElfW(Sym) *) D_PTR (map, l_info[DT_SYMTAB]) + symidx;
   i = (map->l_info[DT_MIPS (SYMTABNO)]->d_un.d_val
        - map->l_info[DT_MIPS (GOTSYM)]->d_un.d_val);