FreeBSD/contrib/binutils/bfd/elflink.c
/* Return TRUE iff relocations for INPUT are compatible with OUTPUT.
   This version is used when different targets for the same architecture
   are virtually identical.  */
Return TRUE iff relocations for INPUT are compatible with OUTPUT.
This version is used when different targets for the same architecture
are virtually identical.
Return TRUE iff relocations for INPUT are compatible with OUTPUT . This version is used when different targets for the same architecture are virtually identical .
bfd_boolean
_bfd_elf_relocs_compatible (const bfd_target *input,
			    const bfd_target *output)
{
  const struct elf_backend_data *obed, *ibed;
  if (input == output)
    return TRUE;
  ibed = xvec_get_elf_backend_data (input);
  obed = xvec_get_elf_backend_data (output);
  if (ibed->arch != obed->arch)
    return FALSE;
  return ibed->relocs_compatible == obed->relocs_compatible;
}
bfd_boolean _bfd_elf_relocs_compatible ( const bfd_target * input , const bfd_target * output ) { const struct elf_backend_data * obed , * ibed ; if ( input == output ) return TRUE ; ibed = xvec_get_elf_backend_data ( input ) ; obed = xvec_get_elf_backend_data ( output ) ; if ( ibed -> arch != obed -> arch ) return FALSE ; return ibed -> relocs_compatible == obed -> relocs_compatible ; }
Return TRUE iff relocations for INPUT are compatible with OUTPUT.
Return TRUE iff relocations for INPUT are compatible with OUTPUT .
/* If both backends are using this function, deem them compatible.  */