From bc7a577dc7781416ff8a6e8ea295c7999e1673a9 Mon Sep 17 00:00:00 2001 From: Phil Blundell Date: Mon, 27 Nov 2000 11:08:15 +0000 Subject: [PATCH] 2000-11-22 Philip Blundell * cofflink.c (_bfd_coff_generic_relocate_section): Don't object to weak undefined symbols. --- bfd/ChangeLog | 5 +++++ bfd/cofflink.c | 3 +++ 2 files changed, 8 insertions(+) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 3229922c056..99de56774aa 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2000-11-22 Philip Blundell + + * cofflink.c (_bfd_coff_generic_relocate_section): Don't object to + weak undefined symbols. + 2000-11-24 Nick Clifton * archures.c (bfd_mach_arm_5TE): Define. diff --git a/bfd/cofflink.c b/bfd/cofflink.c index 8c825968dd5..05c0689ea94 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) -- 2.30.2