From patchwork Tue Jul 3 23:34:30 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laura Abbott X-Patchwork-Id: 10505597 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 DBDB9602BC for ; Tue, 3 Jul 2018 23:35:10 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CCEC928689 for ; Tue, 3 Jul 2018 23:35:10 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BFA98288BE; Tue, 3 Jul 2018 23:35:10 +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 76E8728689 for ; Tue, 3 Jul 2018 23:35:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752147AbeGCXe6 (ORCPT ); Tue, 3 Jul 2018 19:34:58 -0400 Received: from mail-oi0-f65.google.com ([209.85.218.65]:34191 "EHLO mail-oi0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753548AbeGCXeq (ORCPT ); Tue, 3 Jul 2018 19:34:46 -0400 Received: by mail-oi0-f65.google.com with SMTP id 13-v6so7244507ois.1 for ; Tue, 03 Jul 2018 16:34:46 -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=AghIbnVb/XLoarKJLDeGiy1VGGbkXNPve5XpgZTOSXI=; b=hgS1dqLH0f7CdA9sopXUPOkUJjYmKEhBDlvlRWvxyePLXP1myDvs/JIi1UYJT6RG4y 000MLUbCm9MWAA7+JTCdlrsVEMbJ+U0/3xLqV/p8tkgysZjqIqjphheeJk3e39ZqqJ/D hoP44Hfj+VvruoJKTA2M7ExExBF7ZqW33T87b+fFjGcz1SfAUFvECLM+Y9JKigPfY/SZ Vn0nSelDnBR9k7C9ipj0zSAGN6aNs2gFI4gLhgFWqs6liZgWrYkUScMduHD54cSvHX9c 5eInWOfqxRxDKK08RZNwDzo9KDEZgKg93/YorOH6GlJNpAeGd3RRalwaNl5fBVxXSn8J sO4w== X-Gm-Message-State: APt69E1qUCzXw1MaELjQfGnxivgfz2C3UgrGnvt84CZQOrT9jsr69OkP qKjYwQGeJn8vsZ3n+N1EWreQqA== X-Google-Smtp-Source: AAOMgpe/DVRsI4G0MBpoWKf+FTkH31VwBb+o+JtL8jemOYJrOR2KF8/abLqoWXh3f+R3Q0//YsYi3A== X-Received: by 2002:aca:4d56:: with SMTP id a83-v6mr21592669oib.205.1530660886024; Tue, 03 Jul 2018 16:34:46 -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.43 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 03 Jul 2018 16:34:44 -0700 (PDT) From: Laura Abbott To: mjw@fedoraproject.org, "H . J . Lu" , Masahiro Yamada , Catalin Marinas , Will Deacon 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, Michael Ellerman , linux-arm-kernel@lists.infradead.org Subject: [PATCHv5 4/4] arm64: Add build salt to the vDSO Date: Tue, 3 Jul 2018 16:34:30 -0700 Message-Id: <20180703233430.14416-5-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 Acked-by: Will Deacon --- v5: I was previously focused on x86 only but since powerpc gave a patch, I figured I would do arm64 since the changes were also fairly simple. --- arch/arm64/kernel/vdso/note.S | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm64/kernel/vdso/note.S b/arch/arm64/kernel/vdso/note.S index b82c85e5d972..2c429dfd3f45 100644 --- a/arch/arm64/kernel/vdso/note.S +++ b/arch/arm64/kernel/vdso/note.S @@ -22,7 +22,10 @@ #include #include #include +#include ELFNOTE_START(Linux, 0, "a") .long LINUX_VERSION_CODE ELFNOTE_END + +BUILD_SALT;