forked from libunwind/libunwind
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add use of libabigail for ABI checks
Added `make -C src check-abi` target to leverage libabigail 2.0 tools to check for ABI changes. Add ABI baseline files for aarch64, i686, riscv, s390x, and x86_64 Linux targets and aarch64 and x86_64 QNX SDP 7.1 targets. Used the check-abi target in the CI-unix github workflow.
- Loading branch information
Showing
40 changed files
with
28,727 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
ABI Baseline Files | ||
================== | ||
|
||
This source directory contains the ABI baseline files used to detect | ||
incompatible ABI (application binary interface) changes in libunwind. | ||
|
||
These files are generated using the **libabigail** ABI generic analysis and | ||
instrumentation library tools https://sourceware.org/libabigail/ | ||
|
||
Checking the ABI | ||
---------------- | ||
|
||
1. Install the **libabigail** tools, at least version 2.0. | ||
On Ubuntu you can use the following command | ||
``` | ||
$ sudo apt install abigail-tools | ||
``` | ||
and a similar command with other package managers or you can clone the project | ||
from upstream and build it yourself. | ||
|
||
2. Configure and build libunwind | ||
``` | ||
$ mkdir build; cd build | ||
$ ../configure CFLAGS="-g -Og" | ||
$ make -j | ||
``` | ||
|
||
3. Run the ABI checks | ||
``` | ||
$ make -C src abi-check | ||
``` | ||
A report for each .so file will be generated into the corresponding .abidiff | ||
file in the build-tree's src directory. |
Oops, something went wrong.