From 87182200c7dc3528ccb10b5da97cf49545403503 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Nicolai=20H=C3=A4hnle?= Date: Thu, 23 May 2019 15:17:24 +0200 Subject: [PATCH] ac/rtld: fix sorting of LDS symbols by alignment MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Tested-by: Dieter Nützel --- src/amd/common/ac_rtld.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/amd/common/ac_rtld.c b/src/amd/common/ac_rtld.c index dc9cc04705b..92020c5f0dd 100644 --- a/src/amd/common/ac_rtld.c +++ b/src/amd/common/ac_rtld.c @@ -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; } -- 2.30.2