diff options
author | Dave Anglin <dave.anglin@nrc.ca> | 2006-03-18 18:53:46 +0000 |
---|---|---|
committer | Dave Anglin <dave.anglin@nrc.ca> | 2006-03-18 18:53:46 +0000 |
commit | d05a7559b1576d3d3f326c167eac212c4153684f (patch) | |
tree | 0424d35435112b1758ec638ae9e15be8675e1a68 | |
parent | ccf8d7a3115ef01e1881c20043c508ce48e1ddbd (diff) | |
download | binutils-redhat-d05a7559b1576d3d3f326c167eac212c4153684f.tar.gz |
* elf64-hppa.c (allocate_global_data_opd): Don't create an OPD entry
for undefined weak symbols.
-rw-r--r-- | bfd/ChangeLog | 5 | ||||
-rw-r--r-- | bfd/elf64-hppa.c | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 7a1280c424..8a708ed2de 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2006-03-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca> + + * elf64-hppa.c (allocate_global_data_opd): Don't create an OPD entry + for undefined weak symbols. + 2006-03-17 Daniel Jacobowitz <dan@codesourcery.com> PR ld/2462 diff --git a/bfd/elf64-hppa.c b/bfd/elf64-hppa.c index 3c2ca995ab..1ca551f4f7 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; |