ld error/warning messages
[deliverable/binutils-gdb.git] / ld / emultempl / m68kcoff.em
index 22e191234001df511fcf056e44d489041a858eef..1e36f3ff02471d00f3853b36817bb1d04fa4264e 100644 (file)
@@ -4,7 +4,7 @@ fragment <<EOF
 /* 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).
@@ -72,19 +72,20 @@ gld${EMULATION_NAME}_after_open (void)
       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;
@@ -98,11 +99,11 @@ gld${EMULATION_NAME}_after_open (void)
              || ! 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);
     }
 }
@@ -116,7 +117,7 @@ check_sections (bfd *abfd, asection *sec, void *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));
 }
 
@@ -151,10 +152,10 @@ gld${EMULATION_NAME}_after_allocation (void)
                                                   &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);
        }
     }
@@ -219,6 +220,7 @@ struct ld_emulation_xfer_struct ld_${EMULATION_NAME}_emulation =
   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,
This page took 0.025848 seconds and 4 git commands to generate.