This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [3/6][PATCH] Revise linker plugin API to better preserve link order.
- From: Alan Modra <amodra at gmail dot com>
- To: Dave Korn <dave dot korn dot cygwin at gmail dot com>
- Cc: "binutils at sourceware dot org" <binutils at sourceware dot org>
- Date: Sat, 26 Feb 2011 19:45:40 +1030
- Subject: Re: [3/6][PATCH] Revise linker plugin API to better preserve link order.
- References: <4D684CB8.6020106@gmail.com> <4D684D00.70803@gmail.com> <4D684D45.5010107@gmail.com>
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