From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24492 invoked by alias); 5 Apr 2003 06:48:09 -0000 Mailing-List: contact binutils-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sources.redhat.com Received: (qmail 24298 invoked from network); 5 Apr 2003 06:48:07 -0000 Received: from unknown (63.201.54.26) by sources.redhat.com with QMTP; 5 Apr 2003 06:48:07 -0000 Received: (qmail 27548 invoked by uid 10); 5 Apr 2003 06:48:06 -0000 Received: (qmail 31131 invoked by uid 500); 5 Apr 2003 06:48:02 -0000 Mail-Followup-To: binutils@sources.redhat.com, jhein@timing.com To: John E Hein Cc: binutils@sources.redhat.com Subject: Re: coff section flags: STYP_COPY, in particular, for TI COFF files References: <16014.10221.454221.906570@gromit.timing.com> From: Ian Lance Taylor Date: Sat, 05 Apr 2003 06:48:00 -0000 In-Reply-To: <16014.10221.454221.906570@gromit.timing.com> Message-ID: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2003-04/txt/msg00138.txt.bz2 John E Hein writes: > Sections flagged by STYP_COPY are to be relocated and loaded, but not > allocated. For instance, there's a .vers section that has section > flags 0x50 (STYP_COPY | STYP_DATA). binutils marks these with > SEC_LOAD & SEC_ALLOC (loaded & allocated). How can something be loaded but not allocated? In BFD lingo, loaded means that the section should be loaded into memory when the program is run. Allocated means that a portion of memory should be set aside for the section at link time. It's possible to have a section which is allocated but not loaded: the .bss section is one--there is no need to load it because the contents are known to be zero. But if a section is loaded but not allocated, then where are you supposed to load it? Ian