diff options
author | fanquake <fanquake@gmail.com> | 2023-10-10 11:22:14 +0100 |
---|---|---|
committer | fanquake <fanquake@gmail.com> | 2023-10-10 11:22:14 +0100 |
commit | 092daa2f9524e371ee6b505519d9b722a2c6361a (patch) | |
tree | 893dd9f8ac1041f743cc49667853670bd83bbe48 /contrib/devtools | |
parent | cefbf0bc20dfe932240877b3096300c8c241ad61 (diff) | |
download | bitcoin-092daa2f9524e371ee6b505519d9b722a2c6361a.tar.xz |
contrib: add test for macOS linker version to symbol-check
Diffstat (limited to 'contrib/devtools')
-rwxr-xr-x | contrib/devtools/symbol-check.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/contrib/devtools/symbol-check.py b/contrib/devtools/symbol-check.py index c5f0a761f1..a3d00bec95 100755 --- a/contrib/devtools/symbol-check.py +++ b/contrib/devtools/symbol-check.py @@ -240,6 +240,11 @@ def check_MACHO_sdk(binary) -> bool: return True return False +def check_MACHO_ld64(binary) -> bool: + if binary.build_version.tools[0].version == [711, 0, 0]: + return True + return False + def check_PE_libraries(binary) -> bool: ok: bool = True for dylib in binary.libraries: @@ -278,6 +283,7 @@ lief.EXE_FORMATS.MACHO: [ ('DYNAMIC_LIBRARIES', check_MACHO_libraries), ('MIN_OS', check_MACHO_min_os), ('SDK', check_MACHO_sdk), + ('LD64', check_MACHO_ld64), ], lief.EXE_FORMATS.PE: [ ('DYNAMIC_LIBRARIES', check_PE_libraries), |