* elf64-ppc.c (get_opd_info): New function.
authorAlan Modra <amodra@gmail.com>
Mon, 9 Aug 2004 00:22:53 +0000 (00:22 +0000)
committerAlan Modra <amodra@gmail.com>
Mon, 9 Aug 2004 00:22:53 +0000 (00:22 +0000)
commit4025353c276c5dce0358199e59379a1ca6e72bbb
tree9a8ebe491e6ff429974014e3b4cdb29c87ca587f
parentead80d253022288d1d3437f14445dec0c3371c86
* elf64-ppc.c (get_opd_info): New function.
(adjust_opd_syms): Use get_opd_info.  Define removed symbols as zero.
(ppc64_elf_edit_opd): Use get_opd_info.  Check that sym has a dot
before calling get_fdh.  Test fdh rather than h before dereferencing
fdh.  Mark removed symbols in opd_adjust.
(ppc64_elf_tls_optimize): Don't bother with opd adjustment here.
(ppc64_elf_relocate_section): Use get_opd_info, and handle removed
opd symbols.
(ppc64_elf_output_symbol_hook): Likewise.
bfd/ChangeLog
bfd/elf64-ppc.c