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 64F55A00C5 for ; Thu, 1 Dec 2022 11:11:56 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5E48542D11; Thu, 1 Dec 2022 11:11:56 +0100 (CET) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mails.dpdk.org (Postfix) with ESMTP id 9350742D0D for ; Thu, 1 Dec 2022 11:11:54 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1669889514; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=KcS4621MiMW/Esi6fmaLofWb2/B5Aw0Hh7xpAjGL3Yw=; b=BbL7ppDvT05iZLAASpa//xsjINhNiYL9MSFJgB6GVodWbd2bfWlnZuCKURf8Gmy+W2Plut fP+D0cPyxZYF4H5WDS1eGdpqOwut0fUL6RAzHbtHEOl7g3xXRuB5MxOEZiBGtPy3UVDeav 1xenrguxVZJgnx8+g5jTZnWTwjuuFmU= Received: from mail-pj1-f72.google.com (mail-pj1-f72.google.com [209.85.216.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-325-AygFuv9GOeS1ljoKdH5F-w-1; Thu, 01 Dec 2022 05:11:53 -0500 X-MC-Unique: AygFuv9GOeS1ljoKdH5F-w-1 Received: by mail-pj1-f72.google.com with SMTP id om6-20020a17090b3a8600b0021965c06195so5198928pjb.2 for ; Thu, 01 Dec 2022 02:11:52 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=KcS4621MiMW/Esi6fmaLofWb2/B5Aw0Hh7xpAjGL3Yw=; b=1aabEMufOAr2I5/rK4ZaZsYEB7dSQjjYoFEZ+11THvmqKojq1yVkEIeTmuaHnvmCBg wFWmeU7BL9Yt66OGoYdr/cWxsOBosKPbG8uqSwbu7+TpghBZkV0s1A8Qo+C4gDk+1N2p wcFeKiuemas9xs5i0eFT4qeZ2eS/RpattePlZ/TrQ8xZzmjb3CB+1kvBIeCpsr8t25e7 8k2AxGVApy0cUyTjuSrQCg7cSIgwcsSObNA3PU6UfpRjHlDxFxQ1BkPpXUpDWMINk50r pSTurYeyMzo8ne1lScI/b7Qj5b7LmtsoHV9rEp7Db4MnaqPv308QwV2wNc2jZZ6tcHXN pK5A== X-Gm-Message-State: ANoB5pnlmdDHHpJQ3aCUaa7ruvnrpTWCW6WcGajP+1puEUVdRSUOkjE8 DQn5yxUw2KKXaKUw3MK99JUkDtTpRTIqDV+eqr0KzLncTzVukttzZbDhIPvIX+PkZwFgGeqF6ch R5SZ56eIduuhpMzQirReDpnY= X-Received: by 2002:a17:90a:f48d:b0:212:c877:e948 with SMTP id bx13-20020a17090af48d00b00212c877e948mr76937928pjb.39.1669889512046; Thu, 01 Dec 2022 02:11:52 -0800 (PST) X-Google-Smtp-Source: AA0mqf5jYFsMzx9iy9Ac6WmnOHmxxiaP25bzyZpWzAl3+l2o29NMo2D9Vgan4urvexEGcC8hTy+pcOCaKI2VAs1iMR4= X-Received: by 2002:a17:90a:f48d:b0:212:c877:e948 with SMTP id bx13-20020a17090af48d00b00212c877e948mr76937906pjb.39.1669889511748; Thu, 01 Dec 2022 02:11:51 -0800 (PST) MIME-Version: 1.0 References: <20221129140032.35940-1-david.marchand@redhat.com> <20221130100204.214181-1-david.marchand@redhat.com> <191d5966-dd66-3a26-2789-6c6e5ce78aa2@amd.com> In-Reply-To: From: David Marchand Date: Thu, 1 Dec 2022 11:11:39 +0100 Message-ID: Subject: Re: [PATCH v2] drivers: fix symbol exports when map is omitted To: Bruce Richardson Cc: Ferruh Yigit , Luca Boccassi , dev@dpdk.org, stable@dpdk.org, Thomas Monjalon , =?UTF-8?B?QWJkdWxsYWggw5ZtZXIgWWFtYcOn?= X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="UTF-8" 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 Wed, Nov 30, 2022 at 4:42 PM Bruce Richardson wrote: > > On Wed, Nov 30, 2022 at 04:02:26PM +0100, David Marchand wrote: > > On Wed, Nov 30, 2022 at 11:44 AM Ferruh Yigit wrote: > > > > > > On 11/30/2022 10:02 AM, 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: * catch-all statement. > > > > > > > > The checks are 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 else to check in this map. > > > > > > > > While at it, move Windows specific objects where needed for better > > > > readability. > > > > > > > > Fixes: 7dde9c844a37 ("drivers: omit symbol map when unneeded") > > > > Cc: stable@dpdk.org > > > > > > > > Reported-by: Luca Boccassi > > > > Signed-off-by: David Marchand > > > > Tested-by: Ferruh Yigit > > > > > > Tested v2, looks good. > > > 'check-symbol-maps.sh' warning fixed too. > > > > Thanks Ferruh. > > > > Bruce / Luca, could you review / confirm it is ok for you? > > > LGTM, thanks. Thanks Bruce. I prefer to separate the "cosmetic" part around Windows (and fix lib/meson.build too), so I sent a v3 series with only the first patch marked as backport. -- David Marchand