[Bug driver/123654] [16 regression] libatomic as-needed hack breaks mold
redi at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Jan 21 11:22:23 GMT 2026
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123654
--- Comment #12 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to Sam James from comment #11)
> We have https://github.com/rui314/mold/issues/1545 (didn't realise until
> after had filed), so MOVED.
I've put a patch to fix it there, but as Arsen observed, the problem only
happens if a linker script is used by -latomic_asneeded, so giving a full path
to libatomic_asneeded.a would also solve the problem.
More information about the Gcc-bugs
mailing list