FreeBSD/contrib/binutils/bfd/elflink.c
/* Return TRUE if special handling is done for relocs in SEC against
   symbols defined in discarded sections.  */
Return TRUE if special handling is done for relocs in SEC against
symbols defined in discarded sections.
Return TRUE if special handling is done for relocs in SEC against symbols defined in discarded sections .
static bfd_boolean
elf_section_ignore_discarded_relocs (asection *sec)
{
  const struct elf_backend_data *bed;
  switch (sec->sec_info_type)
    {
    case ELF_INFO_TYPE_STABS:
    case ELF_INFO_TYPE_EH_FRAME:
      return TRUE;
    default:
      break;
    }
  bed = get_elf_backend_data (sec->owner);
  if (bed->elf_backend_ignore_discarded_relocs != NULL
      && (*bed->elf_backend_ignore_discarded_relocs) (sec))
    return TRUE;
  return FALSE;
}
static bfd_boolean elf_section_ignore_discarded_relocs ( asection * sec ) { const struct elf_backend_data * bed ; switch ( sec -> sec_info_type ) { case ELF_INFO_TYPE_STABS : case ELF_INFO_TYPE_EH_FRAME : return TRUE ; default : break ; } bed = get_elf_backend_data ( sec -> owner ) ; if ( bed -> elf_backend_ignore_discarded_relocs != NULL && ( * bed -> elf_backend_ignore_discarded_relocs ) ( sec ) ) return TRUE ; return FALSE ; }
Return TRUE if special handling is done for relocs in SEC against
symbols defined in discarded sections.
Return TRUE if special handling is done for relocs in SEC against symbols defined in discarded sections .