This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

coff linker patch


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)
 	    {



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]