aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf64-sparc.c
diff options
context:
space:
mode:
authorRichard Henderson <rth@redhat.com>1999-08-02 22:31:18 +0000
committerRichard Henderson <rth@redhat.com>1999-08-02 22:31:18 +0000
commit1fa0ddb30b4401475d6a055946cc20909d0a9c21 (patch)
tree247938aefd95bd66a0a4a0da0fb7f51f0781ed2a /bfd/elf64-sparc.c
parent7a12753dad0addccb0f795b46ab9f12d5ac42f5c (diff)
downloadgdb-1fa0ddb30b4401475d6a055946cc20909d0a9c21.zip
gdb-1fa0ddb30b4401475d6a055946cc20909d0a9c21.tar.gz
gdb-1fa0ddb30b4401475d6a055946cc20909d0a9c21.tar.bz2
Jakub Jelinek <jj@ultra.linux.cz>
* elflink.h (elf_bfd_final_link): Copy the whole isym, not just some fields. * elf64-sparc.c (sparc64_elf_output_arch_syms): Declare used variables and initialize them.
Diffstat (limited to 'bfd/elf64-sparc.c')
-rw-r--r--bfd/elf64-sparc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/bfd/elf64-sparc.c b/bfd/elf64-sparc.c
index 733ea5e5..e98f1be 100644
--- a/bfd/elf64-sparc.c
+++ b/bfd/elf64-sparc.c
@@ -1403,6 +1403,8 @@ sparc64_elf_output_arch_syms (output_bfd, info, finfo, func)
to back up symtab->sh_info. */
if (elf_hash_table (info)->dynlocal)
{
+ bfd * dynobj = elf_hash_table (info)->dynobj;
+ asection *dynsymsec = bfd_get_section_by_name (dynobj, ".dynsym");
struct elf_link_local_dynamic_entry *e;
for (e = elf_hash_table (info)->dynlocal; e ; e = e->next)