FreeBSD/contrib/binutils/bfd/elflink.c
/* Find two non-excluded output sections, one for code, one for data.
   We'll use their section symbols for some emitted relocs.  */
Find two non-excluded output sections, one for code, one for data.
We'll use their section symbols for some emitted relocs.
Find two non - excluded output sections one for code one for data . We ' ll use their section symbols for some emitted relocs .
void
_bfd_elf_init_2_index_sections (bfd *output_bfd, struct bfd_link_info *info)
{
  asection *s;
  for (s = output_bfd->sections; s != NULL; s = s->next)
    if (((s->flags & (SEC_EXCLUDE | SEC_ALLOC | SEC_READONLY))
	 == (SEC_ALLOC | SEC_READONLY))
	&& !_bfd_elf_link_omit_section_dynsym (output_bfd, info, s))
      {
	elf_hash_table (info)->text_index_section = s;
	break;
      }
  for (s = output_bfd->sections; s != NULL; s = s->next)
    if (((s->flags & (SEC_EXCLUDE | SEC_ALLOC | SEC_READONLY)) == SEC_ALLOC)
	&& !_bfd_elf_link_omit_section_dynsym (output_bfd, info, s))
      {
	elf_hash_table (info)->data_index_section = s;
	break;
      }
  if (elf_hash_table (info)->text_index_section == NULL)
    elf_hash_table (info)->text_index_section
      = elf_hash_table (info)->data_index_section;
}
void _bfd_elf_init_2_index_sections ( bfd * output_bfd , struct bfd_link_info * info ) { asection * s ; for ( s = output_bfd -> sections ; s != NULL ; s = s -> next ) if ( ( ( s -> flags & ( SEC_EXCLUDE | SEC_ALLOC | SEC_READONLY ) ) == ( SEC_ALLOC | SEC_READONLY ) ) && ! _bfd_elf_link_omit_section_dynsym ( output_bfd , info , s ) ) { elf_hash_table ( info ) -> text_index_section = s ; break ; } for ( s = output_bfd -> sections ; s != NULL ; s = s -> next ) if ( ( ( s -> flags & ( SEC_EXCLUDE | SEC_ALLOC | SEC_READONLY ) ) == SEC_ALLOC ) && ! _bfd_elf_link_omit_section_dynsym ( output_bfd , info , s ) ) { elf_hash_table ( info ) -> data_index_section = s ; break ; } if ( elf_hash_table ( info ) -> text_index_section == NULL ) elf_hash_table ( info ) -> text_index_section = elf_hash_table ( info ) -> data_index_section ; }
Find two non-excluded output sections, one for code, one for data.
Find two non - excluded output sections one for code one for data .