Add support for ELF files and files of larger size