Received: by 2002:a05:6500:1b45:b0:1f5:f2ab:c469 with SMTP id cz5csp407013lqb; Tue, 16 Apr 2024 22:36:38 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVoxj+4KAzuBR0UuD8aTjj4GoB3CbmvGQMxuKs7zXwKPsP9+T++ss/EdCULmNFS/JkUIFT7apJKLllF9iTUqkKqwjwhzH2w3JEMtw7OIg== X-Google-Smtp-Source: AGHT+IHU7+Y37sBb05B7MST6/n6J68RoPo1mnOxaCbkleLV78SRwkDFsxN671syQX/N6XiQa/UWv X-Received: by 2002:a05:6a00:14d5:b0:6ea:f392:bce9 with SMTP id w21-20020a056a0014d500b006eaf392bce9mr17379535pfu.15.1713332198088; Tue, 16 Apr 2024 22:36:38 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713332198; cv=pass; d=google.com; s=arc-20160816; b=AzOy8KfehTr/iKPgfFdzJPi4KjiVnhZOByVX861Q+Riy/73JrNynbAyDCGPOWIlMvy D5wjQTgxELr8rFUSv0n6p8rcnCZLyLChkWS5r0ybpgNCtHMpzDnsFEfFK17lFauhrP9P tnJ+YLuARQro5WSecCFHFLOT/UH1G4mXu+UEJw4Z4zo+yDJIczzSczSLpBLJ2rdg8Vyy F1cP1shLstv/WiBYgbZpVwmBLsNiksRE4mE26PE0jDG5GP7UXYbRyRjdGcQZx4dgSqk1 JMALVTCuiJLzSvOn04Cv4ByD63bh5z5UVk5lgIRfXLDgHUXmB1b/sTSfKx6M9x63XGNB y8Cw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=feedback-id:content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from; bh=8Zg9GwtPG+jYnqjfSo3ky7J0qVu0wHDbgrsXjRJw7QU=; fh=eQJ721/cC2qlV3JOH/edik58xkQ1yz7qo6AMu79L3ME=; b=iFWEuNnxwNaDezUyCkGPwZNKxokNIPqcYS71LS3Ec9n7JH2kvGG79Vu1sdoirF0iLR Dr5YEp9jxt1L0CNhvZNA7cezxc/0c8Wjf6DZqH04gJ+7t0Gw2Dqu1Ne84JlrY2PiKXA5 MrHl+8awXRbejh6yHVXThyeGnSvOkKDtSU2TM9RUB2n0LtqO+Qt8fKmPzPOTPRTJvSz/ f+NcASO30iEpPcx25y2iHZ23bVyDoJappiippEKhVH6NSe/BhM7864KStL2sz452DyaU cpiJVPlCEcLdpTkY1uqgRrddHtDDoxQ9qHKd7QbJAiYI0oerzsJOiVmVE1auZE8Y4TSs 7tSA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=lemote.com); spf=pass (google.com: domain of linux-kernel+bounces-147964-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-147964-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id v6-20020a632f06000000b005dc98dad590si11007826pgv.68.2024.04.16.22.36.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Apr 2024 22:36:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-147964-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=lemote.com); spf=pass (google.com: domain of linux-kernel+bounces-147964-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-147964-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id BD1982854F2 for ; Wed, 17 Apr 2024 05:36:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3ACBF53E0A; Wed, 17 Apr 2024 05:36:14 +0000 (UTC) Received: from smtpbgsg1.qq.com (smtpbgsg1.qq.com [54.254.200.92]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AFFC9535C6; Wed, 17 Apr 2024 05:36:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=54.254.200.92 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713332173; cv=none; b=EDw+G1V4XYiLrPD7XuLbOrk62QzsRwESoLafXOMwpu7m8Xj+3F58Iqv2/tlFkYCLKFIemvVbGfzcXWHvepq08f/hoxcfPd2V/X+x/YaA2kpbKbbZ66td8m1AmAqTW4mrQZmeYT+QrR36X8R5vfgTg+fQevLjufaXv8+oJKhM544= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713332173; c=relaxed/simple; bh=urrmCvOIPOS0nV0snje91j50tQLPGURC4WfmI7kh3dM=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=SMYKO/ppFsMfM6jk/jSp+sFEmCgqi/7LN612FlkGJbCJv/9qsli7ExtnyqVzC85eBhq/TP+4IJ6TbtqFGAISSop+VPkDaQ9nOcVqKjMe2ecQbu4OXfurU8ebyAJArEt731qR15VJDh6esoH5JfaRqcYFYZYdrAuu+TUG/qY+9Eo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=lemote.com; spf=pass smtp.mailfrom=lemote.com; arc=none smtp.client-ip=54.254.200.92 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=lemote.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lemote.com X-QQ-mid: bizesmtpsz2t1713332137te293nj X-QQ-Originating-IP: FmxYU+kg4mhECz5/Rzj5B/FHJhz+avSUYkMKMOgcLjI= Received: from localhost.localdomain ( [222.92.8.138]) by bizesmtp.qq.com (ESMTP) with id ; Wed, 17 Apr 2024 13:35:35 +0800 (CST) X-QQ-SSF: 01400000000000F0W000000A0000000 X-QQ-FEAT: Kol1Dm0TdrAEiL1/u6rKAX6Y1AKdxPhCDDTahSVjl13MynbO3JPLQyu+r8ma1 yTHXtqeqDy0h7xUGMHZY3TLEy7iYNeO0GW2yIkBRElSUGSaXcZ+vme5KADEKxn52Y1T2c1O vK4TQvZcV7xaDK3H5K6mhFmsrZFdXztRpFpwAX0RyY6v93CdRWZ/57dxz70Uc+7EmeDzvX+ ihKq+T8f/QRsXE+IjO00bZrQ514gx/IE5ggLjAGRIUwHfaPnfwIySBlxkacLPvlKakZC6Ha ikdFGFZi2+4fwMO/YeExeStTjIZhoU+Cwv4u75LPmiiVq2KK6LoeLHMbGaePv0XcVEOjNEQ b+oBA+eSY4h7gGh49dPVR5MBUtUb2VaLeyUUJ1oSJfABrRgZXfn+KYzhx1N3EaA6sGtYdIr X-QQ-GoodBg: 2 X-BIZMAIL-ID: 2947310117825408760 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 Subject: [PATCH] modules: Drop the .export_symbol section from the final modules Date: Wed, 17 Apr 2024 13:35:30 +0800 Message-Id: <20240417053530.30995-1-wangyao@lemote.com> X-Mailer: git-send-email 2.27.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtpsz:lemote.com:qybglogicsvrgz:qybglogicsvrgz5a-2 From: Wang Yao Commit ddb5cdbafaaa ("kbuild: generate KSYMTAB entries by modpost") forget drop the .export_symbol section from the final modules. Signed-off-by: Wang Yao --- 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