This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
coff linker patch
- To: binutils at sources dot redhat dot com
- Subject: coff linker patch
- From: Philip Blundell <pb at futuretv dot com>
- Date: Thu, 23 Nov 2000 13:55:54 +0000
I'd like to apply the following patch. Is this OK?
Thanks
p.
2000-11-22 Philip Blundell <pb@futuretv.com>
* cofflink.c (_bfd_coff_generic_relocate_section): Don't object
to weak undefined symbols.
Index: cofflink.c
===================================================================
RCS file: /cvs/src/src/bfd/cofflink.c,v
retrieving revision 1.18
diff -u -r1.18 cofflink.c
--- cofflink.c 2000/07/03 18:45:18 1.18
+++ cofflink.c 2000/11/22 16:24:32
@@ -2936,6 +2938,9 @@
+ sec->output_section->vma
+ sec->output_offset);
}
+
+ else if (h->root.type == bfd_link_hash_undefweak)
+ val = 0;
else if (! info->relocateable)
{