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 35028A04DD; Sun, 19 Jan 2020 23:40:53 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 5A3C61E34; Sun, 19 Jan 2020 23:40:52 +0100 (CET) Received: from wout4-smtp.messagingengine.com (wout4-smtp.messagingengine.com [64.147.123.20]) by dpdk.org (Postfix) with ESMTP id 8153C1DBA for ; Sun, 19 Jan 2020 23:40:50 +0100 (CET) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.west.internal (Postfix) with ESMTP id 1291049A; Sun, 19 Jan 2020 17:40:49 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Sun, 19 Jan 2020 17:40:49 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding:content-type; s=mesmtp; bh=4f4KfvGfYiDRuDopo/Q6UuKMp6RRfqwZZUrjhvIIDcY=; b=aybCPm1EQgz/ P5QaETvZ1EVXXbg9l8n7pols2/BuQJlxov8EV6L66wjAt8NzFgIsZ//Sm5Iw5vus iXCZp+ZPIj0Hg8K+o9KC0bJljwnYIu6IpmE/91fB50PJ5o3ZRxmJaa3LV1ao/6OV 1gKktatA/dN19u/yg1jv8t9aHHnXb18= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=4f4KfvGfYiDRuDopo/Q6UuKMp6RRfqwZZUrjhvIID cY=; b=ySBEgEFMS7mgvTwyf4QSTduRE41hgVdDUBuD8UcqFb6eZ0cSajXJ+cdOM 5sQDYePkjHNl1CJRMAwKrUZmDMW2iRzskZwdlQtRvH5t4oDu0Xo9fBinnep2J6Gl FXPgPsE1LuS7egL9pKzVCx+d0hZPN7b0HPKT/1VGeB5Kvw8059aumsLbzRpTWQfy nvOQmje7YuV4xzVhVYYOgYdl9yyQXmlNejXW9Egx4utvrLR7S+7gHK8oHfJu68sd Cj3jzqQbYRkKaR6Q/l5drSgq53q8vIsOdpsHVzJ5RgIBCG8vN2XdWZF/hyu/Wrfr 0gjLFZ3a5OaKRnpW/E3Q5XUz3PSOA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedugedrudefgdduiedvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvufffkfgjfhgggfgtsehtqhertddttddunecuhfhrohhmpefvhhhomhgr shcuofhonhhjrghlohhnuceothhhohhmrghssehmohhnjhgrlhhonhdrnhgvtheqnecuff homhgrihhnpehllhhvmhdrohhrghenucfkphepjeejrddufeegrddvtdefrddukeegnecu rfgrrhgrmhepmhgrihhlfhhrohhmpehthhhomhgrshesmhhonhhjrghlohhnrdhnvghtne cuvehluhhsthgvrhfuihiivgeptd X-ME-Proxy: Received: from xps.localnet (184.203.134.77.rev.sfr.net [77.134.203.184]) by mail.messagingengine.com (Postfix) with ESMTPA id E69F03060AA0; Sun, 19 Jan 2020 17:40:47 -0500 (EST) From: Thomas Monjalon To: Rafael =?ISO-8859-1?Q?=C1vila_de_Esp=EDndola?= Cc: dev@dpdk.org Date: Sun, 19 Jan 2020 23:40:46 +0100 Message-ID: <2104216.AOvM4ru3NT@xps> In-Reply-To: <20191212175312.343458-1-espindola@scylladb.com> References: <20191212175312.343458-1-espindola@scylladb.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="iso-8859-1" Subject: Re: [dpdk-dev] [PATCH v2] Don't combine -r and -export-dynamic linker options 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" 12/12/2019 18:53, Rafael =C1vila de Esp=EDndola: > Running ld with -r switches the linker to a very special mode where > some other linker options don't make sense. >=20 > In particular, -export-dynamic normally requires that all global > symbols be included in the dynamic symbol table, but a .o file doesn't > even have a dynamic symbol table. >=20 > When given both options it looks like the gnu linker just ignores > -export-dynamic. >=20 > Unfortunately some versions of lld (https://lld.llvm.org/) have a bug > that causes it to try to create a dynamic symbol table in the output > .o file and ends up corrupting it > (https://bugs.llvm.org/show_bug.cgi?id=3D43552). Current (git) version > of lld now issues an error. >=20 > This patch filters out -export-dynamic from $(LDFLAGS) when using > -r. With this patch I can build dpdk with lld. >=20 > Signed-off-by: Rafael =C1vila de Esp=EDndola Applied, thanks