aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf64-hppa.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2003-07-30 02:15:07 +0000
committerAlan Modra <amodra@gmail.com>2003-07-30 02:15:07 +0000
commit37f4508be1aa888df790dd6e2756df165458792a (patch)
tree4a9ae647a62764587e2445aa4dac0be74c9ba8ea /bfd/elf64-hppa.c
parent217aa764fcdd9ec19d2182b931ae57aa2e3ddf0b (diff)
downloadgdb-37f4508be1aa888df790dd6e2756df165458792a.zip
gdb-37f4508be1aa888df790dd6e2756df165458792a.tar.gz
gdb-37f4508be1aa888df790dd6e2756df165458792a.tar.bz2
* elf-hppa.h (elf_hppa_relocate_section): Look up dyn_h for undefweak.
* elf64-hppa.c (elf64_hppa_finalize_dlt): Check h->root.type.
Diffstat (limited to 'bfd/elf64-hppa.c')
-rw-r--r--bfd/elf64-hppa.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/bfd/elf64-hppa.c b/bfd/elf64-hppa.c
index 5d329e9..f3398c1 100644
--- a/bfd/elf64-hppa.c
+++ b/bfd/elf64-hppa.c
@@ -2258,7 +2258,9 @@ elf64_hppa_finalize_dlt (dyn_h, data)
+ hppa_info->opd_sec->output_offset
+ hppa_info->opd_sec->output_section->vma);
}
- else if (h->root.u.def.section)
+ else if ((h->root.type == bfd_link_hash_defined
+ || h->root.type == bfd_link_hash_defweak)
+ && h->root.u.def.section)
{
value = h->root.u.def.value + h->root.u.def.section->output_offset;
if (h->root.u.def.section->output_section)