* elf64-hppa.c (allocate_global_data_opd): Don't create an OPD entry
authorDave Anglin <dave.anglin@nrc.ca>
Sat, 18 Mar 2006 18:53:46 +0000 (18:53 +0000)
committerDave Anglin <dave.anglin@nrc.ca>
Sat, 18 Mar 2006 18:53:46 +0000 (18:53 +0000)
for undefined weak symbols.

bfd/ChangeLog
bfd/elf64-hppa.c

index 7a1280c4241b56fa45295b36811bf71197a56ad0..8a708ed2def94100e0aabb9e520b86151b0866e8 100644 (file)
@@ -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
index 3c2ca995abe90567e341e48442267c6775297501..1ca551f4f792b50bc13d56e94566b05561a0ea73 100644 (file)
@@ -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;