gold patch committed: Fix descriptor handling

Ian Lance Taylor iant@google.com
Sat Feb 28 03:06:00 GMT 2009
I managed to mess up the simple-minded stack of open file descriptors in
gold.  I committed this patch to make it slightly less simple-minded.

Ian


2009-02-27  Ian Lance Taylor  <iant@google.com>

	PR 5990
	* descriptors.h (Open_descriptor): Add is_on_stack field.
	* descriptors.cc (Descriptors::open): If the descriptor is on the
	top of the stack, remove it.  Initialize is_on_stack field.
	(Descriptors::release): Only add pod to stack if it is not on the
	stack already.
	(Descriptors::close_some_descriptor): Clear stack_next and
	is_on_stack fields.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: foo.patch
Type: text/x-patch
Size: 1915 bytes
Desc: Fix descriptor handling
URL: <https://sourceware.org/pipermail/binutils/attachments/20090228/9af19561/attachment.bin>


More information about the Binutils mailing list