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-Tag: gdb_6_6-2006-11-15-branchpoint~265 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c26620e3423746f85e9893abfdfa81593fa7e696;p=external%2Fbinutils.git * elfxx-ia64.c (addend_compare): Properly compute return value. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 7c8516e..eba1f15 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 0b6f26a..89271ea 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. */