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 <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.

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