This is the mail archive of the
cygwin-apps-cvs
mailing list for the cygwin-apps project.
rebase ChangeLog peflags.c
- From: corinna at sourceware dot org
- To: cygwin-apps-cvs at sourceware dot org
- Date: 6 Aug 2011 08:30:00 -0000
- Subject: rebase ChangeLog peflags.c
CVSROOT: /sourceware/projects/cygwin-apps-home/cvsfiles
Module name: rebase
Changes by: corinna@sourceware.org 2011-08-06 08:30:00
Modified files:
. : ChangeLog peflags.c
Log message:
* peflags.c: Include sys/mman.h on Cygwin and msys. Drop conditional
definitions of uint16_t and uint32_t. Use WORD rather than uint16_t
throughout, size_t rather than uint32_t.
(IMAGE_DLLCHARACTERISTICS_DYNAMIC_BASE): Define if non-existant to
workaround broken w32api. Fix usage of broken definition throughout.
(IMAGE_DLLCHARACTERISTICS_NX_COMPAT): Ditto.
(IMAGE_DLLCHARACTERISTICS_FORCE_INTEGRITY): Ditto.
(pe_get16): Remove.
(pe_get32): Remove.
(pe_set16): Remove.
(mmap): Define in terms of Win32 calls for non-Cygwin systems.
(munmap): Ditto.
(pe_file): New type to keep file mapping info.
(pe_open): New function to mmap PE/COFF files.
(pe_close): New function to unmap PE/COFF files.
(get_characteristics): Use pe_opem/pe_close and direct Windows
file structure access.
(set_coff_characteristics): Ditto.
(set_pe_characteristics): Ditto.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/rebase/ChangeLog.diff?cvsroot=cygwin-apps&r1=1.23&r2=1.24
http://sourceware.org/cgi-bin/cvsweb.cgi/rebase/peflags.c.diff?cvsroot=cygwin-apps&r1=1.5&r2=1.6