diff options
author | Nathan Chancellor <[email protected]> | 2022-12-13 11:35:29 -0700 |
---|---|---|
committer | Masahiro Yamada <[email protected]> | 2022-12-14 15:49:34 +0900 |
commit | 19331e84c3873256537d446afec1f6c507f8c4ef (patch) | |
tree | e7ef04835be9702185550a3f18d7bb5b0d188ab1 /tools/perf/scripts/python/bin/export-to-postgresql-report | |
parent | 0d24f1b7cc65ee73ea8d04e0d10f77a7cb7a83f3 (diff) |
modpost: Include '.text.*' in TEXT_SECTIONS
Commit 6c730bfc894f ("modpost: handle -ffunction-sections") added
".text.*" to the OTHER_TEXT_SECTIONS macro to fix certain section
mismatch warnings. Unfortunately, this makes it impossible for modpost
to warn about section mismatches with LTO, which implies
'-ffunction-sections', as all functions are put in their own
'.text.<func_name>' sections, which may still reference functions in
sections they are not supposed to, such as __init.
Fix this by moving ".text.*" into TEXT_SECTIONS, so that configurations
with '-ffunction-sections' will see warnings about mismatched sections.
Link: https://lore.kernel.org/[email protected]/
Reported-by: Vincent Donnefort <[email protected]>
Reviewed-and-tested-by: Alexander Lobakin <[email protected]>
Reviewed-by: Sami Tolvanen <[email protected]>
Tested-by: Vincent Donnefort <[email protected]>
Signed-off-by: Nathan Chancellor <[email protected]>
Signed-off-by: Masahiro Yamada <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/export-to-postgresql-report')
0 files changed, 0 insertions, 0 deletions