mirror of
https://github.com/apache/nuttx.git
synced 2026-02-05 19:56:43 +08:00
abi_check.py:Check ABI compatibility between different ELF versions.
1. The input consists of multiple static libraries and an ELF file. The tool searches for external APIs used by the static libraries, then locates these API function signatures in the ELF file, and outputs the results as a JSON file. 2. Using the first feature, with the static libraries unchanged, the tool can take a new ELF file and an old ELF file as input, output two JSON files, and compare the function signatures of functions with the same name in the two JSON files. The comparison includes return values, parameters, and if they are structures, it also compares the structure size, member offsets, member types, etc. 3.When the input is a single ELF file, the tool can check if structures with the same name have different members. Signed-off-by: anjiahao <anjiahao@xiaomi.com>
This commit is contained in:
594
tools/abi_check.py
Executable file
594
tools/abi_check.py
Executable file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user