diff options
author | Jan Kratochvil <jan.kratochvil@redhat.com> | 2011-07-20 19:22:30 +0000 |
---|---|---|
committer | Jan Kratochvil <jan.kratochvil@redhat.com> | 2011-07-20 19:22:30 +0000 |
commit | 156f6ad80352423ffa9387e0d0a07d336a984824 (patch) | |
tree | 97eafbb442be17c4894ef8178bc0be140ef9ef3f /bfd/coff-i386.c | |
parent | 1364323a419500dd6b486eb6fc52d5afb83e82e6 (diff) | |
download | gdb-156f6ad80352423ffa9387e0d0a07d336a984824.zip gdb-156f6ad80352423ffa9387e0d0a07d336a984824.tar.gz gdb-156f6ad80352423ffa9387e0d0a07d336a984824.tar.bz2 |
bfd/
Fix false coff-go32-exe matches.
* coff-i386.c (TARGET_SYM) <_bfd_check_format>: Conditionally use
COFF_CHECK_FORMAT.
* coff-stgo32.c (go32_check_format): New forward declaration.
(COFF_CHECK_FORMAT): New defintion.
(go32_check_format): New function.
Diffstat (limited to 'bfd/coff-i386.c')
-rw-r--r-- | bfd/coff-i386.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/bfd/coff-i386.c b/bfd/coff-i386.c index 425a0c1..2f17a55 100644 --- a/bfd/coff-i386.c +++ b/bfd/coff-i386.c @@ -671,8 +671,13 @@ const bfd_target bfd_getl16, bfd_getl_signed_16, bfd_putl16, /* hdrs */ /* Note that we allow an object file to be treated as a core file as well. */ - {_bfd_dummy_target, coff_object_p, /* bfd_check_format */ - bfd_generic_archive_p, coff_object_p}, + /* bfd_check_format */ +#ifdef COFF_CHECK_FORMAT + {_bfd_dummy_target, COFF_CHECK_FORMAT, + bfd_generic_archive_p, COFF_CHECK_FORMAT}, +#else + {_bfd_dummy_target, coff_object_p, bfd_generic_archive_p, coff_object_p}, +#endif {bfd_false, coff_mkobject, _bfd_generic_mkarchive, /* bfd_set_format */ bfd_false}, {bfd_false, coff_write_object_contents, /* bfd_write_contents */ |