diff mbox series

modules: Drop the .export_symbol section from the final modules

Message ID 20240417053530.30995-1-wangyao@lemote.com (mailing list archive)
State New
Headers show
Series modules: Drop the .export_symbol section from the final modules | expand

Commit Message

wangyao@lemote.com April 17, 2024, 5:35 a.m. UTC
From: Wang Yao <wangyao@lemote.com>

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

Signed-off-by: Wang Yao <wangyao@lemote.com>
---
 scripts/module.lds.S | 1 +
 1 file changed, 1 insertion(+)

Comments

Ainux Wang April 22, 2024, 2:02 a.m. UTC | #1
Hi, everyone:
Could someone review this patch?
Best regards,
Ainux Wang.

<wangyao@lemote.com> 于2024年4月17日周三 13:35写道:
>
> From: Wang Yao <wangyao@lemote.com>
>
> Commit ddb5cdbafaaa ("kbuild: generate KSYMTAB entries by modpost")
> forget drop the .export_symbol section from the final modules.
>
> Signed-off-by: Wang Yao <wangyao@lemote.com>
> ---
>  scripts/module.lds.S | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/scripts/module.lds.S b/scripts/module.lds.S
> index bf5bcf2836d8..89ff01a22634 100644
> --- a/scripts/module.lds.S
> +++ b/scripts/module.lds.S
> @@ -13,6 +13,7 @@ SECTIONS {
>         /DISCARD/ : {
>                 *(.discard)
>                 *(.discard.*)
> +               *(.export_symbol)
>         }
>
>         __ksymtab               0 : { *(SORT(___ksymtab+*)) }
> --
> 2.27.0
>
diff mbox series

Patch

diff --git a/scripts/module.lds.S b/scripts/module.lds.S
index bf5bcf2836d8..89ff01a22634 100644
--- a/scripts/module.lds.S
+++ b/scripts/module.lds.S
@@ -13,6 +13,7 @@  SECTIONS {
 	/DISCARD/ : {
 		*(.discard)
 		*(.discard.*)
+		*(.export_symbol)
 	}
 
 	__ksymtab		0 : { *(SORT(___ksymtab+*)) }