Skip to content

Commit 092daa2

Browse files
committed
contrib: add test for macOS linker version to symbol-check
1 parent cefbf0b commit 092daa2

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

contrib/devtools/symbol-check.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,11 @@ def check_MACHO_sdk(binary) -> bool:
240240
return True
241241
return False
242242

243+
def check_MACHO_ld64(binary) -> bool:
244+
if binary.build_version.tools[0].version == [711, 0, 0]:
245+
return True
246+
return False
247+
243248
def check_PE_libraries(binary) -> bool:
244249
ok: bool = True
245250
for dylib in binary.libraries:
@@ -278,6 +283,7 @@ def check_ELF_ABI(binary) -> bool:
278283
('DYNAMIC_LIBRARIES', check_MACHO_libraries),
279284
('MIN_OS', check_MACHO_min_os),
280285
('SDK', check_MACHO_sdk),
286+
('LD64', check_MACHO_ld64),
281287
],
282288
lief.EXE_FORMATS.PE: [
283289
('DYNAMIC_LIBRARIES', check_PE_libraries),

0 commit comments

Comments
 (0)