diff options
author | Alan Modra <amodra@gmail.com> | 2012-01-15 01:57:15 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2012-01-15 01:57:15 +0000 |
commit | cdaa438c868e6cba03f508b74ee7c9dc9bd16a61 (patch) | |
tree | 67438587d1bf1c2159dd450888e6ccdd8a77459b /ld | |
parent | 4442237884841837eef760872268fe83ca4818ad (diff) | |
download | fsf-binutils-gdb-cdaa438c868e6cba03f508b74ee7c9dc9bd16a61.zip fsf-binutils-gdb-cdaa438c868e6cba03f508b74ee7c9dc9bd16a61.tar.gz fsf-binutils-gdb-cdaa438c868e6cba03f508b74ee7c9dc9bd16a61.tar.bz2 |
PR ld/12758
* ldlang.c (lang_process): Don't reopen all files, just those
newly added by plugin.
Diffstat (limited to 'ld')
-rw-r--r-- | ld/ChangeLog | 6 | ||||
-rw-r--r-- | ld/ldlang.c | 4 |
2 files changed, 8 insertions, 2 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog index 8d4027f..f963526 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,9 @@ +2012-01-15 Alan Modra <amodra@gmail.com> + + PR ld/12758 + * ldlang.c (lang_process): Don't reopen all files, just those + newly added by plugin. + 2012-01-11 Alan Modra <amodra@gmail.com> * emultempl/ppc64elf.em (PARSE_AND_LIST_PROLOGUE, diff --git a/ld/ldlang.c b/ld/ldlang.c index 4b9eae7..5e01fc0 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. */ |