From: Jakub Jelinek Date: Thu, 10 May 2007 11:45:07 +0000 (+0000) Subject: * elf64-ppc.c (ppc64_elf_adjust_dynamic_symbol): Don't do copyreloc X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b186458a4dce22531cdbd1374c055d4813bd811c;p=binutils-gdb.git * elf64-ppc.c (ppc64_elf_adjust_dynamic_symbol): Don't do copyreloc processing if symbol is defined in the executable. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index ce5750502b2..f24593ad350 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2007-05-10 Jakub Jelinek + + * elf64-ppc.c (ppc64_elf_adjust_dynamic_symbol): Don't do copyreloc + processing if symbol is defined in the executable. + 2007-05-10 Alexandre Oliva * elf32-frv.c (_frvfdpic_check_discarded_relocs): New. diff --git a/bfd/elf64-ppc.c b/bfd/elf64-ppc.c index af857892b4f..8ffd70a62f9 100644 --- a/bfd/elf64-ppc.c +++ b/bfd/elf64-ppc.c @@ -5851,6 +5851,10 @@ ppc64_elf_adjust_dynamic_symbol (struct bfd_link_info *info, if (!h->non_got_ref) return TRUE; + /* Don't generate a copy reloc for symbols defined in the executable. */ + if (!h->def_dynamic || !h->ref_regular || h->def_regular) + return TRUE; + if (ELIMINATE_COPY_RELOCS) { struct ppc_link_hash_entry * eh;