* format.c (bfd_check_format_matches): New function.