[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1016041: libasan8: Should link to libatomic on armel



Hi,

On 2022-07-26 12:07, Dmitry Shachnev wrote:
> (sid_armel-dchroot)mitya57@amdahl:~$ gcc -fsanitize=address test.c
> /usr/bin/ld: /usr/lib/gcc/arm-linux-gnueabi/12/libasan.so: undefined reference to `__atomic_store_8'
> /usr/bin/ld: /usr/lib/gcc/arm-linux-gnueabi/12/libasan.so: undefined reference to `__atomic_load_8'
> collect2: error: ld returned 1 exit status
> libasan.so seems to use symbols from libatomic, but is not linked to it:
[...]

> I have not seen it on architectures other than armel yet.

A very similar issue is known upstream, but affecting powerpc:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110553


Reply to: