Russ, this code works with the files that jmk sent me, which appear to be in the same format as those spit out by vl -H5. It is a major departure from how the code used to work, though. Previously it would load up elf sections by name using the SHDRs and string table. The vl -H5 files and the files jmk sent me do not have this information. So the result is libmach can load up the vl -H5 files with this patch, but probably can no longer load up some elf files that it previously was capable of loading. If you would prefer keeping the old functionality rather than the vl ELF file support, I can fix up the endian issues if someone provides me with the appropriate Irix elf files to test against.