aboutsummaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2007-09-08 13:46:15 +0000
committerAlan Modra <amodra@gmail.com>2007-09-08 13:46:15 +0000
commit2b95367962dc14f69d3c338c4d54195266e2e169 (patch)
tree3dfca2b0a6cc604e294e558595b664a5ad65ab6c /bfd
parent78b8434d266b920124327ae073b238addf8425e1 (diff)
downloadgdb-2b95367962dc14f69d3c338c4d54195266e2e169.zip
gdb-2b95367962dc14f69d3c338c4d54195266e2e169.tar.gz
gdb-2b95367962dc14f69d3c338c4d54195266e2e169.tar.bz2
* elf64-ppc.c (func_desc_adjust): When resolving undefined
references to dot-symbols, transfer def_regular and def_dynamic from the descriptor symbol.
Diffstat (limited to 'bfd')
-rw-r--r--bfd/ChangeLog6
-rw-r--r--bfd/elf64-ppc.c2
2 files changed, 8 insertions, 0 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 48bb176..0078efc 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -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>
diff --git a/bfd/elf64-ppc.c b/bfd/elf64-ppc.c
index c55f3e6..b5e4556 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