* elfcore.h (elf_core_file_p): preserve value of tdata at entry, and restore it on failure. Release newly allocated tdata on failure.
* elfcore.h (elf_core_file_p): call backend_object_p which thereby gets an opportunity to update the arch/machine type.