From cefbf0bc20dfe932240877b3096300c8c241ad61 Mon Sep 17 00:00:00 2001 From: fanquake Date: Tue, 10 Oct 2023 11:12:23 +0100 Subject: [PATCH 1/2] depends: update LD64_VERSION to 711 I forgot to do this in 7d5815293ed8a3dea68b61a78944e410f02b147f. --- depends/hosts/darwin.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/depends/hosts/darwin.mk b/depends/hosts/darwin.mk index fa6d6d4b8b4fb..ecd45540cf957 100644 --- a/depends/hosts/darwin.mk +++ b/depends/hosts/darwin.mk @@ -2,7 +2,7 @@ OSX_MIN_VERSION=11.0 OSX_SDK_VERSION=11.0 XCODE_VERSION=12.2 XCODE_BUILD_ID=12B45b -LD64_VERSION=609 +LD64_VERSION=711 OSX_SDK=$(SDK_PATH)/Xcode-$(XCODE_VERSION)-$(XCODE_BUILD_ID)-extracted-SDK-with-libcxx-headers From 092daa2f9524e371ee6b505519d9b722a2c6361a Mon Sep 17 00:00:00 2001 From: fanquake Date: Tue, 10 Oct 2023 11:22:14 +0100 Subject: [PATCH 2/2] contrib: add test for macOS linker version to symbol-check --- contrib/devtools/symbol-check.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/contrib/devtools/symbol-check.py b/contrib/devtools/symbol-check.py index c5f0a761f1e8f..a3d00bec95746 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 @@ def check_ELF_ABI(binary) -> bool: ('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),