aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf64-ppc.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2008-12-11 10:14:40 +0000
committerAlan Modra <amodra@gmail.com>2008-12-11 10:14:40 +0000
commitdf131623294b8a9f8ebfbd0fe3780886c19527aa (patch)
tree97ef5d698721ebb83bbd671acc9e91f14eaa8410 /bfd/elf64-ppc.c
parentd01190f9e3150aa4d6104e505272072043210f64 (diff)
downloadgdb-df131623294b8a9f8ebfbd0fe3780886c19527aa.zip
gdb-df131623294b8a9f8ebfbd0fe3780886c19527aa.tar.gz
gdb-df131623294b8a9f8ebfbd0fe3780886c19527aa.tar.bz2
PR 7041
* elf64-ppc.c (func_desc_adjust): Correct logic making fake function descriptors. Similarly correct making function descriptors dynamic.
Diffstat (limited to 'bfd/elf64-ppc.c')
-rw-r--r--bfd/elf64-ppc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bfd/elf64-ppc.c b/bfd/elf64-ppc.c
index c4be65a..02a8632 100644
--- a/bfd/elf64-ppc.c
+++ b/bfd/elf64-ppc.c
@@ -5815,7 +5815,7 @@ func_desc_adjust (struct elf_link_hash_entry *h, void *inf)
fdh = (struct ppc_link_hash_entry *) fdh->elf.root.u.i.link;
if (fdh == NULL
- && info->shared
+ && !info->executable
&& (fh->elf.root.type == bfd_link_hash_undefined
|| fh->elf.root.type == bfd_link_hash_undefweak))
{
@@ -5848,7 +5848,7 @@ func_desc_adjust (struct elf_link_hash_entry *h, void *inf)
if (fdh != NULL
&& !fdh->elf.forced_local
- && (info->shared
+ && (!info->executable
|| fdh->elf.def_dynamic
|| fdh->elf.ref_dynamic
|| (fdh->elf.root.type == bfd_link_hash_undefweak