aboutsummaryrefslogtreecommitdiff
path: root/contrib/devtools/security-check.py
diff options
context:
space:
mode:
authorCory Fields <cory-nospam-@coryfields.com>2016-01-26 14:50:50 -0500
committerCory Fields <cory-nospam-@coryfields.com>2016-01-26 23:07:04 -0500
commitcd27bf51e06a8d79790a631696355bd05751b0aa (patch)
tree0adbe13e6348ddbf89d2085fe61679892a2a7e55 /contrib/devtools/security-check.py
parent473ad1bb026986db2569fff278d8957363f758f8 (diff)
downloadbitcoin-cd27bf51e06a8d79790a631696355bd05751b0aa.tar.xz
release: fix parsing of BIND_NOW with older readelf
Diffstat (limited to 'contrib/devtools/security-check.py')
-rwxr-xr-xcontrib/devtools/security-check.py2
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