summaryrefslogtreecommitdiff
path: root/bfd/elf32-sh.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@bigpond.net.au>2003-12-04 03:03:27 +0000
committerAlan Modra <amodra@bigpond.net.au>2003-12-04 03:03:27 +0000
commit618a2a06b40d762ece48843f8cc9094b15510b66 (patch)
treee43583109edcf081bacc7548a578ac8547dd9f37 /bfd/elf32-sh.c
parentdef318d152a419db75ee0b376dd284ffd28857ec (diff)
downloadbinutils-redhat-618a2a06b40d762ece48843f8cc9094b15510b66.tar.gz
* 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.
Diffstat (limited to 'bfd/elf32-sh.c')
-rw-r--r--bfd/elf32-sh.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/bfd/elf32-sh.c b/bfd/elf32-sh.c
index cf1e51fdad..c8a091d53c 100644
--- a/bfd/elf32-sh.c
+++ b/bfd/elf32-sh.c
@@ -6960,19 +6960,7 @@ sh_elf_merge_private_data (bfd *ibfd, bfd *obfd)
static bfd_boolean
sh_elf_object_p (bfd *abfd)
{
- struct sh_elf_obj_tdata *new_tdata;
- bfd_size_type amt = sizeof (struct sh_elf_obj_tdata);
-
- if (!sh_elf_set_mach_from_flags (abfd))
- return FALSE;
-
- /* Allocate our special target data. */
- 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;
- return TRUE;
+ return sh_elf_set_mach_from_flags (abfd);
}
/* Finish up dynamic symbol handling. We set the contents of various