size = bfd_get_section_size_before_reloc (osect->the_bfd_section);
size = bfd_get_section_size (bsect);
simple_overlay_update (struct obj_section *osect){  struct objfile *objfile;  /* Were we given an osect to look up?  NULL means do all of them. */  if (osect)    /* Have we got a cached copy of the target's overlay table? */    if (cache_ovly_table != NULL)      /* Does its cached location match what's currently in the symtab? */      if (cache_ovly_table_base ==	  SYMBOL_VALUE_ADDRESS (lookup_minimal_symbol ("_ovly_table", NULL, NULL)))	/* Then go ahead and try to look up this single section in the cache */	if (simple_overlay_update_1 (osect))	  /* Found it!  We're done. */	  return;  /* Cached table no good: need to read the entire table anew.     Or else we want all the sections, in which case it's actually     more efficient to read the whole table in one block anyway.  */  if (! simple_read_overlay_table ())    return;  /* Now may as well update all sections, even if only one was requested. */  ALL_OBJSECTIONS (objfile, osect)    if (section_is_overlay (osect->the_bfd_section))    {      int i, size;      bfd *obfd = osect->objfile->obfd;      asection *bsect = osect->the_bfd_section;      size = bfd_get_section_size_before_reloc (osect->the_bfd_section);      for (i = 0; i < cache_novlys; i++)	if (cache_ovly_table[i][VMA] == bfd_section_vma (obfd, bsect)	    && cache_ovly_table[i][LMA] == bfd_section_lma (obfd, bsect)	    /* && cache_ovly_table[i][SIZE] == size */ )	  { /* obj_section matches i'th entry in ovly_table */	    osect->ovly_mapped = cache_ovly_table[i][MAPPED];	    break;		/* finished with inner for loop: break out */	  }    }}