mirror of
https://github.com/dashpay/dash.git
synced 2024-12-26 20:42:59 +01:00
release: fix parsing of BIND_NOW with older readelf
This commit is contained in:
parent
473ad1bb02
commit
cd27bf51e0
@ -94,7 +94,7 @@ def check_ELF_RELRO(executable):
|
|||||||
raise IOError('Error opening file')
|
raise IOError('Error opening file')
|
||||||
for line in stdout.split('\n'):
|
for line in stdout.split('\n'):
|
||||||
tokens = line.split()
|
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
|
have_bindnow = True
|
||||||
return have_gnu_relro and have_bindnow
|
return have_gnu_relro and have_bindnow
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user