From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21516 invoked by alias); 11 Oct 2010 15:21:15 -0000 Received: (qmail 21504 invoked by uid 22791); 11 Oct 2010 15:21:13 -0000 X-SWARE-Spam-Status: No, hits=-0.9 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE X-Spam-Check-By: sourceware.org Received: from mail-iw0-f169.google.com (HELO mail-iw0-f169.google.com) (209.85.214.169) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 11 Oct 2010 15:21:09 +0000 Received: by iwn1 with SMTP id 1so5391986iwn.0 for ; Mon, 11 Oct 2010 08:21:08 -0700 (PDT) MIME-Version: 1.0 Received: by 10.42.177.3 with SMTP id bg3mr759010icb.234.1286810467935; Mon, 11 Oct 2010 08:21:07 -0700 (PDT) Received: by 10.231.5.17 with HTTP; Mon, 11 Oct 2010 08:21:07 -0700 (PDT) In-Reply-To: <20101011144357.GA1024@caradoc.them.org> References: <20101011015506.GM26553@bubble.grove.modra.org> <20101011032919.GP26553@bubble.grove.modra.org> <20101011144357.GA1024@caradoc.them.org> Date: Mon, 11 Oct 2010 15:21:00 -0000 Message-ID: Subject: Re: Load addresses for ELF program headers on ARM From: Matt Fischer To: Matt Fischer , binutils@sourceware.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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: 2010-10/txt/msg00167.txt.bz2 On Mon, Oct 11, 2010 at 9:44 AM, Daniel Jacobowitz w= rote: > On Sun, Oct 10, 2010 at 10:38:59PM -0500, Matt Fischer wrote: >> On Sun, Oct 10, 2010 at 10:29 PM, Alan Modra wrote: >> > On Sun, Oct 10, 2010 at 09:43:27PM -0500, Matt Fischer wrote: >> >> However, when I do this, it creates one gigantic segment which has >> >> both sections at their relocation addresses, and zero-fills the 200MB >> >> or so in between them. =A0It seems like the linker is not correctly >> >> respecting load addresses when it tries to fit sections into segments. >> >> =A0Is that something that can be gotten around somehow? >> > >> > This is a 2.20 bug. =A0With current mainline you'll get a warning >> > =A0section `DATA' can't be allocated in segment 0 >> > but ld will place DATA immediately after TEXT in the segment. =A0The >> > warning is because the VMA for DATA is outside the virtual addresses >> > covered by your program header. =A0(The warning should probably say >> > something to that effect rather than "can't be allocated" when the >> > section *is* allocated there.) >> >> Ah, excellent. =A0Ok, so I'll just patch the binaries for now, and then >> pick up that change once it's available. =A0Dan, any idea when that fix >> will make its way into Sourcery Lite? > > A bit off topic for this list but... If this fix is in > assign_file_positions_for_load_sections, which I think it is, > then it will be in our November releases. Perfect. Thanks to both of you for all your help with this. --Matt P.S. Dan--sorry, you're right, I should have queried for the Sourcery info elsewhere. Thanks for obliging me, though. :)