summaryrefslogtreecommitdiffstats
path: root/bfd/elf64-hppa.c
diff options
context:
space:
mode:
authorDave Anglin <dave.anglin@nrc.ca>2006-03-18 18:53:46 +0000
committerDave Anglin <dave.anglin@nrc.ca>2006-03-18 18:53:46 +0000
commitaf7cfa33110281ead35546652bda2ed167b44805 (patch)
tree8908789560dc2ebad637f60e86fefa7f19f39eff /bfd/elf64-hppa.c
parenta849c9ab4fb769fc784aea9068219d42d799fb03 (diff)
downloadppe42-binutils-af7cfa33110281ead35546652bda2ed167b44805.tar.gz
ppe42-binutils-af7cfa33110281ead35546652bda2ed167b44805.zip
* elf64-hppa.c (allocate_global_data_opd): Don't create an OPD entry
for undefined weak symbols.
Diffstat (limited to 'bfd/elf64-hppa.c')
-rw-r--r--bfd/elf64-hppa.c1
1 files changed, 1 insertions, 0 deletions
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;
OpenPOWER on IntegriCloud