Skip to content

Commit cd27bf5

Browse files
committed
release: fix parsing of BIND_NOW with older readelf
1 parent 473ad1b commit cd27bf5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contrib/devtools/security-check.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ def check_ELF_RELRO(executable):
9494
raise IOError('Error opening file')
9595
for line in stdout.split('\n'):
9696
tokens = line.split()
97-
if len(tokens)>1 and tokens[1] == '(BIND_NOW)':
97+
if len(tokens)>1 and tokens[1] == '(BIND_NOW)' or (len(tokens)>2 and tokens[1] == '(FLAGS)' and 'BIND_NOW' in tokens[2]):
9898
have_bindnow = True
9999
return have_gnu_relro and have_bindnow
100100

0 commit comments

Comments
 (0)