https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123654
--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Does GROUP ( AS_NEEDED ( -latomic ) ) instead of INPUT ( AS_NEEDED ( -latomic ) ) work instead? At least glibc libc.so has GROUP ( /lib64/libc.so.6 /usr/lib64/libc_nonshared.a AS_NEEDED ( /lib64/ld-linux-x86-64.so.2 ) ) In any case, IMHO mold just should be fixed.
