From patchwork Tue Jul 3 23:34:29 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laura Abbott X-Patchwork-Id: 10505599 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 3760160225 for ; Tue, 3 Jul 2018 23:35:13 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 27DFC28689 for ; Tue, 3 Jul 2018 23:35:13 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1BD3F288BE; Tue, 3 Jul 2018 23:35:13 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C6A5728689 for ; Tue, 3 Jul 2018 23:35:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752920AbeGCXfM (ORCPT ); Tue, 3 Jul 2018 19:35:12 -0400 Received: from mail-oi0-f68.google.com ([209.85.218.68]:36510 "EHLO mail-oi0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753526AbeGCXeo (ORCPT ); Tue, 3 Jul 2018 19:34:44 -0400 Received: by mail-oi0-f68.google.com with SMTP id r16-v6so7247065oie.3 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=R6sdQWbWsg6g0dzKkg1jH/WOQG6X1D/JbenwKwoeyDuSIpPH3e5sJA4PqXt0lXReZa I1c178DrcivLpj0pE7GQICYU/jap7z6Q6Tj6p3ERW7qLULmsqpr1BAiXYPEnJrDaxtF9 xYfeu7LpLR7Cel7dJ1LLdJ8etZ0dWhX6G+lIp+r9BNdhDu86S+rDuSsPmjKp5qXZf20w g4uarYkFa8b5FWDABxXZ4Kti5ZeNjCChM6igv3R6cL+b3OgiJIMdXCogSSiBS9a5JVdX 7M7XAIY0sAzc98kCjp262LRT7+hvE/VfSI+k/8/McDTGvf+0q4hWAjBvSxqugOTV/y+V d74Q== X-Gm-Message-State: APt69E3wfviRLmulcGbX5aeGSpUbUXM5HylkAtch9yl69tCm6jE6BDVT vMkN7OV2MKQbuXLAlVJdbfuKsA== X-Google-Smtp-Source: AAOMgpeGovF1gSGWBVcl6onc/Ny175vdvdIRsvAPta8FLoIT8EfqPBYg0NfOKXe7Yd62OrDtsxBCvw== 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-kbuild-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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;