This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

PATCH: Use _dl_reloc_bad_type


Only ia64 deosn't use _dl_reloc_bad_type. Here is a patch.


H.J.
---
2003-08-18  H.J. Lu  <hongjiu.lu@intel.com>

	* sysdeps/ia64/dl-machine.h (elf_machine_rela): Use
	_dl_reloc_bad_type.
	(elf_machine_lazy_rel): Likewise.

--- sysdeps/ia64/dl-machine.h.ilp32	2003-07-31 23:31:30.000000000 -0700
+++ sysdeps/ia64/dl-machine.h	2003-08-18 14:27:30.000000000 -0700
@@ -582,7 +594,7 @@ elf_machine_rela (struct link_map *map,
 	    }
 #endif
 	  else
-	    assert (! "unexpected dynamic reloc type");
+	    _dl_reloc_bad_type (map, r_type, 0);
 	}
       else
 	value = 0;
@@ -599,7 +611,7 @@ elf_machine_rela (struct link_map *map,
       reloc_addr[1] = 0;
     }
   else
-    assert (! "unexpected dynamic reloc format");
+    _dl_reloc_bad_type (map, r_type, 0);
 }
 
 /* Let do-rel.h know that on IA-64 if l_addr is 0, all RELATIVE relocs
@@ -633,7 +645,7 @@ elf_machine_lazy_rel (struct link_map *m
   else if (r_type == R_IA64_NONE)
     return;
   else
-    assert (! "unexpected PLT reloc type");
+    _dl_reloc_bad_type (map, r_type, 1);
 }
 
 #endif /* RESOLVE_MAP */


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]