Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Date: Fri, 17 Jun 2005 10:30:55 -0500
From: Brian Ford <Brian.Ford@FlightSafety.com>
X-X-Sender: ford@PC1163-8460-XP.flightsafety.com
Reply-To: cygwin@cygwin.com
To: cygwin@cygwin.com
Subject: Re: Problem with using stripped cygwin1.dll built from CVS
In-Reply-To: <20050617143751.GE8532@trixie.casa.cgf.cx>
Message-ID: <Pine.CYG.4.58.0506171023520.2440@PC1163-8460-XP.flightsafety.com>
References: <42A6298E.303@acm.org> <42A62DAE.F4153556@dessent.net>  <42A632C5.7040306@acm.org> <20050608084920.GN23172@calimero.vinschen.de>  <20050608143656.GB17698@trixie.casa.cgf.cx> <20050608214341.GA21349@trixie.casa.cgf.cx>  <Pine.CYG.4.58.0506170925200.2440@PC1163-8460-XP.flightsafety.com>  <20050617143751.GE8532@trixie.casa.cgf.cx>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-IsSubscribed: yes

On Fri, 17 Jun 2005, Christopher Faylor wrote:

> On Fri, Jun 17, 2005 at 09:29:48AM -0500, Brian Ford wrote:
> >I wish I would have known this was possible while working on DWARF 2
> >debugging.  Everything I read stated: "If it has a section header,
> >Windows' brain dead loader will load it regardless of section
> >attributes".  I hope it really works on all supported platforms.
>
> It's a documented field in PE's section header, so I don't see why it
> wouldn't work.  The only brain-dead thing that the loader does is to go
> ahead and load a section into memory if it is marked as readable or
> writable as well as noload.

Thanks for the reply.

By it, can I assume you meant IMAGE_SCN_TYPE_NOLOAD?

In the only "official" PE COFF documentation I could find:

Microsoft Portable Executable and Common Object File Format Specification
Revision 6.0 - February 1999

4.1 Section Flags:

IMAGE_SCN_TYPE_NOLOAD 0x00000002 Reserved for future use.

Don't get me wrong; I really hope it works everywhere.  I was just too
skeptical to use it before myself given that it appeared not to work
because of the binutils bug.

-- 
Brian Ford
Senior Realtime Software Engineer
VITAL - Visual Simulation Systems
FlightSafety International
the best safety device in any aircraft is a well-trained pilot...

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

