From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16585 invoked by alias); 25 Feb 2011 23:59:16 -0000 Received: (qmail 16577 invoked by uid 22791); 25 Feb 2011 23:59:15 -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-iy0-f169.google.com (HELO mail-iy0-f169.google.com) (209.85.210.169) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 25 Feb 2011 23:59:11 +0000 Received: by iyf13 with SMTP id 13so1697768iyf.0 for ; Fri, 25 Feb 2011 15:59:10 -0800 (PST) Received: by 10.42.1.133 with SMTP id 5mr1489386icg.239.1298678350194; Fri, 25 Feb 2011 15:59:10 -0800 (PST) Received: from bubble.grove.modra.org ([115.187.252.19]) by mx.google.com with ESMTPS id d10sm1231296ibb.18.2011.02.25.15.59.06 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 25 Feb 2011 15:59:09 -0800 (PST) Received: by bubble.grove.modra.org (Postfix, from userid 1000) id B53A416DE62C; Sat, 26 Feb 2011 10:28:59 +1030 (CST) Date: Fri, 25 Feb 2011 23:59:00 -0000 From: Alan Modra To: "H.J. Lu" Cc: binutils@sourceware.org Subject: Re: PATCH: PR ld/12507: Can't build a program with -flto -nostdlib Message-ID: <20110225235859.GE5959@bubble.grove.modra.org> Mail-Followup-To: "H.J. Lu" , binutils@sourceware.org References: <20110224225913.GA3169@intel.com> <20110225232948.GD5959@bubble.grove.modra.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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/msg00324.txt.bz2 On Fri, Feb 25, 2011 at 03:45:14PM -0800, H.J. Lu wrote: > On Fri, Feb 25, 2011 at 3:29 PM, Alan Modra wrote: > > It would be better to put the entry symbol, and -u syms on the > > entry_symbol chain, into non_ironly_hash. > > I tried it and it doesn't work. How so? > Also, we only care about the entry symbol for LTO. I'd be a little surprised if there is a good reason to treat -u syms any differently from references in non-ir object files. -- Alan Modra Australia Development Lab, IBM