From: Alan Modra Date: Sat, 8 Sep 2007 13:46:15 +0000 (+0000) Subject: * elf64-ppc.c (func_desc_adjust): When resolving undefined X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2b95367962dc14f69d3c338c4d54195266e2e169;p=binutils-gdb.git * elf64-ppc.c (func_desc_adjust): When resolving undefined references to dot-symbols, transfer def_regular and def_dynamic from the descriptor symbol. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 48bb1761abb..0078efc32b6 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,9 @@ +2007-09-08 Alan Modra + + * elf64-ppc.c (func_desc_adjust): When resolving undefined + references to dot-symbols, transfer def_regular and + def_dynamic from the descriptor symbol. + 2007-09-08 Alan Modra * config.bfd: Set want64 for spu-*-elf. diff --git a/bfd/elf64-ppc.c b/bfd/elf64-ppc.c index c55f3e6396d..b5e45560fb0 100644 --- a/bfd/elf64-ppc.c +++ b/bfd/elf64-ppc.c @@ -5651,6 +5651,8 @@ func_desc_adjust (struct elf_link_hash_entry *h, void *inf) { fh->elf.root.type = fh->oh->elf.root.type; fh->elf.forced_local = 1; + fh->elf.def_regular = fh->oh->elf.def_regular; + fh->elf.def_dynamic = fh->oh->elf.def_dynamic; } /* If this is a function code symbol, transfer dynamic linking