[3/6][PATCH] Revise linker plugin API to better preserve link order.
Alan Modra
amodra@gmail.com
Sat Feb 26 09:15:00 GMT 2011
On Sat, Feb 26, 2011 at 12:45:57AM +0000, Dave Korn wrote:
> * ldlang.h (lang_input_statement_type): Add new 'claim_archive' flag,
> wrapping both it and 'claim' flag in #ifdef ENABLE_PLUGINS.
> * ldmain.c (add_archive_element): Set it if the member is claimed.
> * ldlang.c (new_afile): Initialise claim_archive and claimed members.
> (find_replacements_insert_point): New helper function.
> (lang_process): After adding and opening replacement files passed
> from plugin, splice them into correct place in statement list and
> file chains to preserve critical link order.
> (lang_list_insert_after): New helper function.
> (lang_list_remove_tail): Likewise.
OK.
--
Alan Modra
Australia Development Lab, IBM
More information about the Binutils
mailing list