Fix potential use-after-frees in FreeBSD getpages and setattr VOPs
[zfs.git] / config / Abigail.am
blob94687b90eef23c30c6b7fab917eb9b0429258b68
2 # When performing an ABI check the following options are applied:
4 # --no-unreferenced-symbols: Exclude symbols which are not referenced by
5 # any debug information.  Without this _init() and _fini() are incorrectly
6 # reported on CentOS7 for libuutil.so.
8 # --headers-dir1: Limit ABI checks to public OpenZFS headers, otherwise
9 # changes in public system headers are also reported.
11 # --suppressions: Honor a suppressions file for each library to provide
12 # a mechanism for suppressing harmless warnings.
15 PHONY += checkabi storeabi
17 checkabi:
18         for lib in $(lib_LTLIBRARIES) ; do \
19                 abidiff --no-unreferenced-symbols \
20                     --headers-dir1 ../../include \
21                     --suppressions $${lib%.la}.suppr \
22                     $${lib%.la}.abi .libs/$${lib%.la}.so ; \
23         done
25 storeabi:
26         cd .libs ; \
27         for lib in $(lib_LTLIBRARIES) ; do \
28                 abidw --no-show-locs \
29                 --no-corpus-path \
30                 --no-comp-dir-path \
31                 --type-id-style hash \
32                 $${lib%.la}.so > ../$${lib%.la}.abi ; \
33         done