OSDN Git Service

* elf64-ppc.c (func_desc_adjust): When resolving undefined
authorAlan Modra <amodra@bigpond.net.au>
Sat, 8 Sep 2007 13:46:15 +0000 (13:46 +0000)
committerAlan Modra <amodra@bigpond.net.au>
Sat, 8 Sep 2007 13:46:15 +0000 (13:46 +0000)
references to dot-symbols, transfer def_regular and
def_dynamic from the descriptor symbol.

bfd/ChangeLog
bfd/elf64-ppc.c

index 48bb176..0078efc 100644 (file)
@@ -1,5 +1,11 @@
 2007-09-08  Alan Modra  <amodra@bigpond.net.au>
 
+       * 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  <amodra@bigpond.net.au>
+
        * config.bfd: Set want64 for spu-*-elf.
 
 2007-09-08  Alan Modra  <amodra@bigpond.net.au>
index c55f3e6..b5e4556 100644 (file)
@@ -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