From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 62365A00C3; Mon, 8 Jun 2020 02:09:37 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id BD43E1BEE3; Mon, 8 Jun 2020 02:09:36 +0200 (CEST) Received: from mail-lj1-f181.google.com (mail-lj1-f181.google.com [209.85.208.181]) by dpdk.org (Postfix) with ESMTP id 2D32F1BE80 for ; Mon, 8 Jun 2020 02:09:35 +0200 (CEST) Received: by mail-lj1-f181.google.com with SMTP id y11so16611184ljm.9 for ; Sun, 07 Jun 2020 17:09:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=okO3nZmlF3AiYHq+fBAwrBbS369QxXepOAa4Qn+rro4=; b=oyJJMVY+oFlIpVbZ7TPzzOrp2f6Ahz2SLu6kOMcgpLutD0dvXWviWvXvdb/fzsx32W FjN6GsdeOm9HC16Y829Oalk2PAJwVRR3jkMHj8b78zxbQ5K42nmB8V/YzzXg9hGxQNgl 4zzLVAiF06wQM1ZFKClBNs+M3IwwoCR2toIZcHT3yxxXmDAE4iNKGJ0ndxCm0i75EZXm DbPGZ8yh+GFv6qNrTeoOUoZ5LqmvUO9CeQ3GikH3u9iRAew/kUUv23+FfwShv4yDNipJ s1jEEChDVNUIV8tqhcemQOjF7Vkgp2AyIFkpmXDhrMuEqh0Arbw+OIdL+hvfP5aXKBlF 2iLw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=okO3nZmlF3AiYHq+fBAwrBbS369QxXepOAa4Qn+rro4=; b=RsB40qdN6Iq9kXIIqP0+ccJAgdJ4z+NrZDCNMe4Yz0GMYVCkU7oVUIg34GxQ+9X2dl KbyvhsNn0BToiOXJkjbdlsZCGYn0RnXkGL2Hf/lJf488M5PjAJ7rThEeD7Cvlbv3eKfc BkK0/Znr1GIhexXVusmbpzNNudTqmo247on4xqTYJpx5/75naLQuU/difgz19RJ2DMy7 RBMdTx+tTLcme8gI5uDsK7zw/GEtJP05KncokpySHV0M2oxiSbPbRVMdilL5351l2KrE YAb4pC0qHsntOmGS6QGmOcKMua6/vqBs6VfO85JBYQVvGDjG3X2wntxKUhvIThaGbpST njSw== X-Gm-Message-State: AOAM533Xh7LyZNxRdrGelI5iz19wQkfVIudJuMneZ38M9KMXtwISY/G0 UeJSWH/bdCQtnYqQCOjsT+M= X-Google-Smtp-Source: ABdhPJxBa/UqJ3R0nMq/nD865TSPd/uUURE/r0Jdl+TODLv9YIiQFM8rlKMBCih1K3f9KGZdT21p/w== X-Received: by 2002:a05:651c:318:: with SMTP id a24mr7838436ljp.55.1591574974717; Sun, 07 Jun 2020 17:09:34 -0700 (PDT) Received: from sovereign (broadband-37-110-65-23.ip.moscow.rt.ru. [37.110.65.23]) by smtp.gmail.com with ESMTPSA id o4sm4003963lfb.75.2020.06.07.17.09.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 07 Jun 2020 17:09:33 -0700 (PDT) Date: Mon, 8 Jun 2020 03:09:32 +0300 From: Dmitry Kozlyuk To: Tal Shnaiderman Cc: Thomas Monjalon , "ranjit.menon@intel.com" , "pallavi.kadam@intel.com" , Harini Ramakrishnan , "navasile@linux.microsoft.com" , "bruce.richardson@intel.com" , William Tu , "Dmitry Malloy (MESHCHANINOV)" , Fady Bader , Tasnim Bashar , "dev@dpdk.org" Message-ID: <20200608030932.5d09c061@sovereign> In-Reply-To: References: X-Mailer: Claws Mail 3.17.4 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] Handling missing export functions in MSVC linkage X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On Sun, 7 Jun 2020 12:26:56 +0000 Tal Shnaiderman wrote: > In clang build the .map file is converted into Module-Definition (.Def) File. If you create a .def manually, it will override the generation from .map. Of cause, this adds manual work and ideally all .def files should be generated. > Is there a way to instruct the linker to ignore missing functions in the def file? There is /FORCE:UNRESOLVED, but it will ignore *any* unresolved reference, that's why I'm against using it---this can lead to hard-to-diagnose errors. https://docs.microsoft.com/en-us/cpp/build/reference/force-force-file-output?view=vs-2019 The only proper way I see is forgenertor script to analyze both names .map and symbols .lib to filter out undefined functions. Dumpbin.exe should be able to list symbols and it comes with MS Windows SDK, IIRC. -- Dmitry Kozlyuk