From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id D442945502 for ; Thu, 27 Jun 2024 12:36:03 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7146640B8F; Thu, 27 Jun 2024 12:36:03 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.9]) by mails.dpdk.org (Postfix) with ESMTP id 5E108402C6; Thu, 27 Jun 2024 12:34:43 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1719484484; x=1751020484; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=p1gyuojXip406Wo7Yql3exNtbwRc8F4I3sfNfQLDVxY=; b=UJYBL5eVAJjtyLz7JoJBWqefmwsIrPo0k2nwzqtnq+C1SOxLqpXOdolX tudueDZzhj3JnwG1Q1Eh/BEH8Jc3ifV5P9KtbtbvDDspWml4HjqDU5tVK gt3Byd+RXBJaRxovkbk1AEeyHFdVIsft5u8wpYIbDRDq/Rcw+HrJy4MHP /Zv+bLdZc3rCIAhMiqNBuns+Vft1CgSSTa5FsapDwxmH3frYVaniwp80O CbNPcufv5WCzu4Y5XzkTkKpF0jrX8NYD01Z4FrW5aZhPH3OzGfjnCwquk mf6rYijWQ54LR7jjoTHsA/r4GlsrvVdHrKJZfoASwiOtI33vuVCpIVWxW Q==; X-CSE-ConnectionGUID: QVEEQINDRXCThmSKz5IocQ== X-CSE-MsgGUID: S/+AxLcmTvWsU8bjqge4eA== X-IronPort-AV: E=McAfee;i="6700,10204,11115"; a="27291260" X-IronPort-AV: E=Sophos;i="6.08,269,1712646000"; d="scan'208";a="27291260" Received: from fmviesa006.fm.intel.com ([10.60.135.146]) by fmvoesa103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Jun 2024 03:34:42 -0700 X-CSE-ConnectionGUID: VbqPHGTVQMOSOjpxdudo3Q== X-CSE-MsgGUID: eD7b9gzLR2eEMg8/z9EKtw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,269,1712646000"; d="scan'208";a="44156701" Received: from unknown (HELO localhost.localdomain) ([10.239.252.253]) by fmviesa006-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Jun 2024 03:34:41 -0700 From: Mingjin Ye To: dev@dpdk.org Cc: Mingjin Ye , stable@dpdk.org, Dmitry Kozlyuk Subject: [PATCH] buildtools: fix invalid symbols Date: Thu, 27 Jun 2024 10:11:44 +0000 Message-Id: <20240627101144.665413-1-mingjinx.ye@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org ELF files generated by higher version compilers wrap multiple symbols prefixed with "this_pmd_name". This patch fixes the issue by filtering invalid symbols. Bugzilla ID: 1466 Fixes: 6c4bf8f42432 ("buildtools: add Python pmdinfogen") Cc: stable@dpdk.org Signed-off-by: Mingjin Ye --- buildtools/pmdinfogen.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/buildtools/pmdinfogen.py b/buildtools/pmdinfogen.py index 2a44f17bda..6ea97caec7 100755 --- a/buildtools/pmdinfogen.py +++ b/buildtools/pmdinfogen.py @@ -200,7 +200,8 @@ def dump(self, file): def load_drivers(image): drivers = [] for symbol in image.find_by_prefix("this_pmd_name"): - drivers.append(Driver.load(image, symbol)) + if len(symbol.string_value) != 0: + drivers.append(Driver.load(image, symbol)) return drivers -- 2.25.1