diff options
author | Fangrui Song <maskray@google.com> | 2020-11-06 21:46:11 +0100 |
---|---|---|
committer | Russell King <rmk+kernel@armlinux.org.uk> | 2020-11-12 15:53:19 +0100 |
commit | 735e8d93dc2b107f7891a9c2b1c4cfbea1fcbbbc (patch) | |
tree | d37af8ed305cebd6185990a3bc124cb31efa3e36 /fs/coda/pioctl.c | |
parent | ARM: 9020/1: mm: use correct section size macro to describe the FDT virtual a... (diff) | |
download | linux-735e8d93dc2b107f7891a9c2b1c4cfbea1fcbbbc.tar.xz linux-735e8d93dc2b107f7891a9c2b1c4cfbea1fcbbbc.zip |
ARM: 9022/1: Change arch/arm/lib/mem*.S to use WEAK instead of .weak
Commit d6d51a96c7d6 ("ARM: 9014/2: Replace string mem* functions for
KASan") add .weak directives to memcpy/memmove/memset to avoid collision
with KASAN interceptors.
This does not work with LLVM's integrated assembler (the assembly snippet
`.weak memcpy ... .globl memcpy` produces a STB_GLOBAL memcpy while GNU as
produces a STB_WEAK memcpy). LLVM 12 (since https://reviews.llvm.org/D90108)
will error on such an overridden symbol binding.
Use the appropriate WEAK macro instead.
Link: https://github.com/ClangBuiltLinux/linux/issues/1190
--
Fixes: d6d51a96c7d6 ("ARM: 9014/2: Replace string mem* functions for KASan")
Reported-by: Nick Desaulniers <ndesaulniers@google.com>
Signed-off-by: Fangrui Song <maskray@google.com>
Reviewed-by: Nick Desaulniers <ndesaulniers@google.com>
Tested-by: Nick Desaulniers <ndesaulniers@google.com>
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Diffstat (limited to 'fs/coda/pioctl.c')
0 files changed, 0 insertions, 0 deletions