File tree Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Original file line number Diff line number Diff line change 15
15
READELF_CMD = os .getenv ('READELF' , '/usr/bin/readelf' )
16
16
OBJDUMP_CMD = os .getenv ('OBJDUMP' , '/usr/bin/objdump' )
17
17
OTOOL_CMD = os .getenv ('OTOOL' , '/usr/bin/otool' )
18
- NONFATAL = {} # checks which are non-fatal for now but only generate a warning
19
18
20
19
def check_ELF_PIE (executable ):
21
20
'''
@@ -279,18 +278,12 @@ def identify_executable(executable):
279
278
continue
280
279
281
280
failed = []
282
- warning = []
283
281
for (name , func ) in CHECKS [etype ]:
284
282
if not func (filename ):
285
- if name in NONFATAL :
286
- warning .append (name )
287
- else :
288
- failed .append (name )
283
+ failed .append (name )
289
284
if failed :
290
285
print ('%s: failed %s' % (filename , ' ' .join (failed )))
291
286
retval = 1
292
- if warning :
293
- print ('%s: warning %s' % (filename , ' ' .join (warning )))
294
287
except IOError :
295
288
print ('%s: cannot open' % filename )
296
289
retval = 1
You can’t perform that action at this time.
0 commit comments