/* MeP-specific support for 32-bit ELF.
- Copyright (C) 2001-2016 Free Software Foundation, Inc.
+ Copyright (C) 2001-2017 Free Software Foundation, Inc.
This file is part of BFD, the Binary File Descriptor library.
if (mep_elf_howto_table[type].type != type)
{
+ /* xgettext:c-format */
_bfd_error_handler (_("MeP: howto %d has type %d"),
type, mep_elf_howto_table[type].type);
abort ();
r_type = ELF32_R_TYPE (dst->r_info);
if (r_type >= R_MEP_max)
{
+ /* xgettext:c-format */
_bfd_error_handler (_("%B: invalid MEP reloc number: %d"), abfd, r_type);
r_type = 0;
}
object file when linking. */
static bfd_boolean
-mep_elf_merge_private_bfd_data (bfd * ibfd, bfd * obfd)
+mep_elf_merge_private_bfd_data (bfd *ibfd, struct bfd_link_info *info)
{
+ bfd *obfd = info->output_bfd;
static bfd *last_ibfd = 0;
flagword old_flags, new_flags;
flagword old_partial, new_partial;
/* Check if we have the same endianness. */
- if (_bfd_generic_verify_endian_match (ibfd, obfd) == FALSE)
+ if (!_bfd_generic_verify_endian_match (ibfd, info))
return FALSE;
new_flags = elf_elfheader (ibfd)->e_flags;
old_flags = (old_flags & ~EF_MEP_CPU_MASK) | new_partial;
else
{
+ /* xgettext:c-format */
_bfd_error_handler (_("%B and %B are for different cores"), last_ibfd, ibfd);
bfd_set_error (bfd_error_invalid_target);
return FALSE;
old_flags = (old_flags & ~EF_MEP_INDEX_MASK) | new_partial;
else
{
+ /* xgettext:c-format */
_bfd_error_handler (_("%B and %B are for different configurations"), last_ibfd, ibfd);
bfd_set_error (bfd_error_invalid_target);
return FALSE;