Andrey Ponomarenko | b1c490a | 2012-03-11 11:16:12 +0400 | [diff] [blame] | 1 | NAME: |
Andrey Ponomarenko | e3419b4 | 2016-01-28 15:06:08 +0300 | [diff] [blame] | 2 | ABI Compliance Checker (ABICC) - a tool for checking backward binary and source-level compatibility of a C/C++ software library. |
Andrey Ponomarenko | 8bfdcd8 | 2015-09-08 17:58:01 +0300 | [diff] [blame] | 3 | |
| 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 Ponomarenko | 26742a8 | 2016-09-27 18:27:08 +0300 | [diff] [blame] | 8 | 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 Ponomarenko | b1c490a | 2012-03-11 11:16:12 +0400 | [diff] [blame] | 9 | |
Andrey Ponomarenko | ea43040 | 2012-03-20 15:36:05 +0400 | [diff] [blame] | 10 | INSTALL: |
Andrey Ponomarenko | 8bfdcd8 | 2015-09-08 17:58:01 +0300 | [diff] [blame] | 11 | sudo make install prefix=/usr |
| 12 | |
| 13 | REQUIRES: |
| 14 | Perl 5 |
| 15 | G++ |
| 16 | GNU Binutils |
| 17 | Ctags |
Andrey Ponomarenko | dd17216 | 2016-10-04 19:41:25 +0300 | [diff] [blame^] | 18 | ABI Dumper (0.99.15 or newer) |
Andrey Ponomarenko | ea43040 | 2012-03-20 15:36:05 +0400 | [diff] [blame] | 19 | |
Andrey Ponomarenko | 8a4c3f8 | 2016-02-21 03:45:16 +0300 | [diff] [blame] | 20 | USAGE (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 |
Andrey Ponomarenko | dd17216 | 2016-10-04 19:41:25 +0300 | [diff] [blame^] | 30 | |
| 31 | 3. You can filter public ABI with the help of |
| 32 | additional -public-headers option of the ABI Dumper tool. |
| 33 | |
| 34 | 4. Compare ABI dumps to create report: |
Andrey Ponomarenko | 8a4c3f8 | 2016-02-21 03:45:16 +0300 | [diff] [blame] | 35 | |
| 36 | abi-compliance-checker -l NAME -old ABI-0.dump -new ABI-1.dump |
| 37 | |
Andrey Ponomarenko | e3419b4 | 2016-01-28 15:06:08 +0300 | [diff] [blame] | 38 | USAGE (ORIGINAL): |
Andrey Ponomarenko | bf5b497 | 2012-03-19 17:50:18 +0400 | [diff] [blame] | 39 | abi-compliance-checker -lib NAME -old OLD.xml -new NEW.xml |
Andrey Ponomarenko | b1c490a | 2012-03-11 11:16:12 +0400 | [diff] [blame] | 40 | |
| 41 | OLD.xml and NEW.xml are XML-descriptors: |
| 42 | |
| 43 | <version> |
| 44 | 1.0 |
| 45 | </version> |
| 46 | |
| 47 | <headers> |
| 48 | /path/to/headers/ |
| 49 | </headers> |
| 50 | |
| 51 | <libs> |
| 52 | /path/to/libraries/ |
| 53 | </libs> |
| 54 | |
Andrey Ponomarenko | e3419b4 | 2016-01-28 15:06:08 +0300 | [diff] [blame] | 55 | ADV. USAGE: |
| 56 | For advanced usage, see doc/index.html or output of -help option. |