Re: Best practice for linking against libatomic?

Florian Weimer via Gcc-help <[email protected]> Mon, 12 Jan 2026 18:17:18 +0100
Newsgroups gmane.comp.gcc.help
Message-ID <[email protected]>
* Mathieu Malaterre:

>> It would be interesting to know which functionality needs libatomic.
>> What are the linker errors you encountered?
>
> I am not sure I understand your question. The linker errors were
> related to the gcc generated symbols for the missing intrinsics on
> powerpc/armel/riscv. Typically:
>
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104248

I think using emulated atomics is almost always a mistake, so I was
wondering what is going on.  I know that the errors look like in
principle.

Thanks,
Florian