Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp456954yba; Thu, 16 May 2019 03:49:01 -0700 (PDT) X-Google-Smtp-Source: APXvYqwK5nAMXvf14B06oAb58/NfkH3jvNqUZ1BypNZRBxByRtOZdTqijWdeL8fs46jXG3cr9RSW X-Received: by 2002:a62:e201:: with SMTP id a1mr53221568pfi.67.1558003741567; Thu, 16 May 2019 03:49:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558003741; cv=none; d=google.com; s=arc-20160816; b=0rQW29larMwb+dGNIh/pCzj+Kcw9eKA0jrxKTkVuGHUWdn5jqtxzvOTDShtRpoyXWA 7qVZYTC3YmbdDlTZn6uZfVQH9U06rW/wEDrC0gbk3KtYur1LmFqiJLEa6r6l89pfNTut o8cd0xLWkEgTRqlO7MdBlsL+YSNCJhSNaMT6xDBsGxoUm/Q4ZxD80A+fxYrgGlzJOXQ2 IQgn/Ec9ndxiGEHQqCtLJ1KiMR7zViezuCwS4BcOPNr2zXWHxkuZLybT/uPhHiiSa4FV jLA2vX2H5TK7TVLyqER5UW505IwuXONPxmHuoRtuv3S3GHdBnnOdbjqNjgmaZK8WhNnq zxMg== 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; bh=8ZMK6QC433YQ5uB7pUBgdPNpErQqArAIe0Ik2RMqAVQ=; b=JeoCZ0jcKBKZozKmPWQYugqVQZDlXQqnEKsFsRUf8jtC7TR2gYKOMcantFZSarewiR w/ahBlpcSJ8GG5RiRFpB/+npMO5sefpZBFjQ++Z2pC1J1FVodpHS/kvrvxcc+jPhIajU Fnn5iDHINtZd/zmWvVOFrxsez/RKOJA4VBbNnqp3DWbT4i4lMwWx3WLC4hfQEZS3yw/L iAhXTxhMANZBOwFdXMz7sXg6/uSH7/83OPDrFEq1WFJtWDWePLQN81wtEETsHgE36Oek hR1F7h72WCIKnNIPrV+mPQ6bvGCP0YWi/ALml3pZon2S2zd/VmIOtI1WxorGHRnSgBG5 7e4Q== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x123si5467524pfx.157.2019.05.16.03.48.47; Thu, 16 May 2019 03:49:01 -0700 (PDT) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727038AbfEPKqZ (ORCPT + 99 others); Thu, 16 May 2019 06:46:25 -0400 Received: from foss.arm.com ([217.140.101.70]:41402 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726796AbfEPKqZ (ORCPT ); Thu, 16 May 2019 06:46:25 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 4AE9519BF; Thu, 16 May 2019 03:46:25 -0700 (PDT) Received: from fuggles.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.72.51.249]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 5EA4F3F703; Thu, 16 May 2019 03:46:24 -0700 (PDT) Date: Thu, 16 May 2019 11:46:19 +0100 From: Will Deacon To: Masahiro Yamada Cc: Laura Abbott , Linux Kernel Mailing List , linux-arm-kernel Subject: Re: [PATCH] arm64: vdso: Explicitly add build-id option Message-ID: <20190516104619.GA29705@fuggles.cambridge.arm.com> References: <20190515194824.5641-1-labbott@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.11.1+86 (6f28e57d73f2) () Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, May 16, 2019 at 01:58:56PM +0900, Masahiro Yamada wrote: > On Thu, May 16, 2019 at 4:51 AM Laura Abbott wrote: > > > > Commit 691efbedc60d ("arm64: vdso: use $(LD) instead of $(CC) to > > link VDSO") switched to using LD explicitly. The --build-id option > > needs to be passed explicitly, similar to x86. Add this option. > > > > Fixes: 691efbedc60d ("arm64: vdso: use $(LD) instead of $(CC) to link VDSO") > > Signed-off-by: Laura Abbott > > --- > > arch/arm64/kernel/vdso/Makefile | 1 + > > 1 file changed, 1 insertion(+) > > > > diff --git a/arch/arm64/kernel/vdso/Makefile b/arch/arm64/kernel/vdso/Makefile > > index 744b9dbaba03..ca209103cd06 100644 > > --- a/arch/arm64/kernel/vdso/Makefile > > +++ b/arch/arm64/kernel/vdso/Makefile > > @@ -13,6 +13,7 @@ targets := $(obj-vdso) vdso.so vdso.so.dbg > > obj-vdso := $(addprefix $(obj)/, $(obj-vdso)) > > > > ldflags-y := -shared -nostdlib -soname=linux-vdso.so.1 \ > > + $(call ld-option, --build-id) \ > > $(call ld-option, --hash-style=sysv) -n -T > > > > # Disable gcov profiling for VDSO code > > > I missed that. Sorry. > > You can add --build-id without $(call ld-option,...) > because it is supported by our minimal version of toolchain. > > See commit log of 1e0221374e for example. Ok, so I'm ok folding in the diff below on top? Will --->8 diff --git a/arch/arm64/kernel/vdso/Makefile b/arch/arm64/kernel/vdso/Makefile index ca209103cd06..fa230ff09aa1 100644 --- a/arch/arm64/kernel/vdso/Makefile +++ b/arch/arm64/kernel/vdso/Makefile @@ -12,9 +12,8 @@ obj-vdso := gettimeofday.o note.o sigreturn.o targets := $(obj-vdso) vdso.so vdso.so.dbg obj-vdso := $(addprefix $(obj)/, $(obj-vdso)) -ldflags-y := -shared -nostdlib -soname=linux-vdso.so.1 \ - $(call ld-option, --build-id) \ - $(call ld-option, --hash-style=sysv) -n -T +ldflags-y := -shared -nostdlib -soname=linux-vdso.so.1 --hash-style=sysv \ + --build-id -n -T # Disable gcov profiling for VDSO code GCOV_PROFILE := n