diff options
author | Nicolai Hähnle <[email protected]> | 2019-05-23 15:17:24 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2019-06-19 20:30:32 -0400 |
commit | 87182200c7dc3528ccb10b5da97cf49545403503 (patch) | |
tree | a4998a20482f708cd3acb15c0979266fac4981b8 | |
parent | d1c04835ab273c5f9806fbe2095b1dd03f460833 (diff) |
ac/rtld: fix sorting of LDS symbols by alignment
Tested-by: Dieter Nützel <[email protected]>
-rw-r--r-- | src/amd/common/ac_rtld.c | 4 |
1 files 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; } |