{
if (! bfd_check_format (check, bfd_object))
return true;
- if (bfd_arch_get_compatible (check, output_bfd) == NULL)
+
+ if ((bfd_arch_get_compatible (check, output_bfd) == NULL)
+ /* XCOFF archives can have 32 and 64 bit objects */
+ && ! (bfd_get_flavour (check) == bfd_target_xcoff_flavour
+ && bfd_get_flavour (output_bfd) == bfd_target_xcoff_flavour
+ && bfd_check_format (entry->the_bfd, bfd_archive)))
{
einfo (_("%P: skipping incompatible %s when searching for %s\n"),
attempt, entry->local_sym_name);
void
ldfile_add_arch (in_name)
- CONST char *in_name;
+ const char *in_name;
{
char *name = xstrdup (in_name);
search_arch_type *new =
void
ldfile_set_output_arch (string)
- CONST char *string;
+ const char *string;
{
const bfd_arch_info_type *arch = bfd_scan_arch (string);