summaryrefslogtreecommitdiffstats
path: root/lib/stackdepot.c
diff options
context:
space:
mode:
authorNathan Chancellor <nathan@kernel.org>2022-12-13 11:35:29 -0700
committerMasahiro Yamada <masahiroy@kernel.org>2022-12-14 15:49:34 +0900
commit19331e84c3873256537d446afec1f6c507f8c4ef (patch)
treee7ef04835be9702185550a3f18d7bb5b0d188ab1 /lib/stackdepot.c
parent0d24f1b7cc65ee73ea8d04e0d10f77a7cb7a83f3 (diff)
downloadlinux-19331e84c3873256537d446afec1f6c507f8c4ef.tar.bz2
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/Y39kI3MOtVI5BAnV@google.com/ Reported-by: Vincent Donnefort <vdonnefort@google.com> Reviewed-and-tested-by: Alexander Lobakin <alexandr.lobakin@intel.com> Reviewed-by: Sami Tolvanen <samitolvanen@google.com> Tested-by: Vincent Donnefort <vdonnefort@google.com> Signed-off-by: Nathan Chancellor <nathan@kernel.org> Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Diffstat (limited to 'lib/stackdepot.c')
0 files changed, 0 insertions, 0 deletions