This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: How to inform the linker not to produce any data for a .bss section?
- From: Daniel Jacobowitz <drow at false dot org>
- To: PRC <panruochen at gmail dot com>
- Cc: binutils <binutils at sourceware dot org>
- Date: Sun, 9 Dec 2007 15:06:58 -0500
- Subject: Re: How to inform the linker not to produce any data for a .bss section?
- References: <200712091050318718404@gmail.com>
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