diff options
author | Nick Clifton <nickc@redhat.com> | 2008-05-30 16:13:53 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2008-05-30 16:13:53 +0000 |
commit | adfef0bd4784918f644107faf0f01b16fe15cb57 (patch) | |
tree | 16da0d7bcd71f6babb3a963d4618e265d90646d9 /bfd/elf64-hppa.c | |
parent | 0a903babefa8ba7e131e1a39494817df8ccad44d (diff) | |
download | gdb-adfef0bd4784918f644107faf0f01b16fe15cb57.zip gdb-adfef0bd4784918f644107faf0f01b16fe15cb57.tar.gz gdb-adfef0bd4784918f644107faf0f01b16fe15cb57.tar.bz2 |
PR ld/6511
* elf64-hppa.c (allocate_global_data_opd): Default to using the
dynamic symbol table for local function names in shared libraries.
Diffstat (limited to 'bfd/elf64-hppa.c')
-rw-r--r-- | bfd/elf64-hppa.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/bfd/elf64-hppa.c b/bfd/elf64-hppa.c index b2dafdd..2359add 100644 --- a/bfd/elf64-hppa.c +++ b/bfd/elf64-hppa.c @@ -1175,7 +1175,8 @@ allocate_global_data_opd (dyn_h, data) && (h == NULL || (h->dynindx == -1))) { bfd *owner; - owner = (h ? h->root.u.def.section->owner : dyn_h->owner); + /* PR 6511: Default to using the dynamic symbol table. */ + owner = (dyn_h->owner ? dyn_h->owner: h->root.u.def.section->owner); if (!bfd_elf_link_record_local_dynamic_symbol (x->info, owner, dyn_h->sym_indx)) @@ -2197,8 +2198,8 @@ elf64_hppa_finalize_opd (dyn_h, data) strcpy (new_name + 1, h->root.root.string); nh = elf_link_hash_lookup (elf_hash_table (info), - new_name, FALSE, FALSE, FALSE); - + new_name, TRUE, TRUE, FALSE); + /* All we really want from the new symbol is its dynamic symbol index. */ if (nh) |