* 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.
This commit is contained in:
Alan Modra 2003-12-04 03:03:27 +00:00
parent b80901c73f
commit 66becf3266
8 changed files with 12 additions and 70 deletions

View File

@ -1,3 +1,14 @@
2003-12-04 Alan Modra <amodra@bigpond.net.au>
* 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.
2003-12-03 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
* archures.c (bfd_mach_m32r2): Add new machine type.

View File

@ -546,20 +546,6 @@ elf_i386_mkobject (bfd *abfd)
return TRUE;
}
static bfd_boolean
elf_i386_object_p (bfd *abfd)
{
/* Allocate our special target data. */
struct elf_i386_obj_tdata *new_tdata;
bfd_size_type amt = sizeof (struct elf_i386_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;
return TRUE;
}
/* i386 ELF linker hash table. */
struct elf_i386_link_hash_table
@ -3253,7 +3239,6 @@ elf_i386_finish_dynamic_sections (bfd *output_bfd,
#define elf_info_to_howto_rel elf_i386_info_to_howto_rel
#define bfd_elf32_mkobject elf_i386_mkobject
#define elf_backend_object_p elf_i386_object_p
#define bfd_elf32_bfd_is_local_label_name elf_i386_is_local_label_name
#define bfd_elf32_bfd_link_hash_table_create elf_i386_link_hash_table_create

View File

@ -685,14 +685,6 @@ static bfd_boolean
elf_s390_object_p (abfd)
bfd *abfd;
{
/* Allocate our special target data. */
struct elf_s390_obj_tdata *new_tdata;
bfd_size_type amt = sizeof (struct elf_s390_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;
/* Set the right machine number for an s390 elf32 file. */
return bfd_default_set_arch_mach (abfd, bfd_arch_s390, bfd_mach_s390_31);
}

View File

@ -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

View File

@ -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)

View File

@ -393,15 +393,6 @@ static bfd_boolean
elf64_alpha_object_p (abfd)
bfd *abfd;
{
/* Allocate our special target data. */
struct alpha_elf_obj_tdata *new_tdata;
bfd_size_type amt = sizeof (struct alpha_elf_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;
/* Set the right machine number for an Alpha ELF file. */
return bfd_default_set_arch_mach (abfd, bfd_arch_alpha, 0);
}

View File

@ -638,14 +638,6 @@ static bfd_boolean
elf_s390_object_p (abfd)
bfd *abfd;
{
/* Allocate our special target data. */
struct elf_s390_obj_tdata *new_tdata;
bfd_size_type amt = sizeof (struct elf_s390_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;
/* Set the right machine number for an s390 elf32 file. */
return bfd_default_set_arch_mach (abfd, bfd_arch_s390, bfd_mach_s390_64);
}

View File

@ -579,14 +579,6 @@ elf64_x86_64_mkobject (bfd *abfd)
static bfd_boolean
elf64_x86_64_elf_object_p (bfd *abfd)
{
/* Allocate our special target data. */
struct elf64_x86_64_obj_tdata *new_tdata;
bfd_size_type amt = sizeof (struct elf64_x86_64_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;
/* Set the right machine number for an x86-64 elf64 file. */
bfd_default_set_arch_mach (abfd, bfd_arch_i386, bfd_mach_x86_64);
return TRUE;