Subject: Re: New idea on ELF prebinding
To: Martin Husemann <email@example.com>
From: Bang Jun-Young <firstname.lastname@example.org>
Date: 11/23/2002 14:46:55
On Sat, Nov 23, 2002 at 02:57:05AM +0100, Martin Husemann wrote:
> On Fri, Nov 22, 2002 at 10:29:22PM +0100, Joel Wilsson wrote:
> > I know this lies in the (hopefully not very distant) future, but my first
> > thought is that this information would be ideal to store in an extended
> > attribute in UFS2.
> Uhh, I realy hope we still would be able to (fast) execute binaries from
> things like CD-ROM.
You still can execute binaries on CD-ROM even if caches are stored as
- If it's a kind of "Live CD" file system, you can put /var/db/reloc and
cache files in the CD-ROM when you burns it.
- If you mount a CD-ROM to local file system, caches will be stored under
/var/db/reloc. There's nothing to worry about (I believe hash collision
can be avoided if MD5 is used).
That doesn't mean that "one file" method is not good, though. I think it
better; it's just not easy to implement without breaking ELF semantics.
So I'm going to:
- try to implement prebinding as separate cache files method first,
- and once it's proven to work, I'll try with "one file" method.
I'll come up again with "how Red Hat implemented prelinking" soon.
Bang Jun-Young <email@example.com>