This is the mail archive of the
binutils@sourceware.cygnus.com
mailing list for the binutils project.
Fix for PE object file detection
- To: binutils at sourceware dot cygnus dot com
- Subject: Fix for PE object file detection
- From: Nick Clifton <nickc at cygnus dot com>
- Date: Mon, 27 Dec 1999 16:24:37 -0800
- Cc: khan at NanoTech dot Wisc dot EDU
Hi Guys,
I am going to check in the following patch which fixes a bug in my
recent merge of the routines to detect PE format executables. The
problem was that I forgot to enable the check only when the target
format is a PE format target, rather than any old COFF format
target.
Cheers
Nick
1999-12-27 Nick Clifton <nickc@cygnus.com>
* peicode.h (pe_bfd_object_p): Only define for PE format
targets.
Index: bfd/peicode.h
===================================================================
RCS file: /cvs/binutils/binutils/bfd/peicode.h,v
retrieving revision 1.15
diff -p -r1.15 peicode.h
*** peicode.h 1999/12/17 19:03:09 1.15
--- peicode.h 1999/12/28 00:24:04
*************** pe_bfd_copy_private_bfd_data (ibfd, obfd
*** 362,367 ****
--- 362,368 ----
#define coff_get_symbol_info _bfd_pe_get_symbol_info
+ #ifdef COFF_IMAGE_WITH_PE
static const bfd_target *
pe_bfd_object_p (abfd)
bfd * abfd;
*************** pe_bfd_object_p (abfd)
*** 442,444 ****
--- 442,445 ----
}
#define coff_object_p pe_bfd_object_p
+ #endif