Subject: Re: RelCache (aka ELF prebinding) news
To: Havard Eidnes <he@netbsd.org>
From: Thor Lancelot Simon <tls@rek.tjls.com>
List: tech-userlevel
Date: 12/01/2002 14:53:30
On Sun, Dec 01, 2002 at 08:51:42PM +0100, Havard Eidnes wrote:
> > How much of that time is spent in the MD5 checksum routine? How much time
> > would you expect to be spent in that routine on a slower processor with an
> > MMU of similar efficiency?
> >
> > Why not use crc32 or adler32? A cryptographic checksum is not necessary
> > here and seems inappropriate given that it's quite expensive.
>
> I don't think the computation of the checksum is done on program load by
> ld.elf_so, but rather only when setting up a program for prebinding. I
> understood that the checksums are saved in the new special sections in
> the executable and libraries when the prebinding is set up. I may have
> misunderstood, though.
How can you know whether the checksum matches or not if you don't compute
it again?
Thor