aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf-hppa.h
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/elf-hppa.h
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/elf-hppa.h')
-rw-r--r--bfd/elf-hppa.h17
1 files changed, 15 insertions, 2 deletions
diff --git a/bfd/elf-hppa.h b/bfd/elf-hppa.h
index f372746..90f6482 100644
--- a/bfd/elf-hppa.h
+++ b/bfd/elf-hppa.h
@@ -1491,12 +1491,25 @@ elf_hppa_relocate_section (output_bfd, info, input_bfd, input_section,
(_("%s: warning: unresolvable relocation against symbol `%s' from %s section"),
bfd_archive_filename (input_bfd), h->root.root.string,
bfd_get_section_name (input_bfd, input_section));
- relocation = 0;
}
relocation = 0;
}
else if (h->root.type == bfd_link_hash_undefweak)
- relocation = 0;
+ {
+ dyn_name = get_dyn_name (input_section, h, rel,
+ &dynh_buf, &dynh_buflen);
+ dyn_h = elf64_hppa_dyn_hash_lookup (&hppa_info->dyn_hash_table,
+ dyn_name, FALSE, FALSE);
+
+ if (dyn_h == NULL)
+ {
+ (*_bfd_error_handler)
+ (_("%s: warning: unresolvable relocation against symbol `%s' from %s section"),
+ bfd_archive_filename (input_bfd), h->root.root.string,
+ bfd_get_section_name (input_bfd, input_section));
+ }
+ relocation = 0;
+ }
else
{
/* Ignore dynamic loader defined symbols. */