Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp179323imm; Tue, 3 Jul 2018 16:35:59 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIlQHSWh6DZzMgPWBiI4MTao9TEHwT2CZU2c6etw0dRXzriOLj6i/ZYzYlHd1D9PtUJo1aZ X-Received: by 2002:a17:902:8206:: with SMTP id x6-v6mr31364711pln.220.1530660959343; Tue, 03 Jul 2018 16:35:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530660959; cv=none; d=google.com; s=arc-20160816; b=itxcmYzl+5fkrJv82By8yqZuJ6JLBS0xXA275XzYDiG7t4sErCw/B9cqYGbSBVS++B GUddX3G01zA/NG2WvR6aQP97titOThYmmrU+wu/hfTCdod3m8hd8vVIerZfnyPEqdSdq OqxWrDFoLQ/ADijk6nDyWPe5YVkRdJjq++uHbaKjWEBDvK+N7ttdweur33M6LUenIfC4 CveMuWE6gBZoqAjk3NoDcDfbgngvnNt2czjCVFHHqa3tru2q8B6vVFJt0qyE9Vy9waFQ 5Miz4Mn7LDaQx41o9A5okcTxL4P6jFLE2M6EHvY563I+TJj3HdHxOUODw3s58pf6JdRe TszQ== 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=etAvmKHM8E9YR7JAbwmTeTq4fxcpjVM907hKynRt4kQ=; b=N0tdD034cgf1PHJuXK/4RepuUNienXwiK+J2P3hmGu2DegPk6RWFY6xDCckHbPeM5t QMCIiN84hrdrghVa1xTaND6JqsBLRLMgNkZtNxcbvOKDcm23aNMlLx0X/WdOWohSIjfk 34up9rJcYeMvwoKaYw+s97xH7IsmpIJmnhffVr5EVB2zuSDC40pH6FxuPUF/WD7WFXJe 6p9NTNOcSOIlwD5UimhG8K9mCDPdxWf1QjDu/WZZlrbKLfky+6H7vwBLkSYLg30gXMd8 9r6ASpbyTyuSLZd5Lh+LHr/5BMOS7l/UI09ugcinL0BSkgHUifA+m5k0MWcT8KDecWpz agIQ== 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 bc4-v6si1995099plb.254.2018.07.03.16.35.45; Tue, 03 Jul 2018 16:35:59 -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 S1752938AbeGCXer (ORCPT + 99 others); Tue, 3 Jul 2018 19:34:47 -0400 Received: from mail-oi0-f66.google.com ([209.85.218.66]:39681 "EHLO mail-oi0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753525AbeGCXeo (ORCPT ); Tue, 3 Jul 2018 19:34:44 -0400 Received: by mail-oi0-f66.google.com with SMTP id d189-v6so7225461oib.6 for ; Tue, 03 Jul 2018 16:34:43 -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=etAvmKHM8E9YR7JAbwmTeTq4fxcpjVM907hKynRt4kQ=; b=cl+LL2vEj97M/0DuZSaFYXj4/E4rHv2zFy4dIUhxiRx25lsV9FRvlyf0uYIv0C45m8 Ci8eahHl9B8yGSiZmLeiGIMQ9bnyfdWebEo2lPEBRmerM/u+DYLlxrNkYzUAAtOF/ygu IYXL9xdG+H1N00BLtcJ+XUwCbEkon1mTdUad3O4YyLA3DPSm30ywCkFHUJ820GRjQHfm UCESUVVKzlGYG29u9p+cd0r+sTyLtqJggcfYqgsYeXmTu2NG1Urvw2bO4mfMcKWl9lC4 C5Nl2lXdoOhRAOXXP/cG8EkmqAsBXFuNY7pdabRholLS0yOqH8aWJmtFwy1eHJ/tRFye vdeg== X-Gm-Message-State: APt69E3ZH94b3pyZF733HUYz8UgGMxssjytnnVQd/4JY+Oox39cmHQnE vc/83TBBAx3W1PY7N/ZQMgu+fw== X-Received: by 2002:aca:dec6:: with SMTP id v189-v6mr1740252oig.98.1530660883424; Tue, 03 Jul 2018 16:34:43 -0700 (PDT) Received: from labbott-redhat.redhat.com ([2601:602:9802:a8dc::f0c1]) by smtp.gmail.com with ESMTPSA id h22-v6sm1828702otc.25.2018.07.03.16.34.40 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 03 Jul 2018 16:34:42 -0700 (PDT) From: Laura Abbott To: mjw@fedoraproject.org, "H . J . Lu" , Masahiro Yamada , Michael Ellerman Cc: Laura Abbott , Andy Lutomirski , Linus Torvalds , X86 ML , linux-kernel@vger.kernel.org, Nick Clifton , Cary Coutant , linux-kbuild@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, Catalin Marinas , Will Deacon , linux-arm-kernel@lists.infradead.org Subject: [PATCHv5 3/4] powerpc: Add build salt to the vDSO Date: Tue, 3 Jul 2018 16:34:29 -0700 Message-Id: <20180703233430.14416-4-labbott@redhat.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180703233430.14416-1-labbott@redhat.com> References: <20180703233430.14416-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 needs to have a unique build id in a similar manner to the kernel and modules. Use the build salt macro. Signed-off-by: Laura Abbott --- v5: New approach with the BUILD_SALT macro --- arch/powerpc/kernel/vdso32/note.S | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/powerpc/kernel/vdso32/note.S b/arch/powerpc/kernel/vdso32/note.S index d4b5be4f3d5f..ec1d05265c75 100644 --- a/arch/powerpc/kernel/vdso32/note.S +++ b/arch/powerpc/kernel/vdso32/note.S @@ -5,6 +5,7 @@ #include #include +#include #define ASM_ELF_NOTE_BEGIN(name, flags, vendor, type) \ .section name, flags; \ @@ -23,3 +24,5 @@ ASM_ELF_NOTE_BEGIN(".note.kernel-version", "a", UTS_SYSNAME, 0) .long LINUX_VERSION_CODE ASM_ELF_NOTE_END + +BUILD_SALT; -- 2.17.1