From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17248 invoked by alias); 9 Dec 2007 20:07:08 -0000 Received: (qmail 17110 invoked by uid 22791); 9 Dec 2007 20:07:07 -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; Sun, 09 Dec 2007 20:07:01 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id BC2269801E; Sun, 9 Dec 2007 20:06:59 +0000 (GMT) Received: from caradoc.them.org (22.svnf5.xdsl.nauticom.net [209.195.183.55]) by nan.false.org (Postfix) with ESMTP id 5E9249801D; Sun, 9 Dec 2007 20:06:59 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.68) (envelope-from ) id 1J1SQU-00070X-Ck; Sun, 09 Dec 2007 15:06:58 -0500 Date: Sun, 09 Dec 2007 20:07:00 -0000 From: Daniel Jacobowitz To: PRC Cc: binutils Subject: Re: How to inform the linker not to produce any data for a .bss section? Message-ID: <20071209200658.GA26653@caradoc.them.org> Mail-Followup-To: PRC , binutils References: <200712091050318718404@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200712091050318718404@gmail.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/msg00044.txt.bz2 On Sun, Dec 09, 2007 at 10:50:50AM +0800, PRC wrote: > 2 .bss 00000620 811eeb00 811eeb00 00002b00 2**3 > ALLOC > The linker create a real '.bss' section in the output ELF file and > store some data inside the section, which greatly increase the size > of the ELF file. No, it didn't. It takes up no space in the file because it does not have the CONTENTS flag. -- Daniel Jacobowitz CodeSourcery