From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20962 invoked by alias); 26 Feb 2011 09:15:53 -0000 Received: (qmail 20954 invoked by uid 22791); 26 Feb 2011 09:15:52 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW X-Spam-Check-By: sourceware.org Received: from mail-pv0-f169.google.com (HELO mail-pv0-f169.google.com) (74.125.83.169) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 26 Feb 2011 09:15:48 +0000 Received: by pvg4 with SMTP id 4so562473pvg.0 for ; Sat, 26 Feb 2011 01:15:47 -0800 (PST) Received: by 10.142.247.35 with SMTP id u35mr2410464wfh.205.1298711746917; Sat, 26 Feb 2011 01:15:46 -0800 (PST) Received: from bubble.grove.modra.org ([115.187.252.19]) by mx.google.com with ESMTPS id s41sm2290146wfc.3.2011.02.26.01.15.44 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 26 Feb 2011 01:15:46 -0800 (PST) Received: by bubble.grove.modra.org (Postfix, from userid 1000) id A612516DE62C; Sat, 26 Feb 2011 19:45:40 +1030 (CST) Date: Sat, 26 Feb 2011 09:15:00 -0000 From: Alan Modra To: Dave Korn Cc: "binutils@sourceware.org" Subject: Re: [3/6][PATCH] Revise linker plugin API to better preserve link order. Message-ID: <20110226091540.GL5959@bubble.grove.modra.org> Mail-Followup-To: Dave Korn , "binutils@sourceware.org" References: <4D684CB8.6020106@gmail.com> <4D684D00.70803@gmail.com> <4D684D45.5010107@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4D684D45.5010107@gmail.com> User-Agent: Mutt/1.5.20 (2009-06-14) X-IsSubscribed: yes Mailing-List: contact binutils-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sourceware.org X-SW-Source: 2011-02/txt/msg00356.txt.bz2 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