summaryrefslogtreecommitdiffhomepage
path: root/vdso/check_vdso.py
diff options
context:
space:
mode:
Diffstat (limited to 'vdso/check_vdso.py')
-rw-r--r--vdso/check_vdso.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/vdso/check_vdso.py b/vdso/check_vdso.py
index f1288e0c2..9a3142ab8 100644
--- a/vdso/check_vdso.py
+++ b/vdso/check_vdso.py
@@ -65,7 +65,7 @@ def CheckSegments(vdso_path):
Args:
vdso_path: Path to VDSO binary.
"""
- output = subprocess.check_output(["readelf", "-lW", vdso_path])
+ output = subprocess.check_output(["readelf", "-lW", vdso_path]).decode()
lines = output.split("\n")
segments = []
@@ -143,7 +143,7 @@ def CheckData(vdso_path):
Args:
vdso_path: Path to VDSO binary.
"""
- output = subprocess.check_output(["readelf", "-SW", vdso_path])
+ output = subprocess.check_output(["readelf", "-SW", vdso_path]).decode()
lines = output.split("\n")
found_text = False
@@ -179,7 +179,7 @@ def CheckRelocs(vdso_path):
Args:
vdso_path: Path to VDSO binary.
"""
- output = subprocess.check_output(["readelf", "-r", vdso_path])
+ output = subprocess.check_output(["readelf", "-r", vdso_path]).decode()
if output.strip() != "There are no relocations in this file.":
Fatal("VDSO contains relocations: %s", output)