From patchwork Mon Feb 5 18:00:06 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Github ODP bot X-Patchwork-Id: 126920 Delivered-To: patch@linaro.org Received: by 10.46.124.24 with SMTP id x24csp2185971ljc; Mon, 5 Feb 2018 10:00:50 -0800 (PST) X-Google-Smtp-Source: AH8x225Zua3adScmgxpdQg2/kqur2iwwvOSi35IkqEqyR8IBJVqfIGnioF+YiffrvA41jIzF32fY X-Received: by 10.200.44.34 with SMTP id d31mr75968335qta.14.1517853650071; Mon, 05 Feb 2018 10:00:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517853650; cv=none; d=google.com; s=arc-20160816; b=S14JOF5KuvMUAmmQCxK2XHbZoOYHYfog97GPiBGg8kWO+S2AeM3LT+adavE/0Xcn/D aLzLGpXiLkSeUnDLmvnndmpuKF0LCIBN9Je4gd9/y1EOhXxzfqZnzCu+JnRCqzUh4yum FqokqEoSpMjMBUVT3sbf9zXb/ExQPDN+pl8znRX655yx9INrEcAgQtfVkIwEF+Zw8G/H D0FT7GkztFnt89dxRk6cX62HvRJ56ZdXwIJWCX7l6+mMvS3fTjly/nj/n+dvf9Uqqad3 uTdBPzSTz23HoD7GS90IF7w60sNxgTG6/u5W0FNWspiF+3fXC+wTvZvYGINl2qPleEoJ hf4w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:github-pr-num :references:in-reply-to:message-id:date:to:from:delivered-to :arc-authentication-results; bh=8BqVAwXkwfuOiVKMnBAV2Gr7acwz2QXthijjKaX+uFU=; b=oXNQzq2Hf6aDZKzSc89vlbF8S2dTeM55+0j04LLoCCCNGPLceUhu4iFF04oPbrC4uO 6Vt16/K0Z1tKpe9c4ZAsuFqmNIaZZQYpwcIQUK+QKSKNH20JfBvaT8itLlUtrPXstDEh yc6zteLcuGoFHhEAd9oJnT+1+t5RU+0jvePsteij2U5ILTcELyi5AJj+m0DIblKQzyzz qGGMf4/zyspBW0UtBQ2oU/Ug2B2O2vXWC1Vm1t/HnMWOX+316DNFIf5zs5OwvGPzNmOt +Ktgjhv6Upkdv/078twcqxb8UXjU5RIB7mC6QZkZx0KBfaTRXDLSU5af9/cpYB/eNdfy md0A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Return-Path: Received: from lists.linaro.org (ec2-54-197-127-237.compute-1.amazonaws.com. [54.197.127.237]) by mx.google.com with ESMTP id a35si8388579qtb.193.2018.02.05.10.00.49; Mon, 05 Feb 2018 10:00:50 -0800 (PST) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) client-ip=54.197.127.237; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Received: by lists.linaro.org (Postfix, from userid 109) id C04A061774; Mon, 5 Feb 2018 18:00:49 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252 X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL autolearn=disabled version=3.4.0 Received: from [127.0.0.1] (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id E6FB6608CF; Mon, 5 Feb 2018 18:00:20 +0000 (UTC) X-Original-To: lng-odp@lists.linaro.org Delivered-To: lng-odp@lists.linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 43F4060672; Mon, 5 Feb 2018 18:00:12 +0000 (UTC) Received: from forward106j.mail.yandex.net (forward106j.mail.yandex.net [5.45.198.249]) by lists.linaro.org (Postfix) with ESMTPS id 55F5E617BE for ; Mon, 5 Feb 2018 18:00:10 +0000 (UTC) Received: from mxback12g.mail.yandex.net (mxback12g.mail.yandex.net [IPv6:2a02:6b8:0:1472:2741:0:8b7:91]) by forward106j.mail.yandex.net (Yandex) with ESMTP id D1FEA1801812 for ; Mon, 5 Feb 2018 21:00:08 +0300 (MSK) Received: from smtp1o.mail.yandex.net (smtp1o.mail.yandex.net [2a02:6b8:0:1a2d::25]) by mxback12g.mail.yandex.net (nwsmtp/Yandex) with ESMTP id vKqe9q8SlM-08n8oNXE; Mon, 05 Feb 2018 21:00:08 +0300 Received: by smtp1o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id rXjKIcrk7J-08UCicsY; Mon, 05 Feb 2018 21:00:08 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (Client certificate not present) From: Github ODP bot To: lng-odp@lists.linaro.org Date: Mon, 5 Feb 2018 21:00:06 +0300 Message-Id: <1517853606-19509-2-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1517853606-19509-1-git-send-email-odpbot@yandex.ru> References: <1517853606-19509-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 454 Subject: [lng-odp] [PATCH v1 1/1] build: limit symbol visibility for libodp-linux X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: "The OpenDataPlane \(ODP\) List" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" From: Dmitry Eremin-Solenikov If libodp-linux is linked with static DPDK libraries, it will re-export all DPDK symbols. Use libtool's -export-symbols-regex to limit symbol visibility. Signed-off-by: Dmitry Eremin-Solenikov --- /** Email created from pull request 454 (lumag:symbol-visible) ** https://github.com/Linaro/odp/pull/454 ** Patch: https://github.com/Linaro/odp/pull/454.patch ** Base sha: 27a7923236030fed0272cc9072f0cde62496e91d ** Merge commit sha: 9946727ce9cb49ea5aa50dc26e46b48abc871f7e **/ platform/Makefile.inc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/platform/Makefile.inc b/platform/Makefile.inc index 4714de0ee..813ad97e0 100644 --- a/platform/Makefile.inc +++ b/platform/Makefile.inc @@ -8,6 +8,12 @@ lib_LTLIBRARIES = $(LIB)/libodp-linux.la AM_LDFLAGS = -version-number '$(ODP_LIBSO_VERSION)' +if ODP_ABI_COMPAT +AM_LDFLAGS += -export-symbols-regex '^(_deprecated)?odp_' +else +AM_LDFLAGS += -export-symbols-regex '^(_deprecated)?_?odp_' +endif + AM_CFLAGS = "-DGIT_HASH=$(VERSION)" AM_CFLAGS += $(VISIBILITY_CFLAGS)