2000-11-22 Philip Blundell <pb@futuretv.com>
authorPhil Blundell <philb@gnu.org>
Mon, 27 Nov 2000 11:08:15 +0000 (11:08 +0000)
committerPhil Blundell <philb@gnu.org>
Mon, 27 Nov 2000 11:08:15 +0000 (11:08 +0000)
* cofflink.c (_bfd_coff_generic_relocate_section): Don't object to
weak undefined symbols.

bfd/ChangeLog
bfd/cofflink.c

index 3229922..99de567 100644 (file)
@@ -1,3 +1,8 @@
+2000-11-22  Philip Blundell  <pb@futuretv.com>
+
+       * cofflink.c (_bfd_coff_generic_relocate_section): Don't object to 
+       weak undefined symbols.
+
 2000-11-24  Nick Clifton  <nickc@redhat.com>
 
        * archures.c (bfd_mach_arm_5TE): Define.
index 8c82596..05c0689 100644 (file)
@@ -2937,6 +2937,9 @@ _bfd_coff_generic_relocate_section (output_bfd, info, input_bfd,
                     + sec->output_offset);
              }
 
+         else if (h->root.type == bfd_link_hash_undefweak)
+           val = 0;
+
          else if (! info->relocateable)
            {
              if (! ((*info->callbacks->undefined_symbol)