]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - bfd/ihex.c
bfd/
[thirdparty/binutils-gdb.git] / bfd / ihex.c
index 5c4c438e1a8800310aa2df146d52d175cb1a2639..e818034c8e2af5af9166cf2e53eb160b79a428ec 100644 (file)
@@ -381,11 +381,11 @@ ihex_scan (abfd)
            case 0:
              /* This is a data record.  */
              if (sec != NULL
-                 && sec->vma + sec->_raw_size == extbase + segbase + addr)
+                 && sec->vma + sec->size == extbase + segbase + addr)
                {
                  /* This data goes at the end of the section we are
                      currently building.  */
-                 sec->_raw_size += len;
+                 sec->size += len;
                }
              else if (len > 0)
                {
@@ -405,7 +405,7 @@ ihex_scan (abfd)
                  sec->flags = SEC_HAS_CONTENTS | SEC_LOAD | SEC_ALLOC;
                  sec->vma = extbase + segbase + addr;
                  sec->lma = extbase + segbase + addr;
-                 sec->_raw_size = len;
+                 sec->size = len;
                  sec->filepos = pos;
                }
              break;
@@ -635,7 +635,7 @@ ihex_read_section (abfd, section, contents)
 
       for (i = 0; i < len; i++)
        *p++ = HEX2 (buf + 2 * i);
-      if ((bfd_size_type) (p - contents) >= section->_raw_size)
+      if ((bfd_size_type) (p - contents) >= section->size)
        {
          /* We've read everything in the section.  */
          if (buf != NULL)
@@ -648,7 +648,7 @@ ihex_read_section (abfd, section, contents)
        goto error_return;
     }
 
-  if ((bfd_size_type) (p - contents) < section->_raw_size)
+  if ((bfd_size_type) (p - contents) < section->size)
     {
       (*_bfd_error_handler)
        (_("%s: bad section length in ihex_read_section"),
@@ -680,7 +680,7 @@ ihex_get_section_contents (abfd, section, location, offset, count)
 {
   if (section->used_by_bfd == NULL)
     {
-      section->used_by_bfd = bfd_alloc (abfd, section->_raw_size);
+      section->used_by_bfd = bfd_alloc (abfd, section->size);
       if (section->used_by_bfd == NULL)
        return FALSE;
       if (! ihex_read_section (abfd, section, section->used_by_bfd))