[PATCH v3] ld: Maintain the input file order

Alan Modra amodra@gmail.com
Wed Apr 22 23:17:21 GMT 2026


The linker traverses the linker script for different purposes using
three pointers in a lang_input_statement_type: next_real_file, next
and header.next.  I suspect you may find this patch is incorrect due
to not reordering the header.next list.  See insert_input_file.

-- 
Alan Modra


More information about the Binutils mailing list