diff options
author | Andreas Schwab <schwab@linux-m68k.org> | 2006-10-16 17:21:44 +0000 |
---|---|---|
committer | Andreas Schwab <schwab@linux-m68k.org> | 2006-10-16 17:21:44 +0000 |
commit | c26620e3423746f85e9893abfdfa81593fa7e696 (patch) | |
tree | e624841a722a35f983cb621ed272cf4017cc3657 /bfd/elfxx-ia64.c | |
parent | f8ef9cd77b9d86a52f9aebbaf83937072792e62d (diff) | |
download | gdb-c26620e3423746f85e9893abfdfa81593fa7e696.zip gdb-c26620e3423746f85e9893abfdfa81593fa7e696.tar.gz gdb-c26620e3423746f85e9893abfdfa81593fa7e696.tar.bz2 |
* elfxx-ia64.c (addend_compare): Properly compute return value.
Diffstat (limited to 'bfd/elfxx-ia64.c')
-rw-r--r-- | bfd/elfxx-ia64.c | 2 |
1 files changed, 1 insertions, 1 deletions
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. */ |