Re: [PATCH] arm64: fix clang integrated assembler build

2020-05-27 Thread Fangrui Song
On 2020-05-27, 'Nick Desaulniers' via Clang Built Linux wrote: On Wed, May 27, 2020 at 7:14 AM Arnd Bergmann wrote: clang and gas seem to interpret the symbols in memmove.S and memset.S differently, such that clang does not make them 'weak' as expected, which leads to a linker error, with bo

Re: [PATCH] arm64: fix clang integrated assembler build

2020-05-27 Thread Nick Desaulniers
On Wed, May 27, 2020 at 7:14 AM Arnd Bergmann wrote: > > clang and gas seem to interpret the symbols in memmove.S and > memset.S differently, such that clang does not make them > 'weak' as expected, which leads to a linker error, with both > ld.bfd and ld.lld: > > ld.lld: error: duplicate symbol:

[PATCH] arm64: fix clang integrated assembler build

2020-05-27 Thread Arnd Bergmann
clang and gas seem to interpret the symbols in memmove.S and memset.S differently, such that clang does not make them 'weak' as expected, which leads to a linker error, with both ld.bfd and ld.lld: ld.lld: error: duplicate symbol: memmove >>> defined at common.c >>>kasan/common.o:(memm