From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31974 invoked by alias); 9 Apr 2002 11:31:41 -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 31902 invoked from network); 9 Apr 2002 11:31:39 -0000 Received: from unknown (HELO dell-paw-2.cambridge.redhat.com) (195.224.55.226) by sources.redhat.com with SMTP; 9 Apr 2002 11:31:39 -0000 Received: from north-pole.nickc.cambridge.redhat.com (host217-35-25-247.in-addr.btopenworld.com [217.35.25.247]) by dell-paw-2.cambridge.redhat.com (Postfix) with ESMTP id 2F8702B53D for ; Tue, 9 Apr 2002 12:31:38 +0100 (BST) Received: from north-pole.nickc.cambridge.redhat.com.nickc.cambridge.redhat.com (localhost [127.0.0.1]) by north-pole.nickc.cambridge.redhat.com (Postfix) with ESMTP id B08701C34D; Tue, 9 Apr 2002 12:31:14 +0100 (BST) To: Laurent Pinchart Cc: binutils@sources.redhat.com Subject: Re: binutils & Windows device drivers References: <3CA17B05.1020804@skynet.be> <3CB2BADA.2010501@skynet.be> From: Nick Clifton Date: Tue, 09 Apr 2002 04:31:00 -0000 In-Reply-To: <3CB2BADA.2010501@skynet.be> Message-ID: User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2002-04/txt/msg00111.txt.bz2 Hi Laurent, > >> Could anyone tell me if binutils supports the PE-386 format used by > >> Windows device drivers (.sys) ? > >> > >Sadly, it appears that this format is not supported. > > > Actually the .sys format seems to be a 'standard' PE-i386. The > problem I experienced with the latest CVS binutils was that > IMAGE_SCN_MEM_NOT_PAGED was not supported. I removed the check in > bfd, and I got objdump to work properly (which was all I needed). Is > there an easy way to add support for IMAGE_SCN_MEM_NOT_PAGED without > too much changes in BFD ? Probably not. BFD does not currently support the concept of a non-paged section. (It supports non-paged binary object files, where all of the sections are not paged, but not on a per-section basis). Such support could be added of course, but it would involve someone doing the work. If the only problem you had was bfd barfing on the IMAGE_SCN_MEM_NOT_PAGED flag however, then it might well be possible to add a switch to change the error message to a warning and allow the dump to continue. Cheers Nick