* elfxx-ia64.c (addend_compare): Properly compute return value.

This commit is contained in:
Andreas Schwab 2006-10-16 17:21:44 +00:00
parent f8ef9cd77b
commit c26620e342
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2006-10-16 Andreas Schwab <schwab@suse.de>
* elfxx-ia64.c (addend_compare): Properly compute return value.
2006-10-15 H.J. Lu <hongjiu.lu@intel.com>
PR ld/3314

View File

@ -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. */