[PATCH] powerpc/vmlinux.lds: Add .text.asan/tsan sections

Michael Ellerman patch-notifications at ellerman.id.au
Sat Mar 4 21:36:36 AEDT 2023


On Wed, 22 Feb 2023 17:00:37 +1100, Michael Ellerman wrote:
> When KASAN/KCSAN are enabled clang generates .text.asan/tsan sections.
> Because they are not mentioned in the linker script warnings are
> generated, and when orphan handling is set to error that becomes a build
> error, eg:
> 
>   ld.lld: error: vmlinux.a(init/main.o):(.text.tsan.module_ctor) is
>   being placed in '.text.tsan.module_ctor' ld.lld: error:
>   vmlinux.a(init/version.o):(.text.tsan.module_ctor) is being placed in
>   '.text.tsan.module_ctor'
> 
> [...]

Applied to powerpc/fixes.

[1/1] powerpc/vmlinux.lds: Add .text.asan/tsan sections
      https://git.kernel.org/powerpc/c/acd35dbab871d61021284ff06daccdc0ebb51e61

cheers


More information about the Linuxppc-dev mailing list