We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4ca92dc commit 7c9e821Copy full SHA for 7c9e821
contrib/devtools/security-check.py
@@ -188,6 +188,15 @@ def check_MACHO_PIE(executable) -> bool:
188
return True
189
return False
190
191
+def check_MACHO_NOUNDEFS(executable) -> bool:
192
+ '''
193
+ Check for no undefined references.
194
195
+ flags = get_MACHO_executable_flags(executable)
196
+ if 'NOUNDEFS' in flags:
197
+ return True
198
+ return False
199
+
200
CHECKS = {
201
'ELF': [
202
('PIE', check_ELF_PIE),
@@ -202,6 +211,7 @@ def check_MACHO_PIE(executable) -> bool:
211
],
203
212
'MACHO': [
204
213
('PIE', check_MACHO_PIE),
214
+ ('NOUNDEFS', check_MACHO_NOUNDEFS),
205
215
]
206
216
}
207
217
0 commit comments