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 CD1DCA00C5 for ; Tue, 29 Nov 2022 19:23:31 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C756942B8C; Tue, 29 Nov 2022 19:23:31 +0100 (CET) Received: from NAM02-BN1-obe.outbound.protection.outlook.com (mail-bn1nam02on2043.outbound.protection.outlook.com [40.107.212.43]) by mails.dpdk.org (Postfix) with ESMTP id 743F440691; Tue, 29 Nov 2022 19:23:29 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=IC+9gdivjjDUUzKf0YOTSu3CWjhE0EsW1KV+U2Zx+z5AltWulUAS/S9cJ4GwpYXa1SshVL+RqIkSTWUJbBzyTIDAf0lAos9Zz3AMvz+ba8lsG4gyexgEFoSQ0f2Y0SklmZmsO8dj4AN3h1ar+HohPDbW4Zm7hRVPWEGhHXyhabLnj4UrUHmZsaPQ67KPVaisZtwGaoRP97Qdj5XhgcnUNCkwwgwVVwUtdmPoQOEfZgVv4kT5GPK4fNWUxH5yLnwVWSt9Iv02v2pnhHcq9wy8CXz/dBa63CzMmnJp5yaEs52aqpq63gU0xN1N+h9lsGngA4Z2oyONDiFEWQi2Ym0c9A== 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=9kTZ42sSQwu+fgyjGjB9ZGOFsOltwh7LLGilfV3MJqw=; b=QKpTmHiabU5Og+ZP++pyfxdRWn73xonaGITRAH/4JGqVJH/vBqGohmg4YCcKZzQ92GkXDK+W0IajNE5+uHYjJhvqg7CNnk3pcwbOceKPfeY6kvmrSlX5ydBDr3Ay8ILRGBELaiJHwP7NuUfiDfP6fHhYeFdz+LLM5Zqau197aj4U+dgyUYFnM+eoFeCydcfSfxccOFw2VUGCwAExeWkB6HmUNP02L/Clp9s1zksKy7RT414KXCQdAmnzcdCGNc82PaLzMLaoFgkpzpiPmUt9twKLtsj4RgnIy7Ye133ApXdwOtB4k0FCJNiyyEFCLcDbiq48HktXzjHiVo0m/KC84w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=9kTZ42sSQwu+fgyjGjB9ZGOFsOltwh7LLGilfV3MJqw=; b=P1K/eKeCMg/TZohnuONcM/G3bJIgmbJbh7YLmHigmq6BS1sulKL2rtnY8kzmn+tfscYzoYZ8eyWLdGAI7r3dDBjm8MXVTYi83vRtEZF4sbqq6SNe/lCUs8+J2FLlaIj4KzOpMc8e/iUttY1FbqWoEhJCWihYJ0D8hY+A0RJFTHU= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com; Received: from CH2PR12MB4294.namprd12.prod.outlook.com (2603:10b6:610:a9::11) by DS0PR12MB7629.namprd12.prod.outlook.com (2603:10b6:8:13e::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5857.23; Tue, 29 Nov 2022 18:23:26 +0000 Received: from CH2PR12MB4294.namprd12.prod.outlook.com ([fe80::b482:d5bd:c7d0:3842]) by CH2PR12MB4294.namprd12.prod.outlook.com ([fe80::b482:d5bd:c7d0:3842%9]) with mapi id 15.20.5857.023; Tue, 29 Nov 2022 18:23:26 +0000 Message-ID: Date: Tue, 29 Nov 2022 18:23:21 +0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.5.0 Subject: Re: [PATCH] drivers: fix symbol exports when map is omitted Content-Language: en-US To: David Marchand , dev@dpdk.org Cc: stable@dpdk.org, Luca Boccassi , Bruce Richardson , =?UTF-8?B?QWJkdWxsYWggw5ZtZXIgWWFtYcOn?= References: <20221129140032.35940-1-david.marchand@redhat.com> From: Ferruh Yigit In-Reply-To: <20221129140032.35940-1-david.marchand@redhat.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-ClientProxiedBy: LO4P265CA0207.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:318::20) To CH2PR12MB4294.namprd12.prod.outlook.com (2603:10b6:610:a9::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CH2PR12MB4294:EE_|DS0PR12MB7629:EE_ X-MS-Office365-Filtering-Correlation-Id: 58826143-f3b6-4b3b-ecea-08dad236cebe X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: EVGI0onDRbv5obbHtZ1k8gNbX7bqh8OJ+xkDOnA59nWVhJJCMkvV7sj1vY9dWaSee/cPCUaNGJyvPhLePtqyVB82CrIheCtwdgAT5dP3xRGW99y61TjpHgxGJcF0I0V6DuMmO6BD/lgltMB0WY0l+2gv68RXpVYe/tpmBLqI6NX3Uni4sGDEhsanO+9MsUzkXZVC1GGBShISlbBv6TwtaArfuIbobzzMs7qDhcb2M4eZuKGUOzvgT0cfmIZkj82U4JQgx1Vs1FoZiaOjSrJGfn8VHCIDPx1FBXV+Pxb/5KHSiIZLCv7hEFI1NHbqAu+2iw+eeuoXhLwYG3aMlkHViUCmVZ67OGaeM8tel2mhajMnYyYt5RjPrauTL6jHQx0H5QzI1xs8QNg0zOEL+x4mLU6Po5lPBejdUDeRmpBzBay3wXKnKa4ICQl4kNe42XwSC6Koz5vib1qoRkQAu8ElmfPq3wFtWZi8q7dYQXcdIw7fcgFX1m/gDLFEehDv73h1n1FmyRhtPn3uruZs+9ItaZKbpEVl2O/ULKYR+pwq15nCDK9l6VxvtXFlqrayWNeQ0CqZixALm9oWMSDlIxNbRRCDKK4SXXfZlSotthz+PkSnI+zPo2O44AJjBJQg3zVxjAyhlrHVAY558X3OTXpRgZ65zDpTtEioVO8z6izGhvBz2pAPCfU7iaHPp115Oj5xOEfmM6wfXPhVUoXvID5B31f6Enl7W3/jC3pQJbvLnzI= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:CH2PR12MB4294.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230022)(4636009)(346002)(396003)(136003)(376002)(39860400002)(366004)(451199015)(54906003)(2616005)(6512007)(26005)(53546011)(36756003)(186003)(316002)(6486002)(6666004)(478600001)(45080400002)(38100700002)(31696002)(86362001)(83380400001)(5660300002)(6506007)(2906002)(44832011)(31686004)(4326008)(66556008)(66476007)(8676002)(66946007)(8936002)(41300700001)(43740500002)(45980500001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?WkZVYnN3YTVzR0liV2N5VWRsN2hYdGcvUkU0OVJ4dm83enRkVUVjZ0haM21m?= =?utf-8?B?aWRSWUNtRGNDTWpiZEI2N0k0cUFIWTlIT0ZDbGZqM01NOEFaK1RIdi9hOTFn?= =?utf-8?B?emJuOXM2dlNLdlZGQWwxaGlUa1hveWtJdWdXeTJOVnA0ZnpWTjFLWTRSZHBT?= =?utf-8?B?OVRYNFBlN3pRV0tsOTcrb0JRNlZwR00wVzhzQkRkWk9TMG9HdXRrMFlLUmx2?= =?utf-8?B?QW0vZXcrajdiMXI2S3lUVk1udVR5VHVPeUFWQVNnK29RTFFWM3VaREsvc3I0?= =?utf-8?B?KzgrVWQvZlVD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ZPZ0lOdStFZmtpTlNIK1JHdXRZbHl3?= =?utf-8?Q?2s29S7zbX8dtrnARyelt9rLUF?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 58826143-f3b6-4b3b-ecea-08dad236cebe X-MS-Exchange-CrossTenant-AuthSource: CH2PR12MB4294.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Nov 2022 18:23:26.7857 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: DozknncjLzL5loXZI/xVtpmaM/0JqjIx7KBY+SWOIF25kqsxrVXD1l3BJYdrwjzx X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS0PR12MB7629 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 On 11/29/2022 2:00 PM, David Marchand wrote: > ld exports any global symbol by default if no version script is passed. > As a consequence, the incriminated change let any public symbol leak > out of the driver shared libraries. > > Hide again those symbols by providing a default map file which > unexports any global symbol using a local: * catchall statement. > I assume this will cause warnings for ABI check scripts, how can we prevent the warnings? > The check on symbols is skipped for this default map file as it is > intentionnally an empty map (see commit b67bdda86cd4 ("devtools: catch > empty symbol maps")) and there is nothing to check in it. > How it is skipped, './devtools/check-symbol-maps.sh' still complains about 'drivers/version.map' for me. > While at it, move Windows specific objects where needed for better > readability. > +1 > Fixes: 7dde9c844a37 ("drivers: omit symbol map when unneeded") > Cc: stable@dpdk.org > > Reported-by: Luca Boccassi > Signed-off-by: David Marchand Not tested on Windows, but for Linux: Tested-by: Ferruh Yigit