This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: pointer comparison breaks Solaris' qsort
On Wed, Jun 09, 2004 at 12:35:03PM +0100, Dave Korn wrote:
> > -----Original Message-----
> > From: binutils-owner On Behalf Of Alexandre Oliva
> > Sent: 09 June 2004 12:29
>
> > Maybe if you can point me at the other chunk of code you have in mind,
> > I could volunteer to fix this other bug, but conditioning the
> > acceptance of a correct patch that fixes a bug on fixing some other
> > bug is not reasonable IMHO.
>
> .... unless consistency between the two pieces of code is a vital
> requirement, n'est-ce pas?
Exactly. Alex, the other chunk of code is in the block immediately
after the qsort that uses elf_sort_symbol. If you sort the array
differently (your change to elf_sort_symbol), you'd better also do the
binary search in the same way.
--
Alan Modra
IBM OzLabs - Linux Technology Centre