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

Subversion Repositories open8_urisc

[/] [open8_urisc/] [trunk/] [gnu/] [binutils/] [bfd/] [oasys.c] - Diff between revs 161 and 166

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

Rev 161 Rev 166
Line 904... Line 904...
  oasys_header_record_type r;
  oasys_header_record_type r;
  size_t length = strlen (abfd->filename);
  size_t length = strlen (abfd->filename);
 
 
  if (length > (size_t) sizeof (r.module_name))
  if (length > (size_t) sizeof (r.module_name))
    length = sizeof (r.module_name);
    length = sizeof (r.module_name);
 
  else if (length < (size_t) sizeof (r.module_name))
 
    (void) memset (r.module_name + length, ' ',
 
                   sizeof (r.module_name) - length);
 
 
  (void) memcpy (r.module_name, abfd->filename, length);
  (void) memcpy (r.module_name, abfd->filename, length);
  (void) memset (r.module_name + length, ' ', sizeof (r.module_name) - length);
 
 
 
  r.version_number = OASYS_VERSION_NUMBER;
  r.version_number = OASYS_VERSION_NUMBER;
  r.rev_number = OASYS_REV_NUMBER;
  r.rev_number = OASYS_REV_NUMBER;
 
 
  return oasys_write_record (abfd, oasys_record_is_header_enum,
  return oasys_write_record (abfd, oasys_record_is_header_enum,

powered by: WebSVN 2.1.0

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