modules: Drop the .export_symbol section from the final modules
authorWang Yao <wangyao@lemote.com>
Wed, 17 Apr 2024 05:35:30 +0000 (13:35 +0800)
committerMasahiro Yamada <masahiroy@kernel.org>
Tue, 14 May 2024 05:03:26 +0000 (14:03 +0900)
Commit ddb5cdbafaaa ("kbuild: generate KSYMTAB entries by modpost")
forget drop the .export_symbol section from the final modules.

Fixes: ddb5cdbafaaa ("kbuild: generate KSYMTAB entries by modpost")
Signed-off-by: Wang Yao <wangyao@lemote.com>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
scripts/module.lds.S

index bf5bcf2836d8152ec8a940e7c7f59baabe0da1b5..89ff01a22634f046dcab51455248b908bd6cfdec 100644 (file)
@@ -13,6 +13,7 @@ SECTIONS {
        /DISCARD/ : {
                *(.discard)
                *(.discard.*)
+               *(.export_symbol)
        }
 
        __ksymtab               0 : { *(SORT(___ksymtab+*)) }