From 66becf3266af273709dff2d4750ae9a1810ce6bd Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Thu, 4 Dec 2003 03:03:27 +0000 Subject: * elf32-i386.c (elf_i386_object_p): Delete. (elf_backend_object_p): Don't define. * elf32-s390.c (elf_s390_object_p): No need to alloc tdata here. * elf32-sh.c (sh_elf_object_p): Likewise. * elf32-sparc.c (elf32_sparc_object_p): Likewise. * elf64-alpha.c (elf64_alpha_object_p): Likewise. * elf64-s390.c (elf_s390_object_p): Likewise. * elf64-x86-64.c (elf64_x86_64_elf_object_p): Likewise. --- bfd/elf32-sparc.c | 9 --------- 1 file changed, 9 deletions(-) (limited to 'bfd/elf32-sparc.c') diff --git a/bfd/elf32-sparc.c b/bfd/elf32-sparc.c index ea3a9b139b..f77f22c7c3 100644 --- a/bfd/elf32-sparc.c +++ b/bfd/elf32-sparc.c @@ -3340,15 +3340,6 @@ static bfd_boolean elf32_sparc_object_p (abfd) bfd *abfd; { - /* Allocate our special target data. */ - struct elf32_sparc_obj_tdata *new_tdata; - bfd_size_type amt = sizeof (struct elf32_sparc_obj_tdata); - new_tdata = bfd_zalloc (abfd, amt); - if (new_tdata == NULL) - return FALSE; - new_tdata->root = *abfd->tdata.elf_obj_data; - abfd->tdata.any = new_tdata; - if (elf_elfheader (abfd)->e_machine == EM_SPARC32PLUS) { if (elf_elfheader (abfd)->e_flags & EF_SPARC_SUN_US3) -- cgit v1.2.1