validate elf magic number