problem with bfd update from 2001/12/17

Alan Modra amodra@bigpond.net.au
Thu Apr 25 20:16:00 GMT 2002


On Fri, Apr 26, 2002 at 11:31:15AM +0930, Alan Modra wrote:
> list, for fast addition to the list.  It's likely that the cygwin code
> does some section list manipulation without properly adjusting the tail
> pointer, then another section is added and the list is broken.

It might be this one.

bfd/ChangeLog
	* coffcode.h (coff_compute_section_file_positions): Set
	section_tail after shuffling section list.

Index: coffcode.h
===================================================================
RCS file: /cvs/src/src/bfd/coffcode.h,v
retrieving revision 1.73
diff -u -p -r1.73 coffcode.h
--- coffcode.h	9 Apr 2002 16:43:26 -0000	1.73
+++ coffcode.h	26 Apr 2002 03:14:39 -0000
@@ -3014,6 +3014,7 @@ coff_compute_section_file_positions (abf
 	else
 	  current->target_index = target_index++;
       }
+    abfd->section_tail = &current->next
 
     free (section_list);
   }

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre



More information about the Binutils mailing list