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 22F6841B9F; Wed, 1 Feb 2023 15:54:06 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 0DF814021D; Wed, 1 Feb 2023 15:54:06 +0100 (CET) Received: from NAM10-MW2-obe.outbound.protection.outlook.com (mail-mw2nam10on2071.outbound.protection.outlook.com [40.107.94.71]) by mails.dpdk.org (Postfix) with ESMTP id 3BDCC40141 for ; Wed, 1 Feb 2023 15:54:05 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=dLEeFhtBypOVZ6rGiH1EQhY3x+YOKKLvrJ1fwZQs/igFDlZFZqAt3w3G07JuCqDcndJufEBxH6FLoV3lmptnbHdjOn3Lobk1pBPa3vJn88256qfQ15HT712viHnHxyZXwPCz2AF2jZVAKbI2vG8QmLVP99E0JbCLwxqzOe7LwaeqZ90c3NnHKunXlq/5eD9M59lUdx9xcJito9/5gztkQsX8PnCU25Xz8OA2uXuUWVEzhu5DgvRUYbnaDDTNNQfejxo6sW2WO/vj0+8K3G1rJghZGJGwoaXCd+u33jq0cgxoW/Ayw66VWfq4S19GexsnHfJE8fXLsGMtpLZtwcePkg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=YV0jGH1D7cEfYf1QdWTFM+7+Ep0B+TrkJK0QuWg25hU=; b=ZzZf2lmkv+hUgdgNL3pAN19jh+q7o4luqg8mfkqDYSTEX56QvR749PfLpV4XnnFzDrmNooyQhZG4YMrdU1D4l+iNTneEWfxMFTosMzvRWeWt6Bgb6wgN693O5RUSJVlOjQEGbokfIEo2yt1JQX1q+wv9r5i8PskD6JMhcwyPcefGq/P5qf7xo4yKxeuszE9FgdrkLbSqwrF0RPoBqd/VmogePj1lmczN/aBQ5rt8KdqZTQKMV5xmq6biAvroqm04B8evtCAy6tyfCj82GHfGw1ml2PhahNOKJq2rzFXNq1uvHWcpPoChXhNOitbwpPyZQR9uXLZp6rMrv30MHiXDjw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nvidia.com; dmarc=pass action=none header.from=nvidia.com; dkim=pass header.d=nvidia.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=YV0jGH1D7cEfYf1QdWTFM+7+Ep0B+TrkJK0QuWg25hU=; b=n7kX2OMRLBP0wlvzOFVt1AD5ThTprZZmeC2UY5XAFSPmUyn0oSvn8AxIsoncae+pbV+v9iwamSQJzHoyR82rWuBuqsBbau7JxqzqXqq9RHRXfagxGAUsxFMkowVB6ztM+3hZEatQFysqhtVaiKJLPsllWYq50jlW5tZ4pSwfck53CnmoGL7TDmHLenhFHBJDvRcDL0Don15ZMjvJf9MnQGQdjdjMW28kXBQJA8dIZbsNukXYxN87xK9nmr/8YOAanaqz54BS+NtmEBL0flYwoPZdcckpc238mYnqy4OqQEuOeiTRVv6Q+/vXbGbuumNC4P9+Vumqa/qTFzxcbHW3ZQ== Received: from MW4PR12MB5666.namprd12.prod.outlook.com (2603:10b6:303:188::20) by CO6PR12MB5492.namprd12.prod.outlook.com (2603:10b6:5:35d::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6064.22; Wed, 1 Feb 2023 14:54:03 +0000 Received: from MW4PR12MB5666.namprd12.prod.outlook.com ([fe80::7d87:b9c8:aef9:6548]) by MW4PR12MB5666.namprd12.prod.outlook.com ([fe80::7d87:b9c8:aef9:6548%3]) with mapi id 15.20.6043.038; Wed, 1 Feb 2023 14:54:03 +0000 From: Arseniy Aharonov To: "dev@dpdk.org" Subject: Multi-versioning for backward compatibility Thread-Topic: Multi-versioning for backward compatibility Thread-Index: Adk2SllX2VNeYXpbS7i2xNMjxUPR+Q== Date: Wed, 1 Feb 2023 14:54:03 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nvidia.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: MW4PR12MB5666:EE_|CO6PR12MB5492:EE_ x-ms-office365-filtering-correlation-id: cb6ec69b-6437-4f8e-6fa1-08db046428cf x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: IromR99GqA1RH+j7G/EwgdekFZ3ehQ0ws3a2sWtNoqUZ0Fq+BgtyLKO6TPuxAdrk9mdfecER0VZQPfkyyvrhJVot9jRBtNb++d4Kugozo8npovF5TgCXGkXHb2oqoo8SiRR4oHSpQk7ZZGZ3s1+IpKObWb3Q/gHvRkY7X+yj5YDw+EABF8E/3w/h4wzQUPC5Ok/RZRxSJnBgZjx+RDATstrjcX8P8W8P+aCSU/8L9PNQvGDVW1ci3OIX/LzTzYeeMQadmIoVo2aSK0KWLWl/78OMH2kJ9rsDBwds6zIw2WUG4M8Z7zAljxFgnSVHJZxhrYp1YkDyWCeMIt/3p3O3qJiqY0IMEDEWITivVZNqKNkDd0qNpkZZeCgFfHcs8FSsfNAOB8gTu0dVmcuIhA7qP5zeAGzwVXnDA3EGC+P7HsYc5fsjZvfd4wLNj8fS6FVJzxn6063d7mO+iMkXf0GmbI1vHZuY/41Ki1dKXYaYUeqXpBlaN9wEbh8R9ykcUCj6yB6/1XHXV/o0BpByOGRSlG8rF3o+9GgkPoBZDQBEMWhEJ6qVJCpWO0HOwPrUrubAgVIYw2co3XQBSD/8Ifs4SYS/txBgEnFnXrGZJmQcXW5GSGH8g0WbQYRMtwii9tQ5pPgAZUEGSj1cZltKvswC/ifWz8xtniriwcnInCnCSMrqG+j4ZKsQWciJCPUQyrshoMZ/vbTj0/YEmQPNyO4r/u4E6+ec+f6o+kdKYg7W7o4XszNsRn5vBGsiahmu1IQ37FvFSoBXSWemX9+fGVs9GhSA92OrE0/6wR+KsTDebaA= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:MW4PR12MB5666.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230025)(4636009)(396003)(136003)(366004)(39860400002)(346002)(376002)(451199018)(186003)(55236004)(6506007)(9686003)(122000001)(26005)(166002)(33656002)(86362001)(38070700005)(38100700002)(316002)(478600001)(7696005)(71200400001)(3480700007)(4744005)(52536014)(5660300002)(8676002)(41300700001)(2906002)(76116006)(21615005)(66476007)(9326002)(66446008)(6916009)(66946007)(64756008)(8936002)(66556008)(55016003); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?f62kaunr1ENlNuHJzTvd3Ko/3hy7qpU4q8LnAnCk3WkgP3FtXL+83pGrSal0?= =?us-ascii?Q?KjCs2B4NARdvDBMGrcic55DXgwNVJ0Nz/H7VB7/zT8GijKbNw3PgBrzuLt1w?= =?us-ascii?Q?o//m0pGvtGbyPwIXXdJefTNUg/M7KaSzEANVmsTJ4C2KZv7laFtRcSRLeHUv?= =?us-ascii?Q?k6QxTCjJkzLRRbDIHyIBnEJfV9OZPOt/Ai5Rx9WjsqP/+zVGuJuCk1chzg8o?= =?us-ascii?Q?weS/902LNpDPzrqzglR14vxl5UOScp4s5CcHoMyNdBAkzBiCCgC+YhPYKRlB?= =?us-ascii?Q?cAO5rUSWcm5nvwINjakwbJ2HY3MLP4dgQpWVxu8Mj63xFJ6FlkX3m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ZL/BuVsJZXemKBHajEpHSlTU9sUGU8qXA?= =?us-ascii?Q?rnolmnYMn8k3RRew2VuL5hdablWWUIhG2r5Y86EpEprhVqeIPc2x7oAQ1vfJ?= =?us-ascii?Q?r2r/k9ikAn56X7VhlYbgI2piWtnzImz8Ih5zbdLxXTcfWiyLl2qnM4j0uWU1?= =?us-ascii?Q?l1mUmkFsxUOXQVfLJSAjYY2hiJmTKAu8Zdc+XQSqjzExvfkEuP05l3Rx4ASM?= =?us-ascii?Q?p/UWiDa4mN81yxh4RY5T4bg91WgTX91+hF3dJjTmx8KAQjHI2ywDYePgtNJM?= =?us-ascii?Q?VuWTda6/eMj4G1MHiPWkbnAEtT0K+ZDlEl2SdP1WjbKgZvWh0yt3vLVMfOqw?= =?us-ascii?Q?VFSbYlJAjFUWUPydQcieJLE5zBgZOjURnC/nkLmq?= Content-Type: multipart/alternative; boundary="_000_MW4PR12MB5666792D438D8C0CDC0FA343CBD19MW4PR12MB5666namp_" MIME-Version: 1.0 X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: MW4PR12MB5666.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: cb6ec69b-6437-4f8e-6fa1-08db046428cf X-MS-Exchange-CrossTenant-originalarrivaltime: 01 Feb 2023 14:54:03.0356 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: fIe4Vd+zrLPZq0OgLfDAbdYaOm4q/jfGgiizeWzBAcg70/4nwEYoL1wRA+6TG0kN3iM1/P85OvQDf4w+Sg0VAw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO6PR12MB5492 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org --_000_MW4PR12MB5666792D438D8C0CDC0FA343CBD19MW4PR12MB5666namp_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi, In the codebase of DPDK I saw that it uses the glibc approach to mangle symbol names with a library version to maintain diffe= rent implementations of the same function per version. So that applications which were compiled with different versions of the lib= rary will link to a proper version of the function that corresponds to the = right glibc (see doc). This method can't work in Windows with MSVC (at least to the best of my kno= wledge). How does DPDK solve if in Windows for MSVC? I failed to find the answer. Thank you, Arseniy Aharonov --_000_MW4PR12MB5666792D438D8C0CDC0FA343CBD19MW4PR12MB5666namp_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hi,

 

In the codebase of DPDK I saw t= hat it uses the glibc approach to mangle symbol names with a library version to maintai= n different implementations of the same function per version.
So that applications which were compiled with different versions of the lib= rary will link to a proper version of the function that corresponds to the = right glibc (see do= c).

This method can’t work in= Windows with MSVC (at least to the best of my knowledge).

 

How does DPDK solve if in Windo= ws for MSVC? I failed to find the answer.

 

Thank you,
Arseniy Aharonov

--_000_MW4PR12MB5666792D438D8C0CDC0FA343CBD19MW4PR12MB5666namp_--