diff options
author | Michael Ellerman <[email protected]> | 2023-02-22 17:00:37 +1100 |
---|---|---|
committer | Michael Ellerman <[email protected]> | 2023-02-28 14:32:34 +1100 |
commit | acd35dbab871d61021284ff06daccdc0ebb51e61 (patch) | |
tree | ddac701afa24031cab96b5a36329eb40d7bbe9bf /tools/perf/scripts/python/powerpc-hcalls.py | |
parent | d8c32853ebc4f3a49f1658ddfe0a9a42e19fc658 (diff) |
powerpc/vmlinux.lds: Add .text.asan/tsan sections
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'
Fix it by adding the sections to our linker script, similar to the
generic change made in 848378812e40 ("vmlinux.lds.h: Handle clang's
module.{c,d}tor sections").
Reviewed-by: Nathan Chancellor <[email protected]>
Signed-off-by: Michael Ellerman <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/powerpc-hcalls.py')
0 files changed, 0 insertions, 0 deletions