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

Subversion Repositories open8_urisc

[/] [open8_urisc/] [trunk/] [gnu/] [binutils/] [bfd/] [elfcode.h] - Diff between revs 148 and 166

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

Rev 148 Rev 166
Line 1095... Line 1095...
      i_shdr.sh_offset = 0;
      i_shdr.sh_offset = 0;
 
 
      elf_swap_shdr_out (abfd, &i_shdr, &x_shdr);
      elf_swap_shdr_out (abfd, &i_shdr, &x_shdr);
      (*process) (&x_shdr, sizeof x_shdr, arg);
      (*process) (&x_shdr, sizeof x_shdr, arg);
 
 
 
      /* PR ld/12451:
 
         Process the section's contents, if it has some.  Read them in if necessary.  */
      if (i_shdr.contents)
      if (i_shdr.contents)
        (*process) (i_shdr.contents, i_shdr.sh_size, arg);
        (*process) (i_shdr.contents, i_shdr.sh_size, arg);
 
      else if (i_shdr.sh_type != SHT_NOBITS)
 
        {
 
          asection *sec;
 
 
 
          sec = bfd_section_from_elf_index (abfd, count);
 
          if (sec != NULL)
 
            {
 
              if (sec->contents == NULL)
 
                {
 
                  /* Force rereading from file.  */
 
                  sec->flags &= ~SEC_IN_MEMORY;
 
                  if (! bfd_malloc_and_get_section (abfd, sec, & sec->contents))
 
                    continue;
 
                }
 
              if (sec->contents != NULL)
 
                (*process) (sec->contents, i_shdr.sh_size, arg);
 
            }
 
        }
    }
    }
 
 
  return TRUE;
  return TRUE;
}
}
 
 

powered by: WebSVN 2.1.0

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