[Gllug] coreutils checksums
Richard W.M. Jones
rich at annexia.org
Mon Jun 13 13:48:08 UTC 2011
On Mon, Jun 13, 2011 at 02:27:05PM +0100, James Courtier-Dutton wrote:
> On 13 June 2011 14:11, James Hawtin <oolon at ankh.org> wrote:
> > Steve Parker wrote:
> >>
> >> Am I missing something obvious (I'm sure that I am!)
> >>
> > I think what you are seeing is the effect of prelink. Due to ELF stamps if
> > you compile the same program twice the binaries will differ. Prelink i
> > believe rewrites executables slightly.
> >
>
> I would not expect the binaries to be different if they came from the
> same install package.
[...]
> "prelink" actually modifies the executable.
Yeah, prelink's design is stupid. Writing to /usr was always going to
be a bad idea; it should have been written to store metadata about
each file somewhere else, eg. under /var. Also prelink corrupts
executables that it doesn't understand :-(
However you can invoke prelink in a way that allows you to checksum
the original binary or library, ie. 'prelink -y', 'prelink --md5'
(etc) and 'rpm -V'.
Rich.
--
Richard Jones
Red Hat
--
Gllug mailing list - Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug
More information about the GLLUG
mailing list