aboutsummaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@linux-m68k.org>2006-10-16 17:21:44 +0000
committerAndreas Schwab <schwab@linux-m68k.org>2006-10-16 17:21:44 +0000
commitc26620e3423746f85e9893abfdfa81593fa7e696 (patch)
treee624841a722a35f983cb621ed272cf4017cc3657 /bfd
parentf8ef9cd77b9d86a52f9aebbaf83937072792e62d (diff)
downloadgdb-c26620e3423746f85e9893abfdfa81593fa7e696.zip
gdb-c26620e3423746f85e9893abfdfa81593fa7e696.tar.gz
gdb-c26620e3423746f85e9893abfdfa81593fa7e696.tar.bz2
* elfxx-ia64.c (addend_compare): Properly compute return value.
Diffstat (limited to 'bfd')
-rw-r--r--bfd/ChangeLog4
-rw-r--r--bfd/elfxx-ia64.c2
2 files changed, 5 insertions, 1 deletions
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 <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
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. */