From patchwork Thu May 4 20:52:08 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 98578 Delivered-To: patch@linaro.org Received: by 10.140.89.200 with SMTP id v66csp806385qgd; Thu, 4 May 2017 13:52:29 -0700 (PDT) X-Received: by 10.99.254.69 with SMTP id x5mr48026004pgj.2.1493931149492; Thu, 04 May 2017 13:52:29 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x7si3136031pls.89.2017.05.04.13.52.29; Thu, 04 May 2017 13:52:29 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of stable-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of stable-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751456AbdEDUw2 (ORCPT + 6 others); Thu, 4 May 2017 16:52:28 -0400 Received: from mout.kundenserver.de ([212.227.126.187]:61261 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751281AbdEDUw2 (ORCPT ); Thu, 4 May 2017 16:52:28 -0400 Received: from wuerfel.lan ([78.42.17.5]) by mrelayeu.kundenserver.de (mreue001 [212.227.15.129]) with ESMTPA (Nemesis) id 0MaRL6-1dLrHo2xMO-00JrqL; Thu, 04 May 2017 22:52:20 +0200 From: Arnd Bergmann To: gregkh@linuxfoundation.org Cc: stable@vger.kernel.org, Arnd Bergmann , Catalin Marinas Subject: [PATCH 12/13] [3.18-stable] arm64: build vdso without libgcov Date: Thu, 4 May 2017 22:52:08 +0200 Message-Id: <20170504205209.498721-13-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 In-Reply-To: <20170504205209.498721-1-arnd@arndb.de> References: <20170504205209.498721-1-arnd@arndb.de> X-Provags-ID: V03:K0:qRgkIl5xxQHJ0CVd7rEU2YI4oFJerUFNhYon0v1CNLTU1cCiluc XFLGlT51RieClqHUWkLoZP1wLjQ/lwJlY9O+uLCTdigmiwAf7GoICPkZr9SEAlR639lZOtw osslix1sOaReQIp4jZGzj/bFQpDAFmvm6wCt+IUyAbJX3b2w75AUZ4HzhiJV77oVY5OVmpg sudmutn449aqe+I+1eiMg== X-UI-Out-Filterresults: notjunk:1; V01:K0:90vb3GNrt0k=:9BGG9VaXGvJfmYRC5btUj1 5lBaHE5tnf075V5709NXgPDMltxKYWK/B5BlG6Fgt12rlII0pouwLtbfQHRTt2LFGTio1MiLn uzq8jWW7r9IR2bUptR2HATE1SGcDaiCMc4bip+eyM+ht2bKU6MMC8GjuxfDHSkoNJs06FEOe6 DvgCLLqVBt2MhTE73m7x4eCoz4U6WGXpwXDUS5O174k09PS8P5OuB3joVPex7h0bihveD49JD mQld6SZvaGapxi+/rgivAcS7aFLH6oLKfotfb+8pD4R5d4OGCy5vpCtH1jZT/CR9wFe6bBAoO 6E6pCBQYMTmRkz0W4ht1u/aBqicHjlGdUwfQALV0CCJ1OVo2MIt+nR4TEM90m44QXv02We1XP EqHp86w9kZsjUrtgwZpNpZRQy/jhz336U5tWmJfHa6pSQdvabq+lFs+yQRldE/tzsZLXzhjz+ 7uPVbCK17n/cD/L5TjOKr0Ny71TephUvUWvBkesUfJN4MJyfgmR96BVIIqf7iNUGJjfxUvZi3 y2xPfoR1iJ9I7gQ2pSz12nbtlrK813cNM/iNvTWuG+sIqQS65wZaixCqyg63uSgcZqw4YvDe7 8FM9hUf0ncXoKQs6pjiTEkxbBjvFr++ZwXDu7mF2xChT86cuHcccT6QgTtDpTrrCWqOoCeONS tBrV0nJf8aC7Og6JuNLttjzLYGZ2/9VZP5L40SzG/EBTadMy2lloVfgTKk04QA4xZbQk= Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org Commit 543097843ca7c9ac3758d0b5879ea2a6f44089de upstream. On a cross-toolchain without glibc support, libgcov may not be available, and attempting to build an arm64 kernel with GCOV enabled then results in a build error: /home/arnd/cross-gcc/lib/gcc/aarch64-linux/5.2.1/../../../../aarch64-linux/bin/ld: cannot find -lgcov We don't really want to link libgcov into the vdso anyway, so this patch just disables GCOV in the vdso directory, just as we do for most other architectures. Signed-off-by: Arnd Bergmann Signed-off-by: Catalin Marinas Signed-off-by: Arnd Bergmann --- arch/arm64/kernel/vdso/Makefile | 3 +++ 1 file changed, 3 insertions(+) -- 2.9.0 diff --git a/arch/arm64/kernel/vdso/Makefile b/arch/arm64/kernel/vdso/Makefile index f6fe17d88da5..b467fd0a384b 100644 --- a/arch/arm64/kernel/vdso/Makefile +++ b/arch/arm64/kernel/vdso/Makefile @@ -15,6 +15,9 @@ ccflags-y := -shared -fno-common -fno-builtin ccflags-y += -nostdlib -Wl,-soname=linux-vdso.so.1 \ $(call cc-ldoption, -Wl$(comma)--hash-style=sysv) +# Disable gcov profiling for VDSO code +GCOV_PROFILE := n + # Workaround for bare-metal (ELF) toolchains that neglect to pass -shared # down to collect2, resulting in silent corruption of the vDSO image. ccflags-y += -Wl,-shared