This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: [PATCH] PE image checksum
- From: DJ Delorie <dj at delorie dot com>
- To: chorns at users dot sourceforge dot net
- Cc: binutils at sourceware dot cygnus dot com
- Date: Wed, 19 Dec 2001 23:23:15 -0500
- Subject: Re: [PATCH] PE image checksum
- References: <01120101184103.02008@exception.adsl.dk>
Have you tried this patch? It looks to me like you're trying to
compute the checksum of the file before the file is even written out
(only the initial header is written at that point).
EXEC_P means that there's an aoutheader. Use COFF_IMAGE_WITH_PE to
conditionalize code for PE executables.