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: 10505593 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 E2F2360225 for ; Tue, 3 Jul 2018 23:34:55 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D283C28689 for ; Tue, 3 Jul 2018 23:34:55 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C6908288BE; Tue, 3 Jul 2018 23:34:55 +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=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id C8AE028689 for ; Tue, 3 Jul 2018 23:34:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=BBg2CNxZDXDJAKeRgxngapHBln8S0WFG3jJDQhsNaqU=; b=f0lQvTTtHlSMdih0kEFSXeEGim 3V27FFOH1Ki1h68p2cb1MP0J+OaLbVW96peOG8ZhBg2rPHGG4Jcx2SS8rzC9Yv0qg5xb3FUA1l/G8 jDUfoqN/H4pM6z8jTrxdyID13OpPKrzdNxkxS/c9RuQjBuo7/fduR+bf7rRkAIRJFmHFR4dw9TH+V UMUK7VAeZ6Cp8lN8oBV6esqMAEKwTYY0aogLOP/f5o8CzEu/Ia5JcWE1ZnLwHHvJu/HMnO6+4ILmf elIXjZAxhAC8tgSZTeAO75sKvF6i+7NUL7DfvO0sIEIMqaFchTrgLtvqZc/imvPI1ZYO5b9ms2cRI 9lF55nrg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1faUor-0002FN-1b; Tue, 03 Jul 2018 23:34:49 +0000 Received: from mail-oi0-f68.google.com ([209.85.218.68]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1faUon-0002ES-W8 for linux-arm-kernel@lists.infradead.org; Tue, 03 Jul 2018 23:34:47 +0000 Received: by mail-oi0-f68.google.com with SMTP id y207-v6so7210514oie.13 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=R9TUbHzFgXI8XTNE8n6M04XxAShsAg5p/NA141p6mPRw7ZwFLH1GSqHxcby+9DNPBR c6L3omfx9y9J+pXVaAcZTfxpm6NZrE9VKs002GuclnsjFz0cnDpyeFKlOm5r2/sTFcaL TfMW/agHyO+5irq5gHxim+sufg2ajip/lSi3vcWTX1AnHaG93aP6xrnSeyIpHqH8Ircu 7LRREkGON286Loc2mUBEfk/HMQcMoHYQC/9ArGg4wQkSeCMvAzXjHR5VMA5wa1Yry9Cw YFqnHZE5trtCC9Dm77rePfePW8Uar6RFqdsj89GUajLXBkyMn+xXXfHKSHEvbfPVX1XB lbQA== X-Gm-Message-State: APt69E0dScyiUuw1egybGhMBKZFL0YNsci5BMkPz+2do3U7PmzmD40G0 hejAJ3Q7UIzNpiRijcOSdaC1mw== 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 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> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180703_163446_057804_53A98AEC X-CRM114-Status: GOOD ( 11.81 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Nick Clifton , linux-kbuild@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, X86 ML , Will Deacon , linux-kernel@vger.kernel.org, Andy Lutomirski , Catalin Marinas , Cary Coutant , Laura Abbott , Linus Torvalds , linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.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;