modules: Drop the .export_symbol section from the final modules

[ Upstream commit 8fe51b45c5 ]

Commit ddb5cdbafa ("kbuild: generate KSYMTAB entries by modpost")
forget drop the .export_symbol section from the final modules.

Fixes: ddb5cdbafa ("kbuild: generate KSYMTAB entries by modpost")
Signed-off-by: Wang Yao <wangyao@lemote.com>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
Wang Yao 2024-04-17 13:35:30 +08:00 committed by Greg Kroah-Hartman
parent 366bff10bb
commit 5c8471d260

View File

@ -13,6 +13,7 @@ SECTIONS {
/DISCARD/ : {
*(.discard)
*(.discard.*)
*(.export_symbol)
}
__ksymtab 0 : { *(SORT(___ksymtab+*)) }