blob: cc417689daff9f54543af4b9f4d0146c16861b9e [file] [log] [blame]
Andrey Ponomarenkob3ffe4c2013-05-24 14:31:47 +04001NAME:
Andrey Ponomarenkof85c7fd2015-12-11 23:55:02 +03002 ABI Dumper a tool to dump ABI of an ELF object containing DWARF debug info.
Andrey Ponomarenkob3ffe4c2013-05-24 14:31:47 +04003
4 The tool is intended to be used with ABI Compliance Checker tool for tracking
5 ABI changes of a C/C++ library or kernel module.
Andrey Ponomarenko9b1ec762015-09-08 15:33:41 +03006
7 The tool is developed by Andrey Ponomarenko: http://abi-laboratory.pro/
Andrey Ponomarenkob3ffe4c2013-05-24 14:31:47 +04008
9INSTALL:
Andrey Ponomarenko9b1ec762015-09-08 15:33:41 +030010 sudo make install prefix=/usr
Andrey Ponomarenkob3ffe4c2013-05-24 14:31:47 +040011
12REQUIRES:
Andrey Ponomarenkob3ffe4c2013-05-24 14:31:47 +040013 Perl 5 (5.8 or newer)
Andrey Ponomarenkoedb52962015-04-12 19:14:06 +030014 Elfutils (eu-readelf)
Andrey Ponomarenkob3ffe4c2013-05-24 14:31:47 +040015 Vtable Dumper (1.0 or newer, https://github.com/lvc/vtable-dumper)
Andrey Ponomarenko7c0875f2016-05-10 17:34:54 +030016 Universal Ctags
Andrey Ponomarenkob3ffe4c2013-05-24 14:31:47 +040017
18USAGE:
19 abi-dumper libTest.so -o ABI.dump
20 abi-dumper Module.ko.debug
21
22EXAMPLES:
23 abi-dumper lib/libssh.so.3
24 abi-dumper drm/nouveau/nouveau.ko.debug
25
26NOTE:
Andrey Ponomarenko81cb4d72015-11-12 16:15:12 +030027 Input objects should be compiled with -g -Og additional options to contain DWARF debug info.
Andrey Ponomarenkob3ffe4c2013-05-24 14:31:47 +040028
29ABI CHECK:
30 abi-dumper libTest.so.0 -o ABIv0.dump
31 abi-dumper libTest.so.1 -o ABIv1.dump
32 abi-compliance-checker -l libTest -old ABIv0.dump -new ABIv1.dump
Andrey Ponomarenkof85c7fd2015-12-11 23:55:02 +030033
34FILTER PUBLIC ABI:
35 abi-dumper libTest.so -public-headers PATH
Andrey Ponomarenkofef4a9a2016-07-25 17:23:00 +030036 PATH path to the install tree of a library
Andrey Ponomarenkof85c7fd2015-12-11 23:55:02 +030037
Andrey Ponomarenkob3ffe4c2013-05-24 14:31:47 +040038COMPATIBILITY:
Andrey Ponomarenkofef4a9a2016-07-25 17:23:00 +030039 ABI Compliance Checker >= 1.99.14 (https://github.com/lvc/abi-compliance-checker)
Andrey Ponomarenkob3ffe4c2013-05-24 14:31:47 +040040
41ADV. USAGE:
Andrey Ponomarenkof85c7fd2015-12-11 23:55:02 +030042 For advanced usage, see output of --help option.