[ELF] add NMAGIC/OMAGIC support