mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-09-09 23:32:21 +08:00
2001-12-18 H.J. Lu <hjl@gnu.org>
* elf-bfd.h (_bfd_elf_copy_private_bfd_data): New. Prototype. (_bfd_mips_elf_copy_private_bfd_data): Removed. * elf.c (_bfd_elf_copy_private_bfd_data): New. Copy e_flags in the ELF header. * elf32-i370.c (??_elf_copy_private_bfd_data): Removed. (bfd_elf??_bfd_copy_private_bfd_data): Removed. * elf32-m32r.c: Likewise. * elf32-m68k.c: Likewise. * elf32-mcore.c: Likewise. * elf32-mips.c: Likewise. * elf32-ppc.c: Likewise. * elf32-v850.c: Likewise. * elf64-ppc.c: Likewise. * elf64-sparc.c: Likewise. * elfxx-ia64.c: Likewise. * elf64-mips.c (bfd_elf64_bfd_copy_private_bfd_data): Removed. * elfxx-target.h (bfd_elfNN_bfd_copy_private_bfd_data): Defined to _bfd_elf_copy_private_bfd_data.
This commit is contained in:
@ -301,7 +301,6 @@ i370_elf_reloc_type_lookup (abfd, code)
|
||||
return i370_elf_howto_table[ (int)i370_reloc ];
|
||||
};
|
||||
|
||||
static boolean i370_elf_copy_private_bfd_data PARAMS ((bfd *, bfd *));
|
||||
static boolean i370_elf_merge_private_bfd_data PARAMS ((bfd *, bfd *));
|
||||
|
||||
static boolean i370_elf_relocate_section PARAMS ((bfd *,
|
||||
@ -381,24 +380,6 @@ i370_elf_set_private_flags (abfd, flags)
|
||||
return true;
|
||||
}
|
||||
|
||||
/* Copy backend specific data from one object module to another */
|
||||
static boolean
|
||||
i370_elf_copy_private_bfd_data (ibfd, obfd)
|
||||
bfd *ibfd;
|
||||
bfd *obfd;
|
||||
{
|
||||
if (bfd_get_flavour (ibfd) != bfd_target_elf_flavour
|
||||
|| bfd_get_flavour (obfd) != bfd_target_elf_flavour)
|
||||
return true;
|
||||
|
||||
BFD_ASSERT (!elf_flags_init (obfd)
|
||||
|| elf_elfheader (obfd)->e_flags == elf_elfheader (ibfd)->e_flags);
|
||||
|
||||
elf_elfheader (obfd)->e_flags = elf_elfheader (ibfd)->e_flags;
|
||||
elf_flags_init (obfd) = true;
|
||||
return true;
|
||||
}
|
||||
|
||||
/* Merge backend specific data from an object file to the output
|
||||
object file when linking */
|
||||
static boolean
|
||||
@ -1675,7 +1656,6 @@ i370_elf_post_process_headers (abfd, link_info)
|
||||
|
||||
#define bfd_elf32_bfd_reloc_type_lookup i370_elf_reloc_type_lookup
|
||||
#define bfd_elf32_bfd_set_private_flags i370_elf_set_private_flags
|
||||
#define bfd_elf32_bfd_copy_private_bfd_data i370_elf_copy_private_bfd_data
|
||||
#define bfd_elf32_bfd_merge_private_bfd_data i370_elf_merge_private_bfd_data
|
||||
#define elf_backend_relocate_section i370_elf_relocate_section
|
||||
|
||||
|
Reference in New Issue
Block a user