Ignore non-elf files in depfixer.

pull/68/merge
Jussi Pakkanen 10 years ago
parent 8366ad1e47
commit 717abc99fb
  1. 4
      depfixer.py

@ -113,8 +113,10 @@ class Elf():
def detect_elf_type(self):
data = self.bf.read(6)
if data[1:4] != b'ELF':
# This script gets called to non-elf targets too
# so just ignore them.
print('File "%s" is not an ELF file.' % self.bfile)
sys.exit(1)
sys.exit(0)
if data[4] == 1:
ptrsize = 32
elif data[4] == 2:

Loading…
Cancel
Save