Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp215861imm; Tue, 22 May 2018 17:20:37 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpEB6vLGDaNuJCNPYJ6miGrQzh5GMCgRcGleR1sHnd7eN/uWqoNjLzlflEg7bs+lswhQUeY X-Received: by 2002:a63:3f45:: with SMTP id m66-v6mr509263pga.340.1527034837257; Tue, 22 May 2018 17:20:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527034837; cv=none; d=google.com; s=arc-20160816; b=kQOp+aOU7N1bHf8yaBsEUWcDpzp87n/RSb1pvH1L6QhbGOJ56SNRGsnvDvL+UR1GNf ySpHlTdkerNYVVlX5+MS2SERBnrSlFnQormd4SpYsUQ2Id5c4/R1tduCD5RRtDE1y0Vd 9I0sHlITkkEBSX9ZlTB8kaOUAqCMc6V45dEg7b6OZv46yE1we/8OclT+qeXHCuF+l9Dz s9pBhcFfpkPK+2AFaOTkuRzyyQEhhogdKft4dhj2MBJwc2453Pa9eNH9KK8VozTIakKe aN6UgN2rBwVJ765/aMrC2bYpSQ7reESgnZiLlqZOlSDv1jZn7Rxbb4hI2ILTtWWPPY45 KNJA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=Y5f7r9Hpjmjb+DW22BfiZWFvyYog5w7bGmA8kDrysCk=; b=E5PLI5v27kN8uyRulAhCqwNO3e2D62d/mhFH09/GuXY3P423U6SmgarBpjvhNBKT/A 0LFfA8O83nPlU7S7eJ2OlLddUk/lgYA1vccaNMw0fB9/vuQtSu56e69PSZ12EIUm1n1B ZhS591MNN5OTmG3ab4u8AOgbj6r1g3g5KVS9EjwfQI0Hx3RSZBp+UgyOqxrk5rCJVxac HI60k7APL4vslCQviaro78nPapE8EsgGQwHdTH/4lKPPZesbg4CWR+mN5IWPhrvh+vZv 9M1JyNCzO8TJyruQGd7UND8uUM2IAz9KSPRShqbz3o+Pkotn+myEdmdkUTl0vdQIsewe su1w== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a3-v6si16817591pff.43.2018.05.22.17.20.22; Tue, 22 May 2018 17:20:37 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753644AbeEWAUC (ORCPT + 99 others); Tue, 22 May 2018 20:20:02 -0400 Received: from mail-pl0-f65.google.com ([209.85.160.65]:44625 "EHLO mail-pl0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753571AbeEWATv (ORCPT ); Tue, 22 May 2018 20:19:51 -0400 Received: by mail-pl0-f65.google.com with SMTP id m24-v6so490423pls.11 for ; Tue, 22 May 2018 17:19:51 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=Y5f7r9Hpjmjb+DW22BfiZWFvyYog5w7bGmA8kDrysCk=; b=mvVrTKI0glFaddmeSpDOzWxIVkZk/zuOVdhsnS/A/1CVrVXPCRsGIPIyuRTgNtnIWc lOsftvH/w56jbI8lr5+C9opP4n1i7VKahpy/lFrx1uIobt2WWpwQrIHyGqVzu7B2xDjo X4oGdYDZiHlQpoiM8aO9WTykLi9uiXFdiVB2pWror5d+8Qy4hPyhmwLs0azTO7YBIlW5 dFdfmVSB0P3B470z/FCkuU1PDJSFRQ2o1ZGk5+0XWEgfxuigHO/oZHKcA0igSqm24a/H D8mK/lxUIySw1m0oZDsq8K7WO3IeYLzQ93Kj6qhhgFdi1Ld4gRgxG4VppFNADC+I1UEh fh6w== X-Gm-Message-State: ALKqPwcU7k2OBhZqD9Sb6KV4VcQ17v9YURu2T3hLWcPENiHPsvfuAteM O8DMKoQekf4Vs+8ykJHWct7yXw== X-Received: by 2002:a17:902:781:: with SMTP id 1-v6mr634646plj.150.1527034791344; Tue, 22 May 2018 17:19:51 -0700 (PDT) Received: from localhost.net ([2601:602:9802:a8dc::4dc5]) by smtp.gmail.com with ESMTPSA id 206-v6sm29303145pfy.51.2018.05.22.17.19.48 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 22 May 2018 17:19:50 -0700 (PDT) From: Laura Abbott To: Andy Lutomirski , mjw@fedoraproject.org, "H . J . Lu" , Masahiro Yamada Cc: Laura Abbott , Linus Torvalds , X86 ML , linux-kernel@vger.kernel.org, Nick Clifton , Cary Coutant , linux-kbuild@vger.kernel.org Subject: [PATCHv3 2/2] x86/vdso: Add build salt to the vDSO Date: Tue, 22 May 2018 17:19:39 -0700 Message-Id: <20180523001939.9431-3-labbott@redhat.com> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180523001939.9431-1-labbott@redhat.com> References: <20180523001939.9431-1-labbott@redhat.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The vDSO is linked separately from the kernel and modules. Ensure it picks up the comment section, if available. Signed-off-by: Laura Abbott --- v3: Invoke the generated linker script. The ".." nightmare is pretty ugly but I didn't see an easier way to pick up the generated file. That was actually part of my motivation for using an #include since paths for those are standardized. --- arch/x86/entry/vdso/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/x86/entry/vdso/Makefile b/arch/x86/entry/vdso/Makefile index d998a487c9b1..f54aa97dc9f0 100644 --- a/arch/x86/entry/vdso/Makefile +++ b/arch/x86/entry/vdso/Makefile @@ -162,7 +162,9 @@ $(obj)/vdso32.so.dbg: FORCE \ quiet_cmd_vdso = VDSO $@ cmd_vdso = $(CC) -nostdlib -o $@ \ $(VDSO_LDFLAGS) $(VDSO_LDFLAGS_$(filter %.lds,$(^F))) \ - -Wl,-T,$(filter %.lds,$^) $(filter %.o,$^) && \ + -Wl,-T,$(filter %.lds,$^) \ + -Wl,-T$(obj)/../../../../scripts/build-salt.lds \ + $(filter %.o,$^) && \ sh $(srctree)/$(src)/checkundef.sh '$(NM)' '$@' VDSO_LDFLAGS = -fPIC -shared $(call cc-ldoption, -Wl$(comma)--hash-style=both) \ -- 2.17.0