FreeBSD/contrib/binutils/bfd/elflink.c
/* Check if the kept section of a discarded section SEC can be used
   to replace it.  Return the replacement if it is OK.  Otherwise return
   NULL.  */
Check if the kept section of a discarded section SEC can be used
to replace it.  Return the replacement if it is OK.  Otherwise return
NULL.
Check if the kept section of a discarded section SEC can be used to replace it . Return the replacement if it is OK . Otherwise return NULL .
asection *
_bfd_elf_check_kept_section (asection *sec, struct bfd_link_info *info)
{
  asection *kept;
  kept = sec->kept_section;
  if (kept != NULL)
    {
      if ((kept->flags & SEC_GROUP) != 0)
	kept = match_group_member (sec, kept, info);
      if (kept != NULL && sec->size != kept->size)
	kept = NULL;
      sec->kept_section = kept;
    }
  return kept;
}
asection * _bfd_elf_check_kept_section ( asection * sec , struct bfd_link_info * info ) { asection * kept ; kept = sec -> kept_section ; if ( kept != NULL ) { if ( ( kept -> flags & SEC_GROUP ) != 0 ) kept = match_group_member ( sec , kept , info ) ; if ( kept != NULL && sec -> size != kept -> size ) kept = NULL ; sec -> kept_section = kept ; } return kept ; }
Check if the kept section of a discarded section SEC can be used
to replace it.
Check if the kept section of a discarded section SEC can be used to replace it .