Eliminate false DVs on parallel compares.
[deliverable/binutils-gdb.git] / ld / mpw-elfmips.c
index ec88bb7493ee7f61c1a07464e079a13a68b10b23..3143b2ec1482a0645a335a4d2234bb6ceda7d235 100644 (file)
@@ -1,7 +1,8 @@
 /* This file is is generated by a shell script.  DO NOT EDIT! */
 
 /* 32 bit ELF emulation code for elf32ebmip
-   Copyright (C) 1991, 93, 94, 95, 1996 Free Software Foundation, Inc.
+   Copyright (C) 1991, 93, 94, 95, 96, 98, 2000
+   Free Software Foundation, Inc.
    Written by Steve Chamberlain <sac@cygnus.com>
    ELF support by Ian Lance Taylor <ian@cygnus.com>
 
@@ -32,12 +33,12 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
 
 #include "ld.h"
 #include "ldmain.h"
-#include "ldemul.h"
-#include "ldfile.h"
 #include "ldmisc.h"
 #include "ldexp.h"
 #include "ldlang.h"
 #include "ldgram.h"
+#include "ldfile.h"
+#include "ldemul.h"
 
 static void gldelf32ebmip_before_parse PARAMS ((void));
 static boolean gldelf32ebmip_open_dynamic_archive
@@ -212,7 +213,7 @@ gldelf32ebmip_after_open ()
       if (search != NULL)
        continue;
 
-      einfo ("%P: warning: %s, needed by %B, not found\n",
+      einfo (_("%P: warning: %s, needed by %B, not found\n"),
             l->name, l->by);
     }
 }
@@ -296,7 +297,7 @@ gldelf32ebmip_try_needed (name)
      can only check that using stat.  */
 
   if (bfd_stat (abfd, &global_stat) != 0)
-    einfo ("%F%P:%B: bfd_stat failed: %E\n", abfd);
+    einfo (_("%F%P:%B: bfd_stat failed: %E\n"), abfd);
   global_found = false;
   lang_for_each_input_file (gldelf32ebmip_stat_needed);
   if (global_found)
@@ -312,7 +313,7 @@ gldelf32ebmip_try_needed (name)
 
   /* Add this file into the symbol table.  */
   if (! bfd_link_add_symbols (abfd, &link_info))
-    einfo ("%F%B: could not read symbols: %E\n", abfd);
+    einfo (_("%F%B: could not read symbols: %E\n"), abfd);
 
   return true;
 }
@@ -381,7 +382,7 @@ gldelf32ebmip_stat_needed (s)
 
   if (bfd_stat (s->the_bfd, &st) != 0)
     {
-      einfo ("%P:%B: bfd_stat failed: %E\n", s->the_bfd);
+      einfo (_("%P:%B: bfd_stat failed: %E\n"), s->the_bfd);
       return;
     }
 
@@ -419,7 +420,7 @@ gldelf32ebmip_stat_needed (s)
     f = soname;
 
   if (strncmp (f, global_needed->name, suffix - global_needed->name) == 0)
-    einfo ("%P: warning: %s, needed by %B, may conflict with %s\n",
+    einfo (_("%P: warning: %s, needed by %B, may conflict with %s\n"),
           global_needed->name, global_needed->by, f);
 }
 
@@ -442,13 +443,12 @@ gldelf32ebmip_before_allocation ()
   rpath = command_line.rpath;
   if (rpath == NULL)
     rpath = (const char *) getenv ("LD_RUN_PATH");
-  if (! bfd_elf32_size_dynamic_sections (output_bfd,
-                                                command_line.soname,
-                                                rpath,
-                                                command_line.export_dynamic,
-                                                &link_info,
-                                                &sinterp))
-    einfo ("%P%F: failed to set dynamic section sizes: %E\n");
+  if (! (bfd_elf32_size_dynamic_sections
+        (output_bfd, command_line.soname, rpath,
+         command_line.export_dynamic, command_line.filter_shlib,
+         (const char * const *) command_line.auxiliary_filters,
+         &link_info, &sinterp, lang_elf_version_info)))
+    einfo (_("%P%F: failed to set dynamic section sizes: %E\n"));
 
   /* Let the user override the dynamic linker we are using.  */
   if (command_line.interpreter != NULL
@@ -481,7 +481,7 @@ gldelf32ebmip_before_allocation ()
        sz = bfd_section_size (is->the_bfd, s);
        msg = xmalloc ((size_t) sz + 1);
        if (! bfd_get_section_contents (is->the_bfd, s, msg, (file_ptr) 0, sz))
-         einfo ("%F%B: Can't read contents of section .gnu.warning: %E\n",
+         einfo (_("%F%B: Can't read contents of section .gnu.warning: %E\n"),
                 is->the_bfd);
        msg[sz] = '\0';
        ret = link_info.callbacks->warning (&link_info, msg,
@@ -496,37 +496,6 @@ gldelf32ebmip_before_allocation ()
        s->_raw_size = 0;
       }
   }
-
-#if defined (TARGET_IS_elf32bmip) || defined (TARGET_IS_elf32lmip)
-  /* For MIPS ELF the .reginfo section requires special handling.
-     Each input section is 24 bytes, and the final output section must
-     also be 24 bytes.  We handle this by clobbering all but the first
-     input section size to 0.  The .reginfo section is handled
-     specially by the backend code anyhow.  */
-  {
-    boolean found = false;
-    LANG_FOR_EACH_INPUT_STATEMENT (is)
-      {
-       asection *s;
-
-       if (is->just_syms_flag)
-         continue;
-
-       s = bfd_get_section_by_name (is->the_bfd, ".reginfo");
-       if (s == NULL)
-         continue;
-
-       if (! found)
-         {
-           found = true;
-           continue;
-         }
-
-       s->_raw_size = 0;
-       s->_cooked_size = 0;
-      }
-  }
-#endif
 }
 
 /* This is called by the before_allocation routine via
@@ -573,7 +542,7 @@ gldelf32ebmip_find_exp_assignment (exp)
          if (! (bfd_elf32_record_link_assignment
                 (output_bfd, &link_info, exp->assign.dst,
                  exp->type.node_class == etree_provide ? true : false)))
-           einfo ("%P%F: failed to record assignment to %s: %E\n",
+           einfo (_("%P%F: failed to record assignment to %s: %E\n"),
                   exp->assign.dst);
        }
       gldelf32ebmip_find_exp_assignment (exp->assign.src);
@@ -678,7 +647,7 @@ gldelf32ebmip_place_orphan (file, s)
      place.  This shuffling is to make the output file look neater.  */
   snew = bfd_make_section (output_bfd, secname);
   if (snew == NULL)
-      einfo ("%P%F: output format %s cannot represent section called %s\n",
+      einfo (_("%P%F: output format %s cannot represent section called %s\n"),
             output_bfd->xvec->name, secname);
   if (place->bfd_section != NULL)
     {
@@ -725,7 +694,9 @@ gldelf32ebmip_place_orphan (file, s)
   os = lang_output_section_statement_lookup (secname);
   wild_doit (&os->children, s, os, file);
 
-  lang_leave_output_section_statement ((bfd_vma) 0, "*default*");
+  lang_leave_output_section_statement
+    ((bfd_vma) 0, "*default*",
+     (struct lang_output_section_phdr_list *) NULL, "*default*");
   stat_ptr = &add;
 
   if (*ps == '\0' && config.build_constructors)
This page took 0.025153 seconds and 4 git commands to generate.