> const char ELF_magic[16] = "\x7f\x45\x4c\x46\2\1\1\xd\2\0\0\0\0\0\0"; > > Yuck!!! You included ELFDEF, why not use it? Certainly won't work for any big-endian version of OpenVMS... ;)