This is the mail archive of the libc-alpha@sourceware.cygnus.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]

Re: Problem with new ld.so.cache format on 64-bit machines


>>>>> David Huggins-Daines writes:

David> David Huggins-Daines <dhd@linuxcare.com> writes:
>> This fix works for me:
>> 
>> if (!memcmp (cache_new->magic, CACHEMAGIC_NEW, sizeof CACHEMAGIC_NEW - 1)
>> && !memcmp (cache_new->version, CACHE_VERSION,
>> sizeof CACHE_VERSION - 1))
>> +	    cache_data = (const char *) cache_new;
>> format = 1;
>> }
>> }

David> By which, of course, I mean:


David> 	  if (!memcmp (cache_new->magic, CACHEMAGIC_NEW, sizeof CACHEMAGIC_NEW - 1)
David> 	      && !memcmp (cache_new->version, CACHE_VERSION,
David> 			  sizeof CACHE_VERSION - 1))
David> + 	    {
David> + 	      cache_data = (const char *) cache_new;
David> - 	    format = 1;
David> +	      format = 1;
David> +	    }
David>  	}
David>      }

Ok, that looks fine, I've added this now.  I'll look at this and the
patch you send me privatly tomorrow again and double check everything.

Thanks,
Andreas
-- 
 Andreas Jaeger
  SuSE Labs aj@suse.de
   private aj@arthur.inka.de


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