mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-28 10:00:51 +00:00
Re: Another fix for EFI generation with LTO enabled
Revert 1c66b8a039 and instead fix the broken list pointer.
PR 29998
* pe-dll.c (build_filler_bfd): Revert last change.
* ldlang.c (lang_process): When rescanning archives for lto,
fix file_chain.tail pointer if the insert point happens to be
at the end of the list.
This commit is contained in:
@@ -8017,6 +8017,8 @@ lang_process (void)
|
||||
*insert = &files.head->input_statement;
|
||||
files.head = (lang_statement_union_type *) *iter;
|
||||
*iter = temp;
|
||||
if (file_chain.tail == (lang_statement_union_type **) insert)
|
||||
file_chain.tail = (lang_statement_union_type **) iter;
|
||||
if (my_arch != NULL)
|
||||
{
|
||||
lang_input_statement_type *parent = bfd_usrdata (my_arch);
|
||||
|
||||
Reference in New Issue
Block a user