diff options
author | Masahiro Yamada <[email protected]> | 2024-11-07 01:18:42 +0900 |
---|---|---|
committer | Catalin Marinas <[email protected]> | 2024-11-07 11:33:06 +0000 |
commit | 340fd66c856651d8c1d29f392dd26ad674d2db0e (patch) | |
tree | b814f907392e982bac216901cd8553da337f6686 /tools/testing/selftests/bpf/prog_tests/prog_array_init.c | |
parent | dc9b74a76320dd87335956f27f09791fa922ea9b (diff) |
arm64: fix .data.rel.ro size assertion when CONFIG_LTO_CLANG
Commit be2881824ae9 ("arm64/build: Assert for unwanted sections")
introduced an assertion to ensure that the .data.rel.ro section does
not exist.
However, this check does not work when CONFIG_LTO_CLANG is enabled,
because .data.rel.ro matches the .data.[0-9a-zA-Z_]* pattern in the
DATA_MAIN macro.
Move the ASSERT() above the RW_DATA() line.
Fixes: be2881824ae9 ("arm64/build: Assert for unwanted sections")
Signed-off-by: Masahiro Yamada <[email protected]>
Acked-by: Will Deacon <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Catalin Marinas <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/prog_array_init.c')
0 files changed, 0 insertions, 0 deletions