From ed30e8075bdaebe5f16a3336626044d272dbece2 Mon Sep 17 00:00:00 2001 From: Phil Blundell Date: Mon, 27 Nov 2000 11:08:15 +0000 Subject: 2000-11-22 Philip Blundell * cofflink.c (_bfd_coff_generic_relocate_section): Don't object to weak undefined symbols. --- bfd/cofflink.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'bfd/cofflink.c') diff --git a/bfd/cofflink.c b/bfd/cofflink.c index 8c825968dd..05c0689ea9 100644 --- a/bfd/cofflink.c +++ b/bfd/cofflink.c @@ -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) -- cgit v1.2.1