PR 11728--Unlinking before closing a file

Sterling Augustine sterling@tensilica.com
Mon Jun 21 17:29:00 GMT 2010


Today, when you have an error in your input, gas unlinks a file before 
it is closed, which fails on windows-file systems. (And probably other 
non-unixy file systems.) This is filed as bugzilla 11728

The erroneous output file won't be deleted, confusing make and certain 
developers like me.

Enclosed is a patch that moves unlinking to after closing. It simply 
keeps unlinking in close proximity to closing.

OK to apply?

Sterling

2010-06-21  Sterling Augustine  <sterling@jaw.hq.tensilica.com>

	PR gas/11728
	* as.c: Globalize keep_it.
	(main): Remove keep_it. Move conditional from here...
	(close_output_file): ...to here.


-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: close_before_unlink_patch
URL: <https://sourceware.org/pipermail/binutils/attachments/20100621/2c73bada/attachment.ksh>


More information about the Binutils mailing list