* elfxx-ia64.c (addend_compare): Properly compute return value.
authorAndreas Schwab <schwab@linux-m68k.org>
Mon, 16 Oct 2006 17:21:44 +0000 (17:21 +0000)
committerAndreas Schwab <schwab@linux-m68k.org>
Mon, 16 Oct 2006 17:21:44 +0000 (17:21 +0000)
bfd/ChangeLog
bfd/elfxx-ia64.c

index 7c8516e0803cc2b42d15b2d13ade62d9217ebb49..eba1f15f4f301b366ccc4346f0d768c619f33e99 100644 (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
index 0b6f26a695c72864cb73d08ede21bf68983574fd..89271ea473a79bab23fd69c0599a1237be71bc3f 100644 (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.  */