From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15617 invoked by alias); 1 Feb 2011 21:11:07 -0000 Received: (qmail 15607 invoked by uid 22791); 1 Feb 2011 21:11:06 -0000 X-SWARE-Spam-Status: No, hits=-2.2 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-wy0-f169.google.com (HELO mail-wy0-f169.google.com) (74.125.82.169) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 01 Feb 2011 21:11:03 +0000 Received: by wyj26 with SMTP id 26so7642522wyj.0 for ; Tue, 01 Feb 2011 13:11:00 -0800 (PST) Received: by 10.227.24.73 with SMTP id u9mr3956240wbb.168.1296594660780; Tue, 01 Feb 2011 13:11:00 -0800 (PST) Received: from [192.168.2.99] (cpc2-cmbg8-0-0-cust61.5-4.cable.virginmedia.com [82.6.108.62]) by mx.google.com with ESMTPS id 7sm11702370wet.0.2011.02.01.13.10.59 (version=SSLv3 cipher=RC4-MD5); Tue, 01 Feb 2011 13:10:59 -0800 (PST) Message-ID: <4D487CED.7060603@gmail.com> Date: Tue, 01 Feb 2011 21:11:00 -0000 From: Dave Korn User-Agent: Thunderbird 2.0.0.17 (Windows/20080914) MIME-Version: 1.0 To: "H.J. Lu" CC: binutils@sourceware.org Subject: Re: PATCH: PR ld/12277: Linker error: "final link failed: Nonrepresentable section on output" References: <20110201203840.GA12996@intel.com> In-Reply-To: <20110201203840.GA12996@intel.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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/msg00011.txt.bz2 On 01/02/2011 20:38, H.J. Lu wrote: > Hi, > > This patch avoids reporting undefined symbols referenced from plugin > dummy. Any objections? I'm working on a different plan that I think would be more complete and requires only modifying ld. Can you see any reason why this would not work: After reading all input files, but before calling the plugin's all_symbols_read hook, run down the list of undefs; find any that came originally from IR-only dummy BFDs; delete them by setting the type of the link hash entry back to bfd_hash_new and marking the section they came from SEC_EXCLUDE; finally call bfd_link_repair_undef_list to remove them from the undefs chain. I'd rather do it that way if it works. cheers, DaveK