Commit 87182200 authored by Nicolai Hähnle's avatar Nicolai Hähnle Committed by Marek Olšák

ac/rtld: fix sorting of LDS symbols by alignment

Tested-by: Dieter Nützel's avatarDieter Nützel <>
parent d1c04835
......@@ -130,9 +130,9 @@ static int compare_symbol_by_align(const void *lhsp, const void *rhsp)
const struct ac_rtld_symbol *lhs = lhsp;
const struct ac_rtld_symbol *rhs = rhsp;
if (rhs->align > lhs->align)
return -1;
if (rhs->align < lhs->align)
return 1;
if (rhs->align < lhs->align)
return -1;
return 0;
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment