Lines Matching full:path
33 def strip(path): argument
34 proc = subprocess.run(["readelf", "--file-header", "--sections", path],
39 if name == ".text" and os.path.basename(path) in ["vdso", "vdso.so", "libc.so"]:
43 print("Warning: {} not found in {}".format(name, path))
46 with open(path, "r+b") as f:
58 with open(path, 'rb') as src, gzip.open(path + ".gz", 'wb') as dst:
60 os.remove(path)
67 for path in args.target:
68 if os.path.isdir(path):
69 for path in glob.glob(os.path.join(path, "**/*"), recursive=True):
70 if os.path.isfile(path) and open(path, "rb").read(4) == b"\x7FELF":
71 strip(path)
73 strip(path)