projects
/
platform
/
upstream
/
binutils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
3138f28
)
fix PE file format detection
author
Nick Clifton
<nickc@redhat.com>
Tue, 28 Dec 1999 00:25:18 +0000
(
00:25
+0000)
committer
Nick Clifton
<nickc@redhat.com>
Tue, 28 Dec 1999 00:25:18 +0000
(
00:25
+0000)
bfd/ChangeLog
patch
|
blob
|
history
bfd/peicode.h
patch
|
blob
|
history
diff --git
a/bfd/ChangeLog
b/bfd/ChangeLog
index
8f147b7
..
83fb6c5
100644
(file)
--- a/
bfd/ChangeLog
+++ b/
bfd/ChangeLog
@@
-1,3
+1,8
@@
+1999-12-27 Nick Clifton <nickc@cygnus.com>
+
+ * peicode.h (pe_bfd_object_p): Only define for PE format
+ targets.
+
1999-12-17 Nick Clifton <nickc@cygnus.com>
* coff-i386.c (i3coff_object_p): Delete.
1999-12-17 Nick Clifton <nickc@cygnus.com>
* coff-i386.c (i3coff_object_p): Delete.
diff --git
a/bfd/peicode.h
b/bfd/peicode.h
index
84dfe57
..
8482b2d
100644
(file)
--- a/
bfd/peicode.h
+++ b/
bfd/peicode.h
@@
-362,6
+362,7
@@
pe_bfd_copy_private_bfd_data (ibfd, obfd)
#define coff_get_symbol_info _bfd_pe_get_symbol_info
#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;
static const bfd_target *
pe_bfd_object_p (abfd)
bfd * abfd;
@@
-390,7
+391,8
@@
pe_bfd_object_p (abfd)
if (signature == 0xffff0000)
{
if (signature == 0xffff0000)
{
- _bfd_error_handler (_("%s: Import Library Format archives are not currently supported"),
+ _bfd_error_handler (
+_("%s: Import Library Format archives are not currently supported"),
bfd_get_filename (abfd));
bfd_set_error (bfd_error_wrong_format);
bfd_get_filename (abfd));
bfd_set_error (bfd_error_wrong_format);
@@
-442,3
+444,4
@@
pe_bfd_object_p (abfd)
}
#define coff_object_p pe_bfd_object_p
}
#define coff_object_p pe_bfd_object_p
+#endif