aboutsummaryrefslogtreecommitdiff
path: root/contrib/devtools/README.md
diff options
context:
space:
mode:
authorfanquake <fanquake@gmail.com>2020-01-03 19:34:58 +0800
committerfanquake <fanquake@gmail.com>2020-01-04 11:24:42 +0800
commitc491368d8cfddf3a5b6d574f10ed67492fcecbed (patch)
tree965cc7283e053f501c1c45b181376dfed5c8c08b /contrib/devtools/README.md
parent76bf97213f4b153dd3ccf1314088a73c4804601d (diff)
downloadbitcoin-c491368d8cfddf3a5b6d574f10ed67492fcecbed.tar.xz
scripts: add MACHO dylib checking to symbol-check.py
Diffstat (limited to 'contrib/devtools/README.md')
-rw-r--r--contrib/devtools/README.md14
1 files changed, 9 insertions, 5 deletions
diff --git a/contrib/devtools/README.md b/contrib/devtools/README.md
index c35affac59..515a0d8fc6 100644
--- a/contrib/devtools/README.md
+++ b/contrib/devtools/README.md
@@ -103,17 +103,21 @@ Perform basic security checks on a series of executables.
symbol-check.py
===============
-A script to check that the (Linux) executables produced by gitian only contain
-allowed gcc, glibc and libstdc++ version symbols. This makes sure they are
-still compatible with the minimum supported Linux distribution versions.
+A script to check that the executables produced by gitian only contain
+certain symbols and are only linked against allowed libraries.
+
+For Linux this means checking for allowed gcc, glibc and libstdc++ version symbols.
+This makes sure they are still compatible with the minimum supported distribution versions.
+
+For macOS we check that the executables are only linked against libraries we allow.
Example usage after a gitian build:
find ../gitian-builder/build -type f -executable | xargs python3 contrib/devtools/symbol-check.py
-If only supported symbols are used the return value will be 0 and the output will be empty.
+If no errors occur the return value will be 0 and the output will be empty.
-If there are 'unsupported' symbols, the return value will be 1 a list like this will be printed:
+If there are any errors the return value will be 1 and output like this will be printed:
.../64/test_bitcoin: symbol memcpy from unsupported version GLIBC_2.14
.../64/test_bitcoin: symbol __fdelt_chk from unsupported version GLIBC_2.15