FreeBSD/contrib/binutils/bfd/elflink.c
/* Return a mask saying how ld should treat relocations in SEC against
   symbols defined in discarded sections.  If this function returns
   COMPLAIN set, ld will issue a warning message.  If this function
   returns PRETEND set, and the discarded section was link-once and the
   same size as the kept link-once section, ld will pretend that the
   symbol was actually defined in the kept section.  Otherwise ld will
   zero the reloc (at least that is the intent, but some cooperation by
   the target dependent code is needed, particularly for REL targets).  */
Return a mask saying how ld should treat relocations in SEC against
symbols defined in discarded sections.  If this function returns
COMPLAIN set, ld will issue a warning message.  If this function
returns PRETEND set, and the discarded section was link-once and the
same size as the kept link-once section, ld will pretend that the
symbol was actually defined in the kept section.  Otherwise ld will
zero the reloc (at least that is the intent, but some cooperation by
the target dependent code is needed, particularly for REL targets).
Return a mask saying how ld should treat relocations in SEC against symbols defined in discarded sections . If this function returns COMPLAIN set ld will issue a warning message . If this function returns PRETEND set and the discarded section was link - once and the same size as the kept link - once section ld will pretend that the symbol was actually defined in the kept section . Otherwise ld will zero the reloc ( at least that is the intent but some cooperation by the target dependent code is needed particularly for REL targets ) .
unsigned int
_bfd_elf_default_action_discarded (asection *sec)
{
  if (sec->flags & SEC_DEBUGGING)
    return PRETEND;
  if (strcmp (".eh_frame", sec->name) == 0)
    return 0;
  if (strcmp (".gcc_except_table", sec->name) == 0)
    return 0;
  return COMPLAIN | PRETEND;
}
unsigned int _bfd_elf_default_action_discarded ( asection * sec ) { if ( sec -> flags & SEC_DEBUGGING ) return PRETEND ; if ( strcmp ( " " , sec -> name ) == 0 ) return 0 ; if ( strcmp ( " " , sec -> name ) == 0 ) return 0 ; return COMPLAIN | PRETEND ; }
Return a mask saying how ld should treat relocations in SEC against
symbols defined in discarded sections.
Return a mask saying how ld should treat relocations in SEC against symbols defined in discarded sections .