This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: binutils & Windows device drivers


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]