/* This file is is generated by a shell script. DO NOT EDIT! */
/* Handle embedded relocs for m68k.
- Copyright (C) 2000-2017 Free Software Foundation, Inc.
+ Copyright (C) 2000-2018 Free Software Foundation, Inc.
Written by Michael Sokolov <msokolov@ivan.Harhan.ORG>, based on generic.em
by Steve Chamberlain <steve@cygnus.com>, embedded relocs code based on
mipsecoff.em by Ian Lance Taylor <ian@cygnus.com> (now removed).
asection *datasec;
/* As first-order business, make sure that each input BFD is COFF. It
- better be, as we are directly calling a COFF backend function. */
+ better be, as we are directly calling a COFF backend function. */
if (bfd_get_flavour (abfd) != bfd_target_coff_flavour)
- einfo ("%F%B: all input objects must be COFF for --embedded-relocs\n");
+ einfo (_("%F%P: %pB: all input objects must be COFF "
+ "for --embedded-relocs\n"));
datasec = bfd_get_section_by_name (abfd, ".data");
/* Note that we assume that the reloc_count field has already
- been set up. We could call bfd_get_reloc_upper_bound, but
- that returns the size of a memory buffer rather than a reloc
- count. We do not want to call bfd_canonicalize_reloc,
- because although it would always work it would force us to
- read in the relocs into BFD canonical form, which would waste
- a significant amount of time and memory. */
+ been set up. We could call bfd_get_reloc_upper_bound, but
+ that returns the size of a memory buffer rather than a reloc
+ count. We do not want to call bfd_canonicalize_reloc,
+ because although it would always work it would force us to
+ read in the relocs into BFD canonical form, which would waste
+ a significant amount of time and memory. */
if (datasec != NULL && datasec->reloc_count > 0)
{
asection *relsec;
|| ! bfd_set_section_alignment (abfd, relsec, 2)
|| ! bfd_set_section_size (abfd, relsec,
datasec->reloc_count * 12))
- einfo ("%F%B: can not create .emreloc section: %E\n");
+ einfo (_("%F%P: %pB: can not create .emreloc section: %E\n"));
}
/* Double check that all other data sections are empty, as is
- required for embedded PIC code. */
+ required for embedded PIC code. */
bfd_map_over_sections (abfd, check_sections, datasec);
}
}
if ((bfd_get_section_flags (abfd, sec) & SEC_DATA)
&& sec != datasec
&& sec->reloc_count != 0)
- einfo ("%B%X: section %s has relocs; can not use --embedded-relocs\n",
+ einfo (_("%X%P: %pB: section %s has relocs; can not use --embedded-relocs\n"),
abfd, bfd_get_section_name (abfd, sec));
}
&errmsg))
{
if (errmsg == NULL)
- einfo ("%B%X: can not create runtime reloc information: %E\n",
+ einfo (_("%X%P: %pB: can not create runtime reloc information: %E\n"),
abfd);
else
- einfo ("%X%B: can not create runtime reloc information: %s\n",
+ einfo (_("%X%P: %pB: can not create runtime reloc information: %s\n"),
abfd, errmsg);
}
}
syslib_default,
hll_default,
after_parse_default,
+ after_check_relocs_default,
gld${EMULATION_NAME}_after_open,
gld${EMULATION_NAME}_after_allocation,
set_output_arch_default,