From owner-freebsd-hackers Fri Nov 15 10:34:45 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id KAA06571 for hackers-outgoing; Fri, 15 Nov 1996 10:34:45 -0800 (PST) Received: from phaeton.artisoft.com (phaeton.Artisoft.COM [198.17.250.211]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id KAA06562 for ; Fri, 15 Nov 1996 10:34:30 -0800 (PST) Received: (from terry@localhost) by phaeton.artisoft.com (8.6.11/8.6.9) id LAA26525; Fri, 15 Nov 1996 11:21:55 -0700 From: Terry Lambert Message-Id: <199611151821.LAA26525@phaeton.artisoft.com> Subject: Re: data segment To: imp@village.org (Warner Losh) Date: Fri, 15 Nov 1996 11:21:55 -0700 (MST) Cc: terry@lambert.org, toor@dyson.iquest.net, cskim@cslsun10.sogang.ac.kr, freebsd-hackers@FreeBSD.org In-Reply-To: from "Warner Losh" at Nov 14, 96 10:48:36 pm X-Mailer: ELM [version 2.4 PL24] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-hackers@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk > : Any chance we can get some additional mappings defined to coincide with > : the Microsoft mappings? I've been trying to load (and use) some simple > : NT drivers, and they want "pageable" (which I wouldn't expect to do > : anything, initially anyway) and "discradable" for init, etc., etc.. > : > : If you need a full list, I can provide it with a day or so lead time. > > Isn't the Microsoft NT stuff PEI format, which is basically COFF or > ECOFF with some mutant headers and minor tweaks? Isn't that different > than our current a.out? Or am I confused again. Yeah, it's different than a.out. 8-). I'm more concerned with having bits to represent the segment attributes that are possible in PE (Portable Executable) format files. Microsoft didn't formerly provide this information. Now they hide it. You can download it from: http://www.microsoft.com/win32dev/base/pefile.htm I am interested in handling the attribute bits: 0x00000020 Code section 0x00000040 Initialized data section 0x00000080 Uninitialized data section 0x04000000 Section cannot be cached 0x08000000 Section is not pageable 0x10000000 Section is shared 0x20000000 Executable section 0x40000000 Readable section 0x80000000 Writable section (obviously, the first 3 are treated as mutually exclusive; the rest are attribute bits applicable to one of the first three). Within the context of a VM page. Basically, segments in a loaded image are grouped by segment indentifier, which implies a set of attributes. There's more documentation on this in "WinICE", where they explain the output of the "VXD" command's "Seg" column. Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers.