core_elf_fdopen
if (core_elf_fdopen(efp, type, perr) == 0)
if (core_elf_fdopen(&core, ET_CORE, perr) == -1)