From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30804 invoked by alias); 30 Oct 2007 01:19:58 -0000 Received: (qmail 30786 invoked by uid 22791); 30 Oct 2007 01:19:57 -0000 X-Spam-Check-By: sourceware.org Received: from pool-70-20-17-24.bstnma.fios.verizon.net (HELO ednor.cgf.cx) (70.20.17.24) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 30 Oct 2007 01:19:55 +0000 Received: by ednor.cgf.cx (Postfix, from userid 201) id 596BC68F040; Mon, 29 Oct 2007 21:19:53 -0400 (EDT) Date: Tue, 30 Oct 2007 01:27:00 -0000 From: Christopher Faylor To: Pedro Alves , gdb-patches@sourceware.org, insight@sourceware.org Subject: Re: syms_from_objfile() warnings and win32-nat.c IO redirection (Was: suppress annoying warnings about cygwin1.dbg) Message-ID: <20071030011953.GA28693@ednor.casa.cgf.cx> Mail-Followup-To: Pedro Alves , gdb-patches@sourceware.org, insight@sourceware.org References: <20070625234015.GA17640@caradoc.them.org> <46833EB0.E8ABC8CB@dessent.net> <20070628104601.GA10328@caradoc.them.org> <20071011195327.GB8200@caradoc.them.org> <470FFB00.9909C731@dessent.net> <47101DB4.6010204@portugalmail.pt> <20071024184207.GA10943@caradoc.them.org> <4725378D.5010800@portugalmail.pt> <4053daab0710290203q5aa79bam6a8e87e5c6a837ba@mail.gmail.com> <20071029123318.GA16009@caradoc.them.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20071029123318.GA16009@caradoc.them.org> User-Agent: Mutt/1.5.16 (2007-06-09) Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2007-10/txt/msg00786.txt.bz2 On Mon, Oct 29, 2007 at 08:33:18AM -0400, Daniel Jacobowitz wrote: >On Mon, Oct 29, 2007 at 09:03:08AM +0000, Pedro Alves wrote: >> Can anyone point me into why the non-debug sections are >> preserved (as NOBITS) in the seperate debug file? >> Could it be so support the case where the section headers >> were stripped in the main file? >> To help if there are relocs against section symbols in >> the debug info? Not sure if that makes sense in >> a NOBITS section. >> Or, are they added so to keep tools that currently expect >> them there happy? > >I don't think you can do without them, because you have a symbol table >in the separate file; the symbol table needs to say which section each >symbol is defined in. But I'm just extrapolating this from what I >know about ELF. What I know about PE/COFF wouldn't fill a teacup. It should be equivalent in PE/COFF, IIRC. cgf