From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15883 invoked by alias); 6 Jun 2014 12:17:11 -0000 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 Received: (qmail 15872 invoked by uid 89); 6 Jun 2014 12:17:10 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.7 required=5.0 tests=AWL,BAYES_50,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-pd0-f175.google.com Received: from mail-pd0-f175.google.com (HELO mail-pd0-f175.google.com) (209.85.192.175) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Fri, 06 Jun 2014 12:17:06 +0000 Received: by mail-pd0-f175.google.com with SMTP id z10so2356464pdj.34 for ; Fri, 06 Jun 2014 05:17:04 -0700 (PDT) X-Received: by 10.68.143.231 with SMTP id sh7mr499351pbb.7.1402057024098; Fri, 06 Jun 2014 05:17:04 -0700 (PDT) Received: from bubble.grove.modra.org (CPE-58-160-155-134.oycza5.sa.bigpond.net.au. [58.160.155.134]) by mx.google.com with ESMTPSA id pr4sm35249530pbb.53.2014.06.06.05.17.02 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 06 Jun 2014 05:17:03 -0700 (PDT) Received: by bubble.grove.modra.org (Postfix, from userid 1000) id 80843EA4AC8; Fri, 6 Jun 2014 21:46:59 +0930 (CST) Date: Fri, 06 Jun 2014 12:17:00 -0000 From: Alan Modra To: Sebastian Huber Cc: binutils@sourceware.org Subject: Re: 32-bit PowerPC sdata linker problem Message-ID: <20140606121659.GJ5592@bubble.grove.modra.org> Mail-Followup-To: Sebastian Huber , binutils@sourceware.org References: <53918356.3040102@embedded-brains.de> <20140606105420.GH5592@bubble.grove.modra.org> <5391A4BF.2030308@embedded-brains.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5391A4BF.2030308@embedded-brains.de> User-Agent: Mutt/1.5.21 (2010-09-15) X-IsSubscribed: yes X-SW-Source: 2014-06/txt/msg00063.txt.bz2 On Fri, Jun 06, 2014 at 01:23:43PM +0200, Sebastian Huber wrote: > On 2014-06-06 12:54, Alan Modra wrote: > >Hmm, I'm surprised that your git bisect found this patch. Was > >_SDA_BASE_ set differently before this? > > A diff -u map.ok map.error yields: > > @@ -6549,10 +6550,11 @@ > 0x0000000000008000 PROVIDE (_SDA_BASE_, 0x8000) > *(.sdata .sdata.* .gnu.linkonce.s.*) > .sdata 0x00000000000d7c00 0x0 > /opt/rtems-4.11/lib64/gcc/powerpc-rtems4.11/4.8.3/m603e/ecrti.o > - 0x00000000000d7c00 _SDA_BASE_ > 0x00000000000d7c00 __SDATA_START__ > .sdata 0x00000000000d7c00 0x4 > /opt/rtems-4.11/lib64/gcc/powerpc-rtems4.11/4.8.3/m603e/crtbegin.o > 0x00000000000d7c00 __dso_handle > + 0x00000000000dfc00 _SDA_BASE_ > + .sdata 0x00000000000d7c04 0x0 > /opt/rtems-4.11/lib64/gcc/powerpc-rtems4.11/4.8.3/m603e/crtbegin.o > .sdata 0x00000000000d7c04 0x4c b-br_uid/init.o > 0x00000000000d7c0c rtems_shell_Initial_aliases > 0x00000000000d7c14 > _RTEMS_tasks_Initialize_user_tasks_p Ah, light dawns. I'm guessing you still have a definition for _SDA_BASE_ in your linker script, but using PROVIDE. Due to the way I implemented the automatic define of _SDA_BASE_, PROVIDE in a linker script won't override the automatic define. That's a bug. -- Alan Modra Australia Development Lab, IBM