aboutsummaryrefslogtreecommitdiff
path: root/gold/powerpc.cc
diff options
context:
space:
mode:
authorNick Alcock <nick.alcock@oracle.com>2023-01-23 13:11:32 +0000
committerNick Alcock <nick.alcock@oracle.com>2023-03-24 13:37:32 +0000
commitca96e367f057c068fb9f016dd7beba55d5d29d81 (patch)
tree9f42457af58a5da614fbbe14a132c51f6f37f43e /gold/powerpc.cc
parent4460691252d5c345f0b34ac366639df23c687832 (diff)
downloadgdb-ca96e367f057c068fb9f016dd7beba55d5d29d81.zip
gdb-ca96e367f057c068fb9f016dd7beba55d5d29d81.tar.gz
gdb-ca96e367f057c068fb9f016dd7beba55d5d29d81.tar.bz2
libctf: fix assertion failure with no system qsort_r
If no suitable qsort_r is found in libc, we fall back to an implementation in ctf-qsort.c. But this implementation routinely calls the comparison function with two identical arguments. The comparison function that ensures that the order of output types is stable is not ready for this, misinterprets it as a type appearing more that once (a can-never-happen condition) and fails with an assertion failure. Fixed, audited for further instances of the same failure (none found) and added a no-qsort test to my regular testsuite run. libctf/: PR libctf/30013 * ctf-dedup.c (sort_output_mapping): Inputs are always equal to themselves.
Diffstat (limited to 'gold/powerpc.cc')
0 files changed, 0 insertions, 0 deletions