summaryrefslogtreecommitdiff
path: root/bfd/elf64-hppa.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@bigpond.net.au>2003-12-12 14:11:58 +0000
committerAlan Modra <amodra@bigpond.net.au>2003-12-12 14:11:58 +0000
commit533a32e287393d974c1f961d4fc76ca5dd914612 (patch)
tree9c04f5f3a018a134afc21fbfa644c97eed7db60d /bfd/elf64-hppa.c
parented8174ba0fa5171ccafe440be43a9601a75314a4 (diff)
downloadgdb-533a32e287393d974c1f961d4fc76ca5dd914612.tar.gz
* elf64-hppa.c (elf64_hppa_link_output_symbol_hook): Check for
NULL dyn_h.
Diffstat (limited to 'bfd/elf64-hppa.c')
-rw-r--r--bfd/elf64-hppa.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bfd/elf64-hppa.c b/bfd/elf64-hppa.c
index 36c27c4b6f8..06aff7b014e 100644
--- a/bfd/elf64-hppa.c
+++ b/bfd/elf64-hppa.c
@@ -1912,7 +1912,7 @@ elf64_hppa_link_output_symbol_hook (info, name, sym, input_sec, h)
hppa_info = elf64_hppa_hash_table (info);
dyn_h = elf64_hppa_dyn_hash_lookup (&hppa_info->dyn_hash_table,
name, FALSE, FALSE);
- if (dyn_h->h != h)
+ if (!dyn_h || dyn_h->h != h)
return TRUE;
/* Function symbols for which we created .opd entries *may* have been
@@ -1922,7 +1922,7 @@ elf64_hppa_link_output_symbol_hook (info, name, sym, input_sec, h)
into non-dynamic ones, so we initialize st_shndx to -1 in
mark_exported_functions and check to see if it was overwritten
here instead of just checking dyn_h->h->dynindx. */
- if (dyn_h && dyn_h->want_opd && dyn_h->st_shndx != -1)
+ if (dyn_h->want_opd && dyn_h->st_shndx != -1)
{
/* Restore the saved value and section index. */
sym->st_value = dyn_h->st_value;