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

Subversion Repositories open8_urisc

[/] [open8_urisc/] [trunk/] [gnu/] [binutils/] [bfd/] [coff-stgo32.c] - Diff between revs 14 and 161

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

Rev 14 Rev 161
Line 93... Line 93...
 
 
#define COFF_ADJUST_AUX_IN_POST adjust_aux_in_post
#define COFF_ADJUST_AUX_IN_POST adjust_aux_in_post
#define COFF_ADJUST_AUX_OUT_PRE adjust_aux_out_pre
#define COFF_ADJUST_AUX_OUT_PRE adjust_aux_out_pre
#define COFF_ADJUST_AUX_OUT_POST adjust_aux_out_post
#define COFF_ADJUST_AUX_OUT_POST adjust_aux_out_post
 
 
 
static const bfd_target *go32_check_format (bfd *abfd);
 
 
 
#define COFF_CHECK_FORMAT go32_check_format
 
 
static bfd_boolean
static bfd_boolean
  go32_stubbed_coff_bfd_copy_private_bfd_data PARAMS ((bfd *, bfd *));
  go32_stubbed_coff_bfd_copy_private_bfd_data PARAMS ((bfd *, bfd *));
 
 
#define coff_bfd_copy_private_bfd_data go32_stubbed_coff_bfd_copy_private_bfd_data
#define coff_bfd_copy_private_bfd_data go32_stubbed_coff_bfd_copy_private_bfd_data
 
 
Line 413... Line 417...
            GO32_STUBSIZE);
            GO32_STUBSIZE);
 
 
  return TRUE;
  return TRUE;
}
}
 
 
 No newline at end of file
 No newline at end of file
 
/* coff_object_p only checks 2 bytes F_MAGIC at GO32_STUBSIZE inside the file
 
   which is too fragile.  */
 
 
 
static const bfd_target *
 
go32_check_format (bfd *abfd)
 
{
 
  char mz[2];
 
 
 
  if (bfd_bread (mz, 2, abfd) != 2 || mz[0] != 'M' || mz[1] != 'Z')
 
    {
 
      bfd_set_error (bfd_error_wrong_format);
 
      return NULL;
 
    }
 
 
 
  if (bfd_seek (abfd, 0, SEEK_SET) != 0)
 
    return NULL;
 
 
 
  return coff_object_p (abfd);
 
}
 
 
 No newline at end of file
 No newline at end of file

powered by: WebSVN 2.1.0

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