Skip to content

Commit

Permalink
release: fix parsing of BIND_NOW with older readelf
Browse files Browse the repository at this point in the history
  • Loading branch information
theuni committed Jan 27, 2016
1 parent 473ad1b commit cd27bf5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contrib/devtools/security-check.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def check_ELF_RELRO(executable):
raise IOError('Error opening file')
for line in stdout.split('\n'):
tokens = line.split()
if len(tokens)>1 and tokens[1] == '(BIND_NOW)':
if len(tokens)>1 and tokens[1] == '(BIND_NOW)' or (len(tokens)>2 and tokens[1] == '(FLAGS)' and 'BIND_NOW' in tokens[2]):
have_bindnow = True
return have_gnu_relro and have_bindnow

Expand Down

0 comments on commit cd27bf5

Please sign in to comment.