summaryrefslogtreecommitdiff
path: root/bfd/cofflink.c
diff options
context:
space:
mode:
authorPhil Blundell <philb@gnu.org>2000-11-27 11:08:15 +0000
committerPhil Blundell <philb@gnu.org>2000-11-27 11:08:15 +0000
commited30e8075bdaebe5f16a3336626044d272dbece2 (patch)
tree9cee43b213a391e76a0d5eb66a871c88e2ad71b3 /bfd/cofflink.c
parent8dfc00a6575b324193e4d7c500e86a273ac4d49a (diff)
downloadbinutils-redhat-ed30e8075bdaebe5f16a3336626044d272dbece2.tar.gz
2000-11-22 Philip Blundell <pb@futuretv.com>
* cofflink.c (_bfd_coff_generic_relocate_section): Don't object to weak undefined symbols.
Diffstat (limited to 'bfd/cofflink.c')
-rw-r--r--bfd/cofflink.c3
1 files changed, 3 insertions, 0 deletions
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)