diff options
author | Cory Fields <cory-nospam-@coryfields.com> | 2016-01-26 14:50:50 -0500 |
---|---|---|
committer | Cory Fields <cory-nospam-@coryfields.com> | 2016-01-26 23:07:04 -0500 |
commit | cd27bf51e06a8d79790a631696355bd05751b0aa (patch) | |
tree | 0adbe13e6348ddbf89d2085fe61679892a2a7e55 | |
parent | 473ad1bb026986db2569fff278d8957363f758f8 (diff) |
release: fix parsing of BIND_NOW with older readelf
-rwxr-xr-x | contrib/devtools/security-check.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/devtools/security-check.py b/contrib/devtools/security-check.py index fe5dc9ad89..0319f739c4 100755 --- a/contrib/devtools/security-check.py +++ b/contrib/devtools/security-check.py @@ -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 |