From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5111 invoked by alias); 3 Jul 2007 14:07:42 -0000 Received: (qmail 5061 invoked by uid 22791); 3 Jul 2007 14:07:41 -0000 X-Spam-Check-By: sourceware.org Received: from ns.suse.de (HELO mx1.suse.de) (195.135.220.2) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 03 Jul 2007 14:07:37 +0000 Received: from Relay2.suse.de (mail2.suse.de [195.135.221.8]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.suse.de (Postfix) with ESMTP id 9698E1231F; Tue, 3 Jul 2007 16:07:35 +0200 (CEST) From: Andreas Schwab To: "H.J. Lu" Cc: binutils@sourceware.org Subject: Re: ld -shared -pie vs. unresolved symbols References: <20070703133306.GA7129@lucon.org> X-Yow: Look! A ladder! Maybe it leads to heaven, or a sandwich! Date: Tue, 03 Jul 2007 14:12:00 -0000 In-Reply-To: <20070703133306.GA7129@lucon.org> (H. J. Lu's message of "Tue\, 3 Jul 2007 06\:33\:06 -0700") Message-ID: User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.97 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit 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: 2007-07/txt/msg00062.txt.bz2 "H.J. Lu" writes: > On Tue, Jul 03, 2007 at 03:30:36PM +0200, Andreas Schwab wrote: >> There is a problem with the ia64 linker that it crashes when seeing a >> R_IA64_PCREL21B relocation against an unresolved symbol, because no PLT >> has been allocated for it. This can be fixed with the patch below, but >> I'm not sure whether that combination should be allowed in the first >> place. >> > > Is this the same as > > http://sourceware.org/bugzilla/show_bug.cgi?id=4409 > > Does the Linux binutils 2.17.50.0.17 crash? It silently generates a shared library that crashes at runtime, so I'd rather ban the combination of -shared with -pie regardless of how the crash is resolved. Andreas. -- Andreas Schwab, SuSE Labs, schwab@suse.de SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."