[MIPS] Add generation of PLT entries with compact jumps for MIPS R6
[binutils-gdb.git] / ld / emultempl / ticoff.em
index 3b952a4a12b1e85baf16abb5c75e6d3a7c5418a5..65b03b668f37f453ea524639c577e5a79b04e7f3 100644 (file)
@@ -3,8 +3,7 @@
 (echo;echo;echo;echo)>e${EMULATION_NAME}.c # there, now line numbers match ;-)
 fragment <<EOF
 /* This file is part of GLD, the Gnu Linker.
-   Copyright 1999, 2000, 2002, 2003, 2004, 2005, 2007
-   Free Software Foundation, Inc.
+   Copyright (C) 1999-2019 Free Software Foundation, Inc.
 
    This file is part of the GNU Binutils.
 
@@ -79,17 +78,17 @@ gld${EMULATION_NAME}_handle_option (int optc)
 
     case OPTION_COFF_FORMAT:
       if ((*optarg == '0' || *optarg == '1' || *optarg == '2')
-          && optarg[1] == '\0')
-      {
-        static char buf[] = "coffX-${OUTPUT_FORMAT_TEMPLATE}";
-        coff_version = *optarg - '0';
-        buf[4] = *optarg;
-       lang_add_output_format (buf, NULL, NULL, 0);
-      }
+         && optarg[1] == '\0')
+       {
+         static char buf[] = "coffX-${OUTPUT_FORMAT_TEMPLATE}";
+         coff_version = *optarg - '0';
+         buf[4] = *optarg;
+         lang_add_output_format (buf, NULL, NULL, 0);
+       }
       else
-        {
-         einfo (_("%P%F: invalid COFF format version %s\n"), optarg);
-        }
+       {
+         einfo (_("%F%P: invalid COFF format version %s\n"), optarg);
+       }
       break;
     }
   return FALSE;
@@ -119,9 +118,9 @@ $s/$/n"/
 fragment <<EOF
 {
   *isfile = 0;
-  if (link_info.relocatable && config.build_constructors)
+  if (bfd_link_relocatable (&link_info) && config.build_constructors)
     return `sed "$sc" ldscripts/${EMULATION_NAME}.xu`;
-  else if (link_info.relocatable)
+  else if (bfd_link_relocatable (&link_info))
     return `sed "$sc" ldscripts/${EMULATION_NAME}.xr`;
   else if (!config.text_read_only)
     return `sed "$sc" ldscripts/${EMULATION_NAME}.xbn`;
@@ -139,9 +138,9 @@ fragment <<EOF
 {
   *isfile = 1;
 
-  if (link_info.relocatable && config.build_constructors)
+  if (bfd_link_relocatable (&link_info) && config.build_constructors)
     return "ldscripts/${EMULATION_NAME}.xu";
-  else if (link_info.relocatable)
+  else if (bfd_link_relocatable (&link_info))
     return "ldscripts/${EMULATION_NAME}.xr";
   else if (!config.text_read_only)
     return "ldscripts/${EMULATION_NAME}.xbn";
@@ -162,6 +161,7 @@ struct ld_emulation_xfer_struct ld_${EMULATION_NAME}_emulation =
   hll_default,
   after_parse_default,
   after_open_default,
+  after_check_relocs_default,
   after_allocation_default,
   set_output_arch_default,
   ldemul_default_target,
@@ -181,6 +181,7 @@ struct ld_emulation_xfer_struct ld_${EMULATION_NAME}_emulation =
   gld_${EMULATION_NAME}_list_options,
   NULL, /* recognized file */
   NULL,        /* find_potential_libraries */
-  NULL /* new_vers_pattern */
+  NULL,        /* new_vers_pattern */
+  NULL  /* extra_map_file_text */
 };
 EOF