From af7cfa33110281ead35546652bda2ed167b44805 Mon Sep 17 00:00:00 2001 From: Dave Anglin Date: Sat, 18 Mar 2006 18:53:46 +0000 Subject: [PATCH] * elf64-hppa.c (allocate_global_data_opd): Don't create an OPD entry for undefined weak symbols. --- bfd/ChangeLog | 5 +++++ bfd/elf64-hppa.c | 1 + 2 files changed, 6 insertions(+) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 7a1280c4241..8a708ed2def 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2006-03-18 John David Anglin + + * elf64-hppa.c (allocate_global_data_opd): Don't create an OPD entry + for undefined weak symbols. + 2006-03-17 Daniel Jacobowitz PR ld/2462 diff --git a/bfd/elf64-hppa.c b/bfd/elf64-hppa.c index 3c2ca995abe..1ca551f4f79 100644 --- a/bfd/elf64-hppa.c +++ b/bfd/elf64-hppa.c @@ -1129,6 +1129,7 @@ allocate_global_data_opd (dyn_h, data) /* We never need an opd entry for a symbol which is not defined by this output file. */ if (h && (h->root.type == bfd_link_hash_undefined + || h->root.type == bfd_link_hash_undefweak || h->root.u.def.section->output_section == NULL)) dyn_h->want_opd = 0; -- 2.30.2