All of lore.kernel.org
 help / color / mirror / Atom feed
From: wangyao@lemote.com
To: mcgrof@kernel.org, masahiroy@kernel.org, ainux.wang@gmail.com
Cc: linux-modules@vger.kernel.org, linux-kernel@vger.kernel.org,
	Wang Yao <wangyao@lemote.com>
Subject: [PATCH] modules: Drop the .export_symbol section from the final modules
Date: Wed, 17 Apr 2024 13:35:30 +0800	[thread overview]
Message-ID: <20240417053530.30995-1-wangyao@lemote.com> (raw)

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


             reply	other threads:[~2024-04-17  5:36 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-04-17  5:35 wangyao [this message]
2024-04-22  2:02 ` [PATCH] modules: Drop the .export_symbol section from the final modules Ainux Wang
2024-05-07  5:15 ` Ainux Wang
2024-05-11  1:03   ` Ainux Wang
2024-05-11 22:41 ` Luis Chamberlain
2024-05-13 23:10   ` Masahiro Yamada

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240417053530.30995-1-wangyao@lemote.com \
    --to=wangyao@lemote.com \
    --cc=ainux.wang@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-modules@vger.kernel.org \
    --cc=masahiroy@kernel.org \
    --cc=mcgrof@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.