diff options
author | Alan Modra <amodra@gmail.com> | 2017-10-10 11:52:06 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2017-10-10 14:46:07 +1030 |
commit | b9399fcf4ec90d898a610e39bd9141e85c008fbb (patch) | |
tree | f88ad58dc656f94f789daf1e3f49b1476e6b43a7 /bfd/ChangeLog | |
parent | cbd3b1c155ed4f4986bf50754b1c57ad85700f7c (diff) | |
download | gdb-b9399fcf4ec90d898a610e39bd9141e85c008fbb.zip gdb-b9399fcf4ec90d898a610e39bd9141e85c008fbb.tar.gz gdb-b9399fcf4ec90d898a610e39bd9141e85c008fbb.tar.bz2 |
Prepare powerpc64 for late check_relocs
check_relocs was setting up some data used by the --gc-sections
gc_mark_hook. If we change ld to run check_relocs after gc_sections
that data needs to be set up elsewhere. Done by this patch in the
backend check_directives function (ppc64_elf_before_check_relocs).
* elf64-ppc.c (ppc64_elf_before_check_relocs): Set sec_type for
.opd whenever .opd is present and non-zero size. Move code
setting abiversion to/from output file earlier. Only set
u.opd.func_sec when --gc-sections. Read relocs and set up
u.opd.func_sec values here..
(ppc64_elf_check_relocs): ..rather than here. Simplify opd
section tests.
(ppc64_elf_edit_opd): Don't set sec_type for .opd here.
Diffstat (limited to 'bfd/ChangeLog')
-rw-r--r-- | bfd/ChangeLog | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 81d2785..e6bd06f 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,14 @@ +2017-10-10 Alan Modra <amodra@gmail.com> + + * elf64-ppc.c (ppc64_elf_before_check_relocs): Set sec_type for + .opd whenever .opd is present and non-zero size. Move code + setting abiversion to/from output file earlier. Only set + u.opd.func_sec when --gc-sections. Read relocs and set up + u.opd.func_sec values here.. + (ppc64_elf_check_relocs): ..rather than here. Simplify opd + section tests. + (ppc64_elf_edit_opd): Don't set sec_type for .opd here. + 2017-10-09 H.J. Lu <hongjiu.lu@intel.com> * elf-m10300.c (mn10300_elf_check_relocs): Don't free cached |