Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp4945392ybv; Mon, 17 Feb 2020 08:59:55 -0800 (PST) X-Google-Smtp-Source: APXvYqw1TabE0RORhiL1FFNGSSxkL+QSYR958mBwX7Q7kjOl/fqR7uqLSAR74mlvEB8QbFLg5IBo X-Received: by 2002:a9d:7999:: with SMTP id h25mr12737014otm.347.1581958795001; Mon, 17 Feb 2020 08:59:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581958794; cv=none; d=google.com; s=arc-20160816; b=0kljbtws/TtHgcf0aqrruBL2w8jeR6wfbhaGQMi7M+2EKKt5iyf2gO5K6d3yIyEltn hYee9Y6G994Jh8yxF88JpeHvOhW/XqTHpQqE6vNRsoNeC/Vj2drf+CC3nDtSTcEAiQ5M /gy5de09napKTZMMEl3eGMP+6iXz4CSpLjMXZw53W1XpgsysyzOS/HfVp0/B/sm0GIVw A67Llk1Bl5UUu7qTIoXBbXzffb1LNLLzrfyv/6FRhFHnWdNu+n8uhYbrs4t3Fx2UZv+c 76e1v35eRwACQf6vOGI85W8kqFwkKQuC48c4va/HIe5cXYm3eoQtcxNuNZ95nyflLGD/ PEWQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=t2fzrlpfDLIswA88r1aEj0D0wBHSiddPI62uLlnPVXs=; b=W6WEGUFfO3U8JXtX1DHd33lDyIHy0+n5bJbUKEByTDfFJU7q8Ko3ro7bgjB7uKiRoG up8ud0MGKLsWKYU+nSaoEuWvxTQa/MKxhPcz8uMCPa8hzk3nlsFvvXjROnqbQ/DwqaiR MeZYbGBb+iWhDzWYO/ZmIHducff+jabI4wFLZuY/uNVzUXTlk9wKjtRsIo8zNvCqbN3Q vvVugRFkg3RNMtRfvUPXx1H9Y4BfsVdpTAWDrW3guxEWw4b8IK9ghZ5s/jAVdb37lnyF 0DvLKANukMGeYwTdNmxRn210L15mHg3Oq8Qp0CyCqf63qiItsP3X1RXe/Q+J+4HYk0Aw hYkw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=XKRFlaKp; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v1si429996otp.91.2020.02.17.08.59.31; Mon, 17 Feb 2020 08:59:54 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=XKRFlaKp; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729110AbgBQQqR (ORCPT + 99 others); Mon, 17 Feb 2020 11:46:17 -0500 Received: from mail.kernel.org ([198.145.29.99]:41174 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728736AbgBQQqR (ORCPT ); Mon, 17 Feb 2020 11:46:17 -0500 Received: from willie-the-truck (236.31.169.217.in-addr.arpa [217.169.31.236]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id D5D1C214D8; Mon, 17 Feb 2020 16:46:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1581957976; bh=/DaX8+TZSwBPiTZVH9FgOz76O3KL16JyFS/ijkhuk44=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=XKRFlaKp1IYIDGXDUJvH5mH8wXq/PXWxby8tJqhb0Gldfy+UFk8+5flsOaGzmHdfo HlDNAYeeQrm/bDaFOCjFhUdWXO6SEKGWsxUiE0Of4uCTM0915fDbv4hNzC3UL8lKqY xrdgGSn1GXDrxC+bKBaQ4bujFS0dC8o+hjZV23us= Date: Mon, 17 Feb 2020 16:46:09 +0000 From: Will Deacon To: Vincenzo Frascino Cc: Nathan Chancellor , linux-arch@vger.kernel.org, ndesaulniers@google.com, 0x7f454c46@gmail.com, avagin@openvz.org, arnd@arndb.de, sboyd@kernel.org, catalin.marinas@arm.com, x86@kernel.org, will.deacon@arm.com, linux-kernel@vger.kernel.org, linux-mips@vger.kernel.org, clang-built-linux@googlegroups.com, paul.burton@mips.com, mingo@redhat.com, bp@alien8.de, luto@kernel.org, linux@armlinux.org.uk, tglx@linutronix.de, salyzyn@android.com, pcc@google.com, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH 19/19] arm64: vdso32: Enable Clang Compilation Message-ID: <20200217164608.GA2708@willie-the-truck> References: <20200213161614.23246-1-vincenzo.frascino@arm.com> <20200213161614.23246-20-vincenzo.frascino@arm.com> <20200213184454.GA4663@ubuntu-m2-xlarge-x86> <0cee3707-d526-3766-3dde-543c8dbd8e68@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <0cee3707-d526-3766-3dde-543c8dbd8e68@arm.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Feb 17, 2020 at 12:26:16PM +0000, Vincenzo Frascino wrote: > On 13/02/2020 18:44, Nathan Chancellor wrote: > > On Thu, Feb 13, 2020 at 04:16:14PM +0000, Vincenzo Frascino wrote: > >> Enable Clang Compilation for the vdso32 library. > > [...] > > >> +LD_COMPAT ?= $(CROSS_COMPILE_COMPAT)gcc > > > > Well this is unfortunate :/ > > > > It looks like adding the --target flag to VDSO_LDFLAGS allows > > clang to link the vDSO just fine although it does warn that -nostdinc > > is unused: > > > > clang-11: warning: argument unused during compilation: '-nostdinc' > > [-Wunused-command-line-argument] > > > > This is why ended up in this "unfortunate" situation :) I wanted to avoid the > warning. > > > It would be nice if the logic of commit fe00e50b2db8 ("ARM: 8858/1: > > vdso: use $(LD) instead of $(CC) to link VDSO") could be adopted here > > but I get that this Makefile is its own beast :) at the very least, I > > think that the --target flag should be added to VDSO_LDFLAGS so that gcc > > is not a requirement for this but I am curious if you tried that already > > and noticed any issues with it. > > > > --target is my preferred way as well, I can try to play another little bit with > the flags and see what I can come up with in the next version. Yes, please. I'd even prefer the warning rather than silently assuming that a cross gcc is kicking around on the path. Will