FreeBSD/contrib/binutils/bfd/elflink.c
/* Compare two sections based on the locations of the sections they are
   linked to.  Used by elf_fixup_link_order.  */
Compare two sections based on the locations of the sections they are
linked to.
Compare two sections based on the locations of the sections they are linked to .
static int
compare_link_order (const void * a, const void * b)
{
  bfd_vma apos;
  bfd_vma bpos;
  apos = elf_get_linked_section_vma (*(struct bfd_link_order **)a);
  bpos = elf_get_linked_section_vma (*(struct bfd_link_order **)b);
  if (apos < bpos)
    return -1;
  return apos > bpos;
}
static int compare_link_order ( const void * a , const void * b ) { bfd_vma apos ; bfd_vma bpos ; apos = elf_get_linked_section_vma ( * ( struct bfd_link_order * * ) a ) ; bpos = elf_get_linked_section_vma ( * ( struct bfd_link_order * * ) b ) ; if ( apos < bpos ) return -1 ; return apos > bpos ; }
Compare two sections based on the locations of the sections they are
linked to.
Compare two sections based on the locations of the sections they are linked to .