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 /include/hashtab.h | |
parent | cbd3b1c155ed4f4986bf50754b1c57ad85700f7c (diff) | |
download | fsf-binutils-gdb-b9399fcf4ec90d898a610e39bd9141e85c008fbb.zip fsf-binutils-gdb-b9399fcf4ec90d898a610e39bd9141e85c008fbb.tar.gz fsf-binutils-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 'include/hashtab.h')
0 files changed, 0 insertions, 0 deletions