switch elf_core_write_extra_phdrs() to dump_emit()