From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25431 invoked by alias); 12 Dec 2007 14:19:45 -0000 Received: (qmail 25419 invoked by uid 22791); 12 Dec 2007 14:19:45 -0000 X-Spam-Check-By: sourceware.org Received: from NaN.false.org (HELO nan.false.org) (208.75.86.248) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 12 Dec 2007 14:19:34 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id 8792E98022 for ; Wed, 12 Dec 2007 14:19:32 +0000 (GMT) Received: from caradoc.them.org (22.svnf5.xdsl.nauticom.net [209.195.183.55]) by nan.false.org (Postfix) with ESMTP id 41DA998020 for ; Wed, 12 Dec 2007 14:19:32 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.68) (envelope-from ) id 1J2SQt-0001xF-7h for binutils@sourceware.org; Wed, 12 Dec 2007 09:19:31 -0500 Date: Wed, 12 Dec 2007 14:19:00 -0000 From: Daniel Jacobowitz To: binutils@sourceware.org Subject: Re: How to inform the linker not to produce any data for a .bsssection? Message-ID: <20071212141931.GA7498@caradoc.them.org> Mail-Followup-To: binutils@sourceware.org References: <20071209200658.GA26653@caradoc.them.org> <200712110919091773244@gmail.com> <20071211125855.GA25143@caradoc.them.org> <475FA4FF.5010100@ntlworld.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <475FA4FF.5010100@ntlworld.com> User-Agent: Mutt/1.5.15 (2007-04-09) X-IsSubscribed: yes 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: 2007-12/txt/msg00073.txt.bz2 On Wed, Dec 12, 2007 at 09:08:15AM +0000, Dave Murphy wrote: > Daniel Jacobowitz wrote: > > This is necessary alignment. If you don't want .bss to take up space > > in the file, do not put allocated sections after it. > > > > Is there any way to change that behavior without causing problems? Try manually defining PHDRs? If the bss section is the last thing in its segment, it won't take extra load space. -- Daniel Jacobowitz CodeSourcery