Hi, atomic operations require linking against libatomic — always have. Some architectures inline a few functions, which is how you get away with omitting the library on amd64 most of the time, but this is incorrect.
No architecture specific patch should be required here, adding libatomic everywhere is fine, possibly via -Wl,--push-options,--as-needed,-latomic,--pop-options (although as-needed is likely default anyway) Simon