From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4129 invoked by alias); 14 Mar 2005 11:44:59 -0000 Mailing-List: contact binutils-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sources.redhat.com Received: (qmail 4047 invoked from network); 14 Mar 2005 11:44:50 -0000 Received: from unknown (HELO wigwam.mikroweb.hu) (193.17.175.10) by sourceware.org with SMTP; 14 Mar 2005 11:44:50 -0000 Received: from [10.1.43.89] (helo=mail.bridge.intra) by wigwam.mikroweb.hu with esmtp (Exim 4.50) id 1DAo02-0002Al-EO; Mon, 14 Mar 2005 12:44:45 +0100 Received: from localhost (localhost [127.0.0.1]) by localhost (Postfix) with ESMTP id F23413923; Mon, 14 Mar 2005 12:44:41 +0100 (CET) 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 14924-05; Mon, 14 Mar 2005 12:44:39 +0100 (CET) Received: by mail.bridge.intra (Postfix, from userid 200) id 6B26339D5; Mon, 14 Mar 2005 12:44:39 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by mail.bridge.intra (Postfix) with ESMTP id 597703923; Mon, 14 Mar 2005 12:44:39 +0100 (CET) Date: Mon, 14 Mar 2005 11:44:00 -0000 From: "Peter S. Mazinger" To: Daniel Jacobowitz Cc: binutils@sourceware.org Subject: Re: binutils 2.15 / gcc-3.3.5 (3.4.3) produce text relocations on arm In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-SW-Source: 2005-03/txt/msg00376.txt.bz2 On Wed, 5 Jan 2005, Peter S. Mazinger wrote: > On Tue, 4 Jan 2005, Daniel Jacobowitz wrote: > > > On Tue, Jan 04, 2005 at 06:16:56PM +0100, Peter S. Mazinger wrote: > > > On Tue, 4 Jan 2005, Daniel Jacobowitz wrote: > > > > > > > On Tue, Jan 04, 2005 at 04:25:26PM +0100, Peter S. Mazinger wrote: > > > > > Hello! > > > > > > > > > > I have tried some versions of binutils-2.15 (up to and including > > > > > 2.15.94.0.2) in conjunction w/ gcc-3.3.5 and gcc-3.4.3, all combinations > > > > > produce text relocations on x86 (using glibc / uclibc) in shared libs. > > > > > Can't tell if gcc or binutils produce this, maybe a linker script? > > > > > > > > > > Please CC to me, thanks Peter > > > > > > > > Have you checked whether you are actually producing text relocations, > > > > or just setting DT_TEXTREL? I just encountered another binutils ARM > > > > bug which set DT_TEXTREL incorrectly. > > > > > > I have checked: readelf -d file | grep TEXT > > > > Then could you check whether any of the relocations are actually in the > > text segment? > > How to do that? > > Could you provide me a patch for the ARM bug you have found (setting > DT_TEXTREL incorrectly)? Nothing changed in the meantime ;-( I have tested binutils-cvs (as of 20050222) and no better. Finally it seems that the DT_TEXTREL entry is coming from assembler sources, C code seems to be linked correctly. on another note: MAXPAGESIZE=0x8000 (as of bfd/elf.c) for arm, please change that in ld/emulparams/armelf.sh. please CC to me, not on list. Thanks, Peter -- Peter S. Mazinger ID: 0xA5F059F2 Key fingerprint = 92A4 31E1 56BC 3D5A 2D08 BB6E C389 975E A5F0 59F2