Mesa (master): ac/rtld: fix sorting of LDS symbols by alignment
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Thu Jun 20 00:31:12 UTC 2019
Module: Mesa
Branch: master
Commit: 87182200c7dc3528ccb10b5da97cf49545403503
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=87182200c7dc3528ccb10b5da97cf49545403503
Author: Nicolai Hähnle <nicolai.haehnle at amd.com>
Date: Thu May 23 15:17:24 2019 +0200
ac/rtld: fix sorting of LDS symbols by alignment
Tested-by: Dieter Nützel <Dieter at nuetzel-hh.de>
---
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;
}
More information about the mesa-commit
mailing list