[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: ld.so 1.9.11-x debian



Florian Lohoff wrote:
> does anyone got a running version for this package ?
> 
> My one core-dumps on "ldconfig" ...

Please try this patch:
----------------------------------------------------------------
--- ld.so-1.9.11.org/util/readelf.c     Sun Apr 26 20:42:40 1998
+++ ld.so-1.9.11/util/readelf.c Wed Oct 20 14:22:28 1999
@@ -90,7 +90,7 @@
       (int)(dpnt+dynamic_size) > (int)(header + st.st_size))
     goto skip;
   
-  for (i = 0; i < dynamic_size; i++)
+  while (dpnt->d_tag != DT_NULL)
   {
     if (dpnt->d_tag == DT_STRTAB)
       strtab_val = dpnt->d_un.d_val;
@@ -101,7 +101,7 @@
     goto skip;
 
   dpnt = (struct dynamic *) &header[dynamic_addr];
-  for (i = 0; i < dynamic_size; i++)
+  while (dpnt->d_tag != DT_NULL)
   {
     if (dpnt->d_tag == DT_SONAME || dpnt->d_tag == DT_NEEDED)
     {
----------------------------------------------------------------

Regards
Peter


Reply to: