ac/rtld: fix sorting of LDS symbols by alignment

Tested-by: Dieter Nützel <Dieter@nuetzel-hh.de>
This commit is contained in:
Nicolai Hähnle
2019-05-23 15:17:24 +02:00
committed by Marek Olšák
parent d1c04835ab
commit 87182200c7
+2 -2
View File
@@ -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;
}