Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp730153imm; Fri, 3 Aug 2018 10:30:18 -0700 (PDT) X-Google-Smtp-Source: AAOMgpeKUtUWCH6aLEfr4OXGITPbwbzFXtR5JA9s03eEWg5N7hBeza0WAdOmpAclL6yl30o9g8K6 X-Received: by 2002:a62:1314:: with SMTP id b20-v6mr5566445pfj.230.1533317418014; Fri, 03 Aug 2018 10:30:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533317417; cv=none; d=google.com; s=arc-20160816; b=mEjbp5gzCFxFd5AkkVjkkaz4COhgtFcekePA/TI1+1CyhCeUDdyTvDu4cdk1UA0/nB ZBnRY5oJeQjvCUsEjBP+zINjgeSKlvPIJgb6gFVo/CTzqUQz96cE0he9OxC6/dRZYxOJ GNB0v7KmGTtUEO63BfnOmdWCm6QOKVWBDJkfZdyuV4O+zRkft8Vscp+xhVcj8t2e7Bw4 A0dWK8Nxm6fxiVCXq4aFcmfx1TmRZcYhURVGTefEzMb8F5K1S7TNYfIHIKygPWeAhGEp P2NIzaoJbCkCtp3Pmg0N9t5iCUfwZhVWpQJMMr6hr18UGfLg1eOVX79DYIxBG6NXj/pi B41w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature :arc-authentication-results; bh=l6qe4QD2LITbU4cVVLz54Rwb7sR4qWtD3odJGTkSZFo=; b=x9cXncgZ6eT5jaSPoUCWpc+iOe9s/6rll2TzMBjmnZ6A31MLR6/V+h5ds7ln5pDO1I 3btxvnCNL/JNiCp78mOSPKvRH6Y9KwJOShi+BtkVD+Ce+IwSQnjeSMWdmPxf+xTr7/lS B8wtdQSrAtENfRYpUMs/wx0yuMzcXGT7ygvmq1Z6nT201xLgiqi8snDqbph4D3dVCBqL 6wqdI2IiW+dPANQFhDyBAyarWu5X+WYrWPXtScEk9xDcNdBYD37zLVBZfDXN1YEW6aTm G4YRN1KjZ0czptQuOJuWxj2LmkupCu40QpWbAj0cEGNq6kXxHHD2E9ETdiV+1NpR90/9 8Mdg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=uaMhBVcc; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a74-v6si5897974pfe.301.2018.08.03.10.30.03; Fri, 03 Aug 2018 10:30:17 -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; dkim=pass header.i=@google.com header.s=20161025 header.b=uaMhBVcc; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729422AbeHCT0a (ORCPT + 99 others); Fri, 3 Aug 2018 15:26:30 -0400 Received: from mail-it0-f66.google.com ([209.85.214.66]:36809 "EHLO mail-it0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727843AbeHCT03 (ORCPT ); Fri, 3 Aug 2018 15:26:29 -0400 Received: by mail-it0-f66.google.com with SMTP id p81-v6so9458021itp.1 for ; Fri, 03 Aug 2018 10:29:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=l6qe4QD2LITbU4cVVLz54Rwb7sR4qWtD3odJGTkSZFo=; b=uaMhBVccsUSJOtj6Mk8iiZKvXyzUHHxq3+dbCMAVm77aG47DAzi+bA0uYK3f9oX8qv BWjzXc/ody3Uu98OOr3JJCj3YySRpRjUG4LgLrCaO39Aof1x0sCqcRXGSniL5PSmrPtF XqDICRKBM6bOl4d0CT7Vsh+TMxHC8VGOU49C9F/ZhmVq9+velTNEurc/WM4VcZvB9GDR TzG7gNxl0QUMlDD+0JCbL1/EYelBzxXOAadLjII7u7TNb9um3/ete5lXG4wjeSbXzHB0 i/Q3/xPaseYBiaooFBYZMFmaRj8NLT3HkI1g451fcqbcBrhpc3OgRFwCa6kGYfvbre4i eoXw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=l6qe4QD2LITbU4cVVLz54Rwb7sR4qWtD3odJGTkSZFo=; b=lK7R0N1X0RnHZPOsF63Zcz5RMfRLbbvbIrv6VIXyL2kRgTiOcdkDQu/txzB/4oxrq+ lcRv48fNku0VXoVUcxoctyoBCSHINSyhldJ6qeHys3+7N1vJLAWxIoVNCqP0+IxLs6b/ 8wXAnqPQb/W3YFUr5KLI3WCZ4zXhm6mIOVqI809Gy1VcvLy5qJJGTRYy/xxcAHiqTMNe WPlo6k0q70qpgPT6Vdp6nfA9WqDSCk0QZb2kSSkZk7ZscE9QHW8lq7k29e8BhbbbsdSB +pMONIzQ2cVZUsgF5jRY/5KaCehNOTPO6Ik5z89wWpFGGMIkvKTxpTDMYs9ULNO4yK5t /M6A== X-Gm-Message-State: AOUpUlGD4uaDF721MUQJ9mzjGDGFuJq9fih6+1I3ai/xqeF1wsQOdtcB Hm2EtHY/L64bduUcGYCvVOQ4oyZzMWIP3V7tPmn3L5oePJg= X-Received: by 2002:a24:6c8a:: with SMTP id w132-v6mr7280934itb.141.1533317354819; Fri, 03 Aug 2018 10:29:14 -0700 (PDT) MIME-Version: 1.0 References: <20180718224159.18236-1-astrachan@google.com> In-Reply-To: From: Alistair Strachan Date: Fri, 3 Aug 2018 10:29:04 -0700 Message-ID: Subject: Re: [PATCH] x86: vdso: Use $LD instead of $CC to link To: tglx@linutronix.de Cc: linux-kernel@vger.kernel.org, luto@kernel.org, mingo@redhat.com, hpa@zytor.com, Greg Kroah-Hartman , x86@kernel.org, kernel-team@android.com, joel@joelfernandes.com Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Aug 3, 2018 at 3:26 AM Thomas Gleixner wrote: > > On Wed, 18 Jul 2018, Alistair Strachan wrote: > > export CPPFLAGS_vdso.lds += -P -C > > > > -VDSO_LDFLAGS_vdso.lds = -m64 -Wl,-soname=linux-vdso.so.1 \ > > - -Wl,--no-undefined \ > > - -Wl,-z,max-page-size=4096 -Wl,-z,common-page-size=4096 \ > > - $(DISABLE_LTO) > > +VDSO_LDFLAGS_vdso.lds = -m elf_x86_64 -soname linux-vdso.so.1 --no-undefined \ > > + -z max-page-size=4096 -z common-page-size=4096 > > Aside of the fact that it does not apply to upstream, It seems to apply fine to Linus's tree (0585df4), but I'll send a v2 which is rediffed. > why is this dropping > the $(DISABLE_LTO) part? > > The changelog is utterly silent about that. $ git grep DISABLE_LTO arch/sparc/vdso/Makefile:KBUILD_CFLAGS += $(DISABLE_LTO) arch/sparc/vdso/Makefile: $(DISABLE_LTO) arch/x86/entry/vdso/Makefile:KBUILD_CFLAGS += $(DISABLE_LTO) arch/x86/entry/vdso/Makefile: $(DISABLE_LTO) kernel/Makefile:CFLAGS_sys_ni.o = $(DISABLE_LTO) scripts/Makefile.build:cmd_cc_s_c = $(CC) $(c_flags) $(DISABLE_LTO) -fverbose-asm -S -o $@ $< Looks like a dead option to me, but maybe somebody else knows better. v2 will explain this removal. > Thanks, > > tglx