FreeBSD/contrib/binutils/bfd/elf.c
/* Create the PT_DYNAMIC segment, which includes DYNSEC.  Returns NULL
   on failure.  */
Create the PT_DYNAMIC segment, which includes DYNSEC.  Returns NULL
on failure.
Create the PT_DYNAMIC segment which includes DYNSEC . Returns NULL on failure .
struct elf_segment_map *
_bfd_elf_make_dynamic_segment (bfd *abfd, asection *dynsec)
{
  struct elf_segment_map *m;
  m = bfd_zalloc (abfd, sizeof (struct elf_segment_map));
  if (m == NULL)
    return NULL;
  m->next = NULL;
  m->p_type = PT_DYNAMIC;
  m->count = 1;
  m->sections[0] = dynsec;
  return m;
}
struct elf_segment_map * _bfd_elf_make_dynamic_segment ( bfd * abfd , asection * dynsec ) { struct elf_segment_map * m ; m = bfd_zalloc ( abfd , sizeof ( struct elf_segment_map ) ) ; if ( m == NULL ) return NULL ; m -> next = NULL ; m -> p_type = PT_DYNAMIC ; m -> count = 1 ; m -> sections [ 0 ] = dynsec ; return m ; }
Create the PT_DYNAMIC segment, which includes DYNSEC.
Create the PT_DYNAMIC segment which includes DYNSEC .