This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: noload sections
- From: Paul Koning <pkoning at equallogic dot com>
- To: raptorbrino at aim dot com
- Cc: binutils at sourceware dot org
- Date: Tue, 11 Dec 2007 16:35:01 -0500
- Subject: Re: noload sections
- References: <8CA0A53D30DD17C-7C8-2687@WEBMAIL-DG07>
>>>>> "raptorbrino" == raptorbrino <raptorbrino@aim.com> writes:
raptorbrino> Hi All, In looking at binutils-2.18, a NOLOAD section
raptorbrino> (i.e. .bss) is allowed to reside in a LOAD segment. Is
raptorbrino> this okay? If it is okay, the NOLOAD section shouldn't
raptorbrino> add to the segment p_memsz, but it does. Is this a bug,
raptorbrino> or is my thinking way off?
It adds to p_memsz because it's an ALLOC section (it takes memory).
But it doesn't add to the file size (it's a NOLOAD section).
paul