aboutsummaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2013-12-17 14:10:03 -0800
committerH.J. Lu <hjl.tools@gmail.com>2013-12-17 14:10:03 -0800
commit0af031261fa0326656d6dfd93f68179adcf9a48b (patch)
tree03a3f1b5c8b52d9836032f5e2a5c349b27a98fad /bfd
parent782450358dc18c4818faaae643ab5f91d6464fe7 (diff)
downloadgdb-0af031261fa0326656d6dfd93f68179adcf9a48b.zip
gdb-0af031261fa0326656d6dfd93f68179adcf9a48b.tar.gz
gdb-0af031261fa0326656d6dfd93f68179adcf9a48b.tar.bz2
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.
Diffstat (limited to 'bfd')
-rw-r--r--bfd/ChangeLog6
-rw-r--r--bfd/elf32-spu.c5
-rw-r--r--bfd/elfxx-mips.c2
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 <hongjiu.lu@intel.com>
+ * 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 <hongjiu.lu@intel.com>
+
* 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);
}