summaryrefslogtreecommitdiff
path: root/bfd/elf64-hppa.c
diff options
context:
space:
mode:
Diffstat (limited to 'bfd/elf64-hppa.c')
-rw-r--r--bfd/elf64-hppa.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/bfd/elf64-hppa.c b/bfd/elf64-hppa.c
index 982d45f97bb..b2dafdd937a 100644
--- a/bfd/elf64-hppa.c
+++ b/bfd/elf64-hppa.c
@@ -2201,7 +2201,8 @@ elf64_hppa_finalize_opd (dyn_h, data)
/* All we really want from the new symbol is its dynamic
symbol index. */
- dynindx = nh->dynindx;
+ if (nh)
+ dynindx = nh->dynindx;
}
rel.r_addend = 0;