Subject: Re: RelCache (aka ELF prebinding) news
To: Jason R Thorpe <thorpej@wasabisystems.com>
From: Bang Jun-Young <junyoung@netbsd.org>
List: tech-kern
Date: 12/04/2002 03:51:39
On Tue, Dec 03, 2002 at 10:25:20AM -0800, Jason R Thorpe wrote:
> On Wed, Dec 04, 2002 at 03:17:43AM +0900, Bang Jun-Young wrote:
>
> > Filename can be easily changed, so it won't be used. And using length is
> > basically a good idea but you need a bit tricky method to calculate
> > actual file length before relcache is appended to the file.
>
> We're talking "filename and size of library", right? If so, why would the
> filename change (that would break DT_NEEDED entries in the binary) and why
> would the file size be difficult to compute?
Even if you use the filename, you still have to compare the checksum. But
if you compare the checksum, you don't have to compare the filename.
Jun-Young
--
Bang Jun-Young <junyoung@netbsd.org>