From: Andreas Schwab Date: Mon, 16 Oct 2006 17:21:44 +0000 (+0000) Subject: * elfxx-ia64.c (addend_compare): Properly compute return value. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c26620e3423746f85e9893abfdfa81593fa7e696;p=binutils-gdb.git * elfxx-ia64.c (addend_compare): Properly compute return value. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 7c8516e0803..eba1f15f4f3 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,7 @@ +2006-10-16 Andreas Schwab + + * elfxx-ia64.c (addend_compare): Properly compute return value. + 2006-10-15 H.J. Lu PR ld/3314 diff --git a/bfd/elfxx-ia64.c b/bfd/elfxx-ia64.c index 0b6f26a695c..89271ea473a 100644 --- a/bfd/elfxx-ia64.c +++ b/bfd/elfxx-ia64.c @@ -2209,7 +2209,7 @@ addend_compare (const void *xp, const void *yp) const struct elfNN_ia64_dyn_sym_info *y = (const struct elfNN_ia64_dyn_sym_info *) yp; - return x->addend - y->addend; + return x->addend < y->addend ? -1 : x->addend > y->addend ? 1 : 0; } /* Sort elfNN_ia64_dyn_sym_info array and remove duplicates. */