mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-05-21 09:22:18 +02:00
scripts: add MACHO NOUNDEFS check to security-check.py
This commit is contained in:
parent
4ca92dc6d3
commit
7c9e821c4e
@ -188,6 +188,15 @@ def check_MACHO_PIE(executable) -> bool:
|
|||||||
return True
|
return True
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
def check_MACHO_NOUNDEFS(executable) -> bool:
|
||||||
|
'''
|
||||||
|
Check for no undefined references.
|
||||||
|
'''
|
||||||
|
flags = get_MACHO_executable_flags(executable)
|
||||||
|
if 'NOUNDEFS' in flags:
|
||||||
|
return True
|
||||||
|
return False
|
||||||
|
|
||||||
CHECKS = {
|
CHECKS = {
|
||||||
'ELF': [
|
'ELF': [
|
||||||
('PIE', check_ELF_PIE),
|
('PIE', check_ELF_PIE),
|
||||||
@ -202,6 +211,7 @@ CHECKS = {
|
|||||||
],
|
],
|
||||||
'MACHO': [
|
'MACHO': [
|
||||||
('PIE', check_MACHO_PIE),
|
('PIE', check_MACHO_PIE),
|
||||||
|
('NOUNDEFS', check_MACHO_NOUNDEFS),
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user