Problem with new ld.so.cache format on 64-bit machines
David Huggins-Daines
dhd@linuxcare.com
Mon May 15 10:16:00 GMT 2000
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.
More information about the Libc-alpha
mailing list