From 0af031261fa0326656d6dfd93f68179adcf9a48b Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Tue, 17 Dec 2013 14:10:03 -0800 Subject: [PATCH] Call _bfd_elf_post_process_headers * elf32-spu.c (spu_elf_post_process_headers): Call _bfd_elf_post_process_headers. * elfxx-mips.c (_bfd_mips_post_process_headers): Likewise. --- bfd/ChangeLog | 6 ++++++ bfd/elf32-spu.c | 5 +++-- bfd/elfxx-mips.c | 2 ++ 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 7315720..4b46b09 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,5 +1,11 @@ 2013-12-17 H.J. Lu + * elf32-spu.c (spu_elf_post_process_headers): Call + _bfd_elf_post_process_headers. + * elfxx-mips.c (_bfd_mips_post_process_headers): Likewise. + +2013-12-17 H.J. Lu + * elf-bfd.h (_bfd_elf_set_osabi): Renamed to ... (_bfd_elf_post_process_headers): This. * elf.c (_bfd_elf_compute_section_file_positions): Always diff --git a/bfd/elf32-spu.c b/bfd/elf32-spu.c index 86fb33c..3b7f266 100644 --- a/bfd/elf32-spu.c +++ b/bfd/elf32-spu.c @@ -5146,8 +5146,7 @@ spu_elf_plugin (int val) /* Set ELF header e_type for plugins. */ static void -spu_elf_post_process_headers (bfd *abfd, - struct bfd_link_info *info ATTRIBUTE_UNUSED) +spu_elf_post_process_headers (bfd *abfd, struct bfd_link_info *info) { if (spu_plugin) { @@ -5155,6 +5154,8 @@ spu_elf_post_process_headers (bfd *abfd, i_ehdrp->e_type = ET_DYN; } + + _bfd_elf_post_process_headers (abfd, info); } /* We may add an extra PT_LOAD segment for .toe. We also need extra diff --git a/bfd/elfxx-mips.c b/bfd/elfxx-mips.c index 1c64ad3..d5f51a3 100644 --- a/bfd/elfxx-mips.c +++ b/bfd/elfxx-mips.c @@ -15348,4 +15348,6 @@ _bfd_mips_post_process_headers (bfd *abfd, struct bfd_link_info *link_info) if (htab->use_plts_and_copy_relocs && !htab->is_vxworks) i_ehdrp->e_ident[EI_ABIVERSION] = 1; } + + _bfd_elf_post_process_headers (abfd, link_info); } -- 2.7.4