Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/contrib/elftoolchain/nm/nm.c b/contrib/elftoolchain/nm/nm.c
- index 637cdd9..3d038e3 100644
- --- a/contrib/elftoolchain/nm/nm.c
- +++ b/contrib/elftoolchain/nm/nm.c
- @@ -379,7 +379,8 @@ cmp_value(const void *lp, const void *rp)
- /* Both defined */
- if (l->sym->st_value == r->sym->st_value)
- return (strcmp(l->name, r->name));
- - return (l->sym->st_value - r->sym->st_value);
- + return ((l->sym->st_value > r->sym->st_value) ?
- + 1 : -1);
- case 1:
- /* One undefined */
- return (l_is_undef == 0 ? 1 : -1);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement