This is the mail archive of the
libc-alpha@sourceware.cygnus.com
mailing list for the glibc project.
Re: Problem with new ld.so.cache format on 64-bit machines
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;
> }
> }
By which, of course, I mean:
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;
+ format = 1;
+ }
}
}
See, if glibc were written in Perl, I wouldn't have this problem :-)
--
David Huggins-Daines, Senior GNU/Linux Consultant, Linuxcare, Inc.
613.562.1239 desk, 613.223.0225 mobile
dhd@linuxcare.com, http://www.linuxcare.com/
Linuxcare. Support for the revolution.