OpenCores
URL https://opencores.org/ocsvn/open8_urisc/open8_urisc/trunk

Subversion Repositories open8_urisc

[/] [open8_urisc/] [trunk/] [gnu/] [binutils/] [binutils/] [ar.c] - Diff between revs 161 and 163

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 161 Rev 163
Line 813... Line 813...
          perror (archive_filename);
          perror (archive_filename);
          maybequit ();
          maybequit ();
          return NULL;
          return NULL;
        }
        }
 
 
      /* Try to figure out the target to use for the archive from the
      /* If the target isn't set, try to figure out the target to use
         first object on the list.  */
         for the archive from the first object on the list.  */
      if (file != NULL)
      if (target == NULL && file != NULL)
        {
        {
          bfd *obj;
          bfd *obj;
 
 
          obj = bfd_openr (file, target);
          obj = bfd_openr (file, target);
          if (obj != NULL)
          if (obj != NULL)
Line 1029... Line 1029...
  old_name = (char *) xmalloc (strlen (bfd_get_filename (iarch)) + 1);
  old_name = (char *) xmalloc (strlen (bfd_get_filename (iarch)) + 1);
  strcpy (old_name, bfd_get_filename (iarch));
  strcpy (old_name, bfd_get_filename (iarch));
  new_name = make_tempname (old_name);
  new_name = make_tempname (old_name);
 
 
  if (new_name == NULL)
  if (new_name == NULL)
    bfd_fatal ("could not create temporary file whilst writing archive");
    bfd_fatal (_("could not create temporary file whilst writing archive"));
 
 
  output_filename = new_name;
  output_filename = new_name;
 
 
  obfd = bfd_openw (new_name, bfd_get_target (iarch));
  obfd = bfd_openw (new_name, bfd_get_target (iarch));
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.