summaryrefslogtreecommitdiff
path: root/ld/ldlang.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@bigpond.net.au>2012-01-15 01:57:14 +0000
committerAlan Modra <amodra@bigpond.net.au>2012-01-15 01:57:14 +0000
commita78e81d532d920f4aa768c4d02a7242320839db5 (patch)
treed53e243f6189e006f783848554d6bf8be634951f /ld/ldlang.c
parentdb204a9d567d4322827df83d6a382446b9b02d9a (diff)
downloadbinutils-redhat-a78e81d532d920f4aa768c4d02a7242320839db5.tar.gz
PR ld/12758
* ldlang.c (lang_process): Don't reopen all files, just those newly added by plugin.
Diffstat (limited to 'ld/ldlang.c')
-rw-r--r--ld/ldlang.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ld/ldlang.c b/ld/ldlang.c
index 4b9eae7ac0..5e01fc017f 100644
--- a/ld/ldlang.c
+++ b/ld/ldlang.c
@@ -1,6 +1,6 @@
/* Linker command language support.
Copyright 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
- 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011
+ 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
Free Software Foundation, Inc.
This file is part of the GNU Binutils.
@@ -6590,7 +6590,7 @@ lang_process (void)
plugin_error_plugin ());
/* Open any newly added files, updating the file chains. */
link_info.loading_lto_outputs = TRUE;
- open_input_bfds (added.head, OPEN_BFD_NORMAL);
+ open_input_bfds (*added.tail, OPEN_BFD_NORMAL);
/* Restore the global list pointer now they have all been added. */
lang_list_remove_tail (stat_ptr, &added);
/* And detach the fresh ends of the file lists. */