Fix for PE object file detection
Nick Clifton
nickc@cygnus.com
Mon Dec 27 16:24:00 GMT 1999
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
More information about the Binutils
mailing list