From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30133 invoked by alias); 29 Sep 2006 00:11:43 -0000 Received: (qmail 30117 invoked by uid 22791); 29 Sep 2006 00:11:42 -0000 X-Spam-Check-By: sourceware.org Received: from omta03sl.mx.bigpond.com (HELO omta03sl.mx.bigpond.com) (144.140.92.155) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 29 Sep 2006 00:11:40 +0000 Received: from bubble.grove.modra.org ([60.226.236.165]) by omta03sl.mx.bigpond.com with ESMTP id <20060929001137.GTCP8785.omta03sl.mx.bigpond.com@bubble.grove.modra.org>; Fri, 29 Sep 2006 00:11:37 +0000 Received: by bubble.grove.modra.org (Postfix, from userid 500) id EDD9B1B3C1; Fri, 29 Sep 2006 09:42:09 +0930 (CST) Date: Fri, 29 Sep 2006 06:42:00 -0000 From: Alan Modra To: Paul Brook Cc: binutils@sourceware.org, Paul Koning , hjl@lucon.org, vgoyal@redhat.com, drow@false.org, binutils@sources.redhat.com Subject: Re: Linker Bug or Design Intent (Absolute symbols in zero sized sections) Message-ID: <20060929001209.GD30829@bubble.grove.modra.org> Mail-Followup-To: Paul Brook , binutils@sourceware.org, Paul Koning , hjl@lucon.org, vgoyal@redhat.com, drow@false.org, binutils@sources.redhat.com References: <4519350D.2090208@redhat.com> <17689.23227.571136.559871@gargle.gargle.HOWL> <20060926232851.GB1534@bubble.grove.modra.org> <200609281742.31472.paul@codesourcery.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200609281742.31472.paul@codesourcery.com> User-Agent: Mutt/1.5.9i X-IsSubscribed: yes 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-09/txt/msg00383.txt.bz2 On Thu, Sep 28, 2006 at 05:42:29PM +0100, Paul Brook wrote: > If we remove the section shouldn't we also remove the symbol? The idea was to support a script like the following. When .data is empty and removed, you might still want __data_start defined. The user has defined __data_start in .data because he wants the start sym adjusted for any alignment that might occur due to input .data section alignment. .data : { __data_start = .; *(.data) } .data2 : { *(.data2) } __data_end = .; -- Alan Modra IBM OzLabs - Linux Technology Centre From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30531 invoked by alias); 29 Sep 2006 00:11:45 -0000 Received: (qmail 30289 invoked by uid 22791); 29 Sep 2006 00:11:44 -0000 X-Spam-Check-By: sourceware.org Received: from omta03sl.mx.bigpond.com (HELO omta03sl.mx.bigpond.com) (144.140.92.155) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 29 Sep 2006 00:11:40 +0000 Received: from bubble.grove.modra.org ([60.226.236.165]) by omta03sl.mx.bigpond.com with ESMTP id <20060929001137.GTCP8785.omta03sl.mx.bigpond.com@bubble.grove.modra.org>; Fri, 29 Sep 2006 00:11:37 +0000 Received: by bubble.grove.modra.org (Postfix, from userid 500) id EDD9B1B3C1; Fri, 29 Sep 2006 09:42:09 +0930 (CST) Date: Fri, 29 Sep 2006 08:06:00 -0000 From: Alan Modra To: Paul Brook Cc: binutils@sourceware.org, Paul Koning , hjl@lucon.org, vgoyal@redhat.com, drow@false.org, binutils@sources.redhat.com Subject: Re: Linker Bug or Design Intent (Absolute symbols in zero sized sections) Message-ID: <20060929001209.GD30829@bubble.grove.modra.org> Mail-Followup-To: Paul Brook , binutils@sourceware.org, Paul Koning , hjl@lucon.org, vgoyal@redhat.com, drow@false.org, binutils@sources.redhat.com References: <4519350D.2090208@redhat.com> <17689.23227.571136.559871@gargle.gargle.HOWL> <20060926232851.GB1534@bubble.grove.modra.org> <200609281742.31472.paul@codesourcery.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200609281742.31472.paul@codesourcery.com> User-Agent: Mutt/1.5.9i X-IsSubscribed: yes 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-09/txt/msg00384.txt.bz2 Message-ID: <20060929080600.wa4mUqmKGCWdSM_eGgIADh25wXlchB7gRXZRRFjoZ_4@z> On Thu, Sep 28, 2006 at 05:42:29PM +0100, Paul Brook wrote: > If we remove the section shouldn't we also remove the symbol? The idea was to support a script like the following. When .data is empty and removed, you might still want __data_start defined. The user has defined __data_start in .data because he wants the start sym adjusted for any alignment that might occur due to input .data section alignment. .data : { __data_start = .; *(.data) } .data2 : { *(.data2) } __data_end = .; -- Alan Modra IBM OzLabs - Linux Technology Centre