From c26620e3423746f85e9893abfdfa81593fa7e696 Mon Sep 17 00:00:00 2001 From: Andreas Schwab Date: Mon, 16 Oct 2006 17:21:44 +0000 Subject: * elfxx-ia64.c (addend_compare): Properly compute return value. --- bfd/ChangeLog | 4 ++++ bfd/elfxx-ia64.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'bfd') 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. */ -- cgit v1.1