[Bug c++/118114] std::call_once crashes on LoongArch when program is built with -fPIC -mtls-dialect=desc

xry111 at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Dec 19 04:18:50 GMT 2024


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118114

--- Comment #7 from Xi Ruoyao <xry111 at gcc dot gnu.org> ---
(In reply to Xi Ruoyao from comment #6)

> I'm bisecting on binutils-gdb.git to see when exactly it's fixed.

commit 5c3d09c1855b948dd43b9f5f8b3d8aa254d75f43
Author: mengqinggang <mengqinggang@loongson.cn>
Date:   Thu Oct 10 16:20:52 2024 +0800

    LoongArch: Optimize the relaxation process

    The symbol value is only calculated when the relocation can be relaxed.

 bfd/elfnn-loongarch.c | 281 +++++++++++++++++++++++++-------------------------
 1 file changed, 139 insertions(+), 142 deletions(-)

The binutils-2_43-branch is still buggy and it needs a fix.


More information about the Gcc-bugs mailing list