blob: f44c5c7102086c4a54a3f0f79df8ea3a7c6909ab [file] [log] [blame]
Andrey Ponomarenkob1c490a2012-03-11 11:16:12 +04001NAME:
Andrey Ponomarenkoe3419b42016-01-28 15:06:08 +03002 ABI Compliance Checker (ABICC) - a tool for checking backward binary and source-level compatibility of a C/C++ software library.
Andrey Ponomarenko8bfdcd82015-09-08 17:58:01 +03003
4 The tool checks header files and shared objects of old and new versions and analyzes changes in API/ABI that may break binary and/or source compatibility: changes in calling stack, v-table changes, removed symbols, renamed fields, etc.
5
6 The tool is intended for developers of software libraries and Linux maintainers who are interested in ensuring backward compatibility, i.e. allow old applications to run or to be recompiled with newer library versions.
7
Andrey Ponomarenko26742a82016-09-27 18:27:08 +03008 The tool is developed by Andrey Ponomarenko. You can order additional reports for visualization of the ABI structure and high detailed binary compatibility analysis here: https://abi-laboratory.pro/
Andrey Ponomarenkob1c490a2012-03-11 11:16:12 +04009
Andrey Ponomarenkoea430402012-03-20 15:36:05 +040010INSTALL:
Andrey Ponomarenko8bfdcd82015-09-08 17:58:01 +030011 sudo make install prefix=/usr
12
13REQUIRES:
14 Perl 5
15 G++
16 GNU Binutils
17 Ctags
Andrey Ponomarenkoe3419b42016-01-28 15:06:08 +030018 ABI Dumper (0.99.14 or newer)
Andrey Ponomarenkoea430402012-03-20 15:36:05 +040019
Andrey Ponomarenko8a4c3f82016-02-21 03:45:16 +030020USAGE (WITH ABI DUMPER):
21
22 1. Library should be compiled with "-g -Og" GCC options
23 to contain DWARF debug info
24
25 2. Create ABI dumps for both library versions
26 using the ABI Dumper (https://github.com/lvc/abi-dumper) tool:
27
28 abi-dumper OLD.so -o ABI-0.dump -lver 0
29 abi-dumper NEW.so -o ABI-1.dump -lver 1
30
31 3. Compare ABI dumps to create report:
32
33 abi-compliance-checker -l NAME -old ABI-0.dump -new ABI-1.dump
34
Andrey Ponomarenkoe3419b42016-01-28 15:06:08 +030035USAGE (ORIGINAL):
Andrey Ponomarenkobf5b4972012-03-19 17:50:18 +040036 abi-compliance-checker -lib NAME -old OLD.xml -new NEW.xml
Andrey Ponomarenkob1c490a2012-03-11 11:16:12 +040037
38 OLD.xml and NEW.xml are XML-descriptors:
39
40 <version>
41 1.0
42 </version>
43
44 <headers>
45 /path/to/headers/
46 </headers>
47
48 <libs>
49 /path/to/libraries/
50 </libs>
51
Andrey Ponomarenkoe3419b42016-01-28 15:06:08 +030052ADV. USAGE:
53 For advanced usage, see doc/index.html or output of -help option.