From: H.J. Lu Date: Tue, 17 Dec 2013 22:10:03 +0000 (-0800) Subject: Call _bfd_elf_post_process_headers X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0af031261fa0326656d6dfd93f68179adcf9a48b;p=binutils-gdb.git 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. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 7315720d154..4b46b098e74 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,9 @@ +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 ... diff --git a/bfd/elf32-spu.c b/bfd/elf32-spu.c index 86fb33cfec3..3b7f266ccb7 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 1c64ad35d83..d5f51a3b716 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); }