mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-10 03:47:29 -03:00
scripts: add MACHO NOUNDEFS check to security-check.py
This commit is contained in:
parent
4ca92dc6d3
commit
7c9e821c4e
1 changed files with 10 additions and 0 deletions
|
@ -188,6 +188,15 @@ def check_MACHO_PIE(executable) -> bool:
|
|||
return True
|
||||
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 = {
|
||||
'ELF': [
|
||||
('PIE', check_ELF_PIE),
|
||||
|
@ -202,6 +211,7 @@ CHECKS = {
|
|||
],
|
||||
'MACHO': [
|
||||
('PIE', check_MACHO_PIE),
|
||||
('NOUNDEFS', check_MACHO_NOUNDEFS),
|
||||
]
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue