From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25744 invoked by alias); 22 May 2006 20:39:16 -0000 Received: (qmail 25736 invoked by uid 22791); 22 May 2006 20:39:16 -0000 X-Spam-Check-By: sourceware.org Received: from mail.gmx.net (HELO mail.gmx.net) (213.165.64.20) by sourceware.org (qpsmtpd/0.31) with SMTP; Mon, 22 May 2006 20:39:13 +0000 Received: (qmail invoked by alias); 22 May 2006 20:39:11 -0000 Received: from host-6.mikroweb.hu (EHLO mail.bridge.intra) [193.17.175.6] by mail.gmx.net (mp024) with SMTP; 22 May 2006 22:39:11 +0200 X-Authenticated: #507653 Received: from localhost (localhost [127.0.0.1]) by localhost (Postfix) with ESMTP id 32CDCBB92 for ; Mon, 22 May 2006 22:39:10 +0200 (CEST) Received: from mail.bridge.intra ([127.0.0.1]) by localhost (lnx.bridge.intra [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 13410-06 for ; Mon, 22 May 2006 22:38:57 +0200 (CEST) Received: by mail.bridge.intra (Postfix, from userid 200) id 5E4D0BB94; Mon, 22 May 2006 22:38:57 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by mail.bridge.intra (Postfix) with ESMTP id 35FC2BB93 for ; Mon, 22 May 2006 22:38:57 +0200 (CEST) Date: Tue, 23 May 2006 00:12:00 -0000 From: "Peter S. Mazinger" To: binutils@sourceware.org Subject: Re: weak and strong aliases for global data fail In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Y-GMX-Trusted: 0 Mailing-List: contact binutils-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sourceware.org X-SW-Source: 2006-05/txt/msg00388.txt.bz2 On Wed, 17 May 2006, Peter S. Mazinger wrote: Could anyone tell me if this is a binutils bug (tested 2.16.1/2.16.92) or I should send it to the gcc list (tested with 3.4.6). It seems to me that it is rather an ld bug. Thanks, Peter > Hello! > > Attached tests show a case, when a final binary is OK if > compiled w/ -fPIC (or -fPIE, it does not have to be ET_DYN, but can be), > else it fails if using aliases (both weak and strong) for global data. > > Sorry for the "big" test cases, I couldn't make them smaller. > > Peter > > -- Peter S. Mazinger ID: 0xA5F059F2 Key fingerprint = 92A4 31E1 56BC 3D5A 2D08 BB6E C389 975E A5F0 59F2