ElfParser: don't use generateElf or hashlib if result isn't used