[Bug default/19067] New: Add an 'abihash' utility that computes a stable hash of a library ABI

andrew.c.morrow at gmail dot com sourceware-bugzilla@sourceware.org
Thu Jan 1 00:00:00 GMT 2015


https://sourceware.org/bugzilla/show_bug.cgi?id=19067

            Bug ID: 19067
           Summary: Add an 'abihash' utility that computes a stable hash
                    of a library ABI
           Product: libabigail
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: default
          Assignee: dodji at redhat dot com
          Reporter: andrew.c.morrow at gmail dot com
                CC: libabigail at sourceware dot org
  Target Milestone: ---

It would be useful in build systems like SCons and CMake to be able to elide
unnecessary linking of dependent shared libraries if a dependency only changed
implementation, not ABI.

One way to do that, for SCons, is described here:

http://comments.gmane.org/gmane.comp.programming.tools.scons.user/26967

The technique uses the output of abidw, but simply feeds that into md5 to
generate a hash, and then changes the SCons out-of-date detection for shared
libraries to consider a library as up to date if the ABI hashes of its
dependencies are unchanged.

Presumably, an 'abihash' utility could be somewhat faster, as it wouldn't need
to emit XML at all and could simply update an internal hash state as it walked
the ABI.

The utility should return the same md5 (or other hash?) value for two libraries
if they have an identical ABI, and different hashes if the ABIs differ.

-- 
You are receiving this mail because:
You are on the CC list for the bug.



More information about the Libabigail mailing list