Always add input_statement to statement_list
authorAlan Modra <amodra@gmail.com>
Fri, 13 Sep 2019 01:39:41 +0000 (11:09 +0930)
committerAlan Modra <amodra@gmail.com>
Fri, 13 Sep 2019 03:13:42 +0000 (12:43 +0930)
commit1f1f5b92e811e9c7485129c065a9ff2c409303a4
tree4e74326d61d5579cc6e04e4c614bb48f83b015bd
parentec6c8338a89b0ec022b66ed3efdd1577e6449d6d
Always add input_statement to statement_list

I think this is safer than leaving an input_statement added during
open_input_bfds off the list.  There are a number of places that
fiddle with various lists and might be confused by an off-list
statement, eg. orphan handling.

* ldlang.c (new_afile): Remove add_to_list parameter.
(lang_add_input_file): Update new_afile calls.
(lookup_name): Splice input_statement added by new_afile into
statement_list after current input_file_chain entry.
(lang_process): Update comment.
ld/ChangeLog
ld/ldlang.c
This page took 0.026298 seconds and 4 git commands to generate.