re PR lto/41871 (lto-plugin gives: could not open/create temporary file)

2009-10-30  Rafael Avila de Espindola  <espindola@google.com>

	PR41871
	* lto-plugin.c (claim_file_handler): Close files that we created.

From-SVN: r153764
This commit is contained in:
Rafael Avila de Espindola 2009-10-30 18:29:37 +00:00 committed by Rafael Espindola
parent f6d08b433b
commit 86ed04df82
2 changed files with 8 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2009-10-30 Rafael Avila de Espindola <espindola@google.com>
PR41871
* lto-plugin.c (claim_file_handler): Close files that we created.
2009-10-28 Rafael Avila de Espindola <espindola@google.com>
* lto-plugin.c (all_symbols_read_handler): Use LDPL_FATAL instead of

View File

@ -635,6 +635,9 @@ claim_file_handler (const struct ld_plugin_input_file *file, int *claimed)
if (elf)
elf_end (elf);
if (file->offset != 0)
close (lto_file_fd);
return LDPS_OK;
}