detect elf or coff object and load/relocate/run the object by respective function