Received: by 2002:a05:7412:b130:b0:e2:908c:2ebd with SMTP id az48csp489847rdb; Fri, 17 Nov 2023 04:57:33 -0800 (PST) X-Google-Smtp-Source: AGHT+IGv08NdHzC1NBW7ok5hLRHmbksoYe/wqEZmLQn3Be72I73UU8HC/W7w44ANuG8TEpiCATBV X-Received: by 2002:a05:6808:16a0:b0:3a9:cfb5:462a with SMTP id bb32-20020a05680816a000b003a9cfb5462amr23329419oib.36.1700225853349; Fri, 17 Nov 2023 04:57:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700225853; cv=none; d=google.com; s=arc-20160816; b=UUAeIL56S4dkNPbL598WmnIfukHfFvYLH3qgqXywKrJcxJ9lTOAXUhu6I8zxbJqyPf VdUAe+ym7mzIJ6wBQ8FT1/YXOGGHwF17eVLv3cn4BFYlI6UbbeEg6/SHQx/OfhcCxUXv IK2DHzi2dxB1wqlizC8Id4JNXAPT0FG9GJ0xfDWMywn76hn+nUQRg2iDtOKjSd/NH1H+ HLiQV9ITkCPeLNP/LHCC6uX0cD8YyWn61AfxdtdGAtf9VfSJA29ZgCyKcYzkbRoTQ1rN gNRfruwA9tym5sqAFhdRNkinvcqjdL+gB1p1wVsgoY5Dr2LoEtk2XvBPW8M8nKeBgqAm OruQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=L8yeOBtaUuI+iUkc5t076OxD63exlns/XGKKMK4Pr7o=; fh=S2bdk30/YtlhJSLuGvZRly5/gpgTMm+XBRzr8fmduCg=; b=CJ4iSaWgmqau6OZvW4Z3tzqHp+93agoaMSnu3aZQzF61TdmNV/9J3gR3ew2+sCGKST OuYhQOHXwNdZgsjMpyO4ufeVcJ/br9T7pFSuGkSd3GLk6CJ3StvwKDSrHZavGrM5nLlk JBQpzXKYKhU/UWr1gveYT4zyLcEWLbYwQndHQHLcax29JDhsPohYJj0uncpg43VhyiId WZsVudoyLTdpYGizH7qRDWK905jrNIDIhop8TWhhjuE76J51B58uCZ90HJg7aOcz/4Qv 4ypBjjkYnsPmK6gkRiEO68l+P4ccw7uxqTDu1EI0RUHFBSrhPuH7kKoafN1A81soSPTB /7xQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=SyUUwtGZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id w9-20020a63d749000000b0059b70e69eddsi1851187pgi.300.2023.11.17.04.57.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Nov 2023 04:57:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=SyUUwtGZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id C2ABB8061B78; Fri, 17 Nov 2023 04:56:34 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345851AbjKQM4d (ORCPT + 99 others); Fri, 17 Nov 2023 07:56:33 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54904 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229543AbjKQM4b (ORCPT ); Fri, 17 Nov 2023 07:56:31 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7AFF7D57 for ; Fri, 17 Nov 2023 04:56:28 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 31622C433C8; Fri, 17 Nov 2023 12:56:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1700225788; bh=yco5pbCsXVo4oB/2D289CCmrjEJWr/ntTfP78uZgSQg=; h=From:To:Cc:Subject:Date:From; b=SyUUwtGZuBn4aCSski5/plxAqG2+LmPMq9vD7y1k4dUlLrsJyGo/NWNMEBQxD5DCL EgtiZ1dJSvVWbLuYP2Pyasc3X2OCJ+gCGVfeBP+YDe7N5UgRsJUl74jOiAUfxACFcV AyL8KDVvUp4DGZ0Nj0BVSkTgu/GHu3z5efDTS/DlaFIzWaGfK1olMftzdaXQq/3Etb Iux6pio2DEnkfR7/Tkvke2cAyFbQC0n9x5HfhjuOwBKCcNBaLhg1azu8t99A2bZ7e7 qK4as0pB0uV6ZJbAg0hmRdjfGu9Lt8Z9aKMAhAelAd5tRJTd1diteDfq/QootGHcPa m6HJPrvkAtZWg== From: Masahiro Yamada To: Catalin Marinas , Will Deacon , linux-arm-kernel@lists.infradead.org Cc: linux-kernel@vger.kernel.org, Masahiro Yamada Subject: [PATCH] arm64: vdso32: rename 32-bit debug vdso to vdso32.so.dbg Date: Fri, 17 Nov 2023 21:56:19 +0900 Message-Id: <20231117125620.1058300-1-masahiroy@kernel.org> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Fri, 17 Nov 2023 04:56:34 -0800 (PST) 'make vdso_install' renames arch/arm64/kernel/vdso32/vdso.so.dbg to vdso32.so during installation, which allows 64-bit and 32-bit vdso files to be installed in the same directory. However, arm64 is the only architecture that requires this renaming. To simplify the vdso_install logic, rename the in-tree vdso file so its base name matches the installed file name. Signed-off-by: Masahiro Yamada --- arch/arm64/Makefile | 2 +- arch/arm64/kernel/vdso32/Makefile | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/arch/arm64/Makefile b/arch/arm64/Makefile index 4bd85cc0d32b..4a1ad3248c2d 100644 --- a/arch/arm64/Makefile +++ b/arch/arm64/Makefile @@ -200,7 +200,7 @@ endif endif vdso-install-y += arch/arm64/kernel/vdso/vdso.so.dbg -vdso-install-$(CONFIG_COMPAT_VDSO) += arch/arm64/kernel/vdso32/vdso.so.dbg:vdso32.so +vdso-install-$(CONFIG_COMPAT_VDSO) += arch/arm64/kernel/vdso32/vdso32.so.dbg include $(srctree)/scripts/Makefile.defconf diff --git a/arch/arm64/kernel/vdso32/Makefile b/arch/arm64/kernel/vdso32/Makefile index 1f911a76c5af..2266fcdff78a 100644 --- a/arch/arm64/kernel/vdso32/Makefile +++ b/arch/arm64/kernel/vdso32/Makefile @@ -118,7 +118,7 @@ endif VDSO_CFLAGS_REMOVE_vgettimeofday.o = $(CC_FLAGS_FTRACE) -Os # Build rules -targets := $(c-obj-vdso) $(c-obj-vdso-gettimeofday) $(asm-obj-vdso) vdso.so vdso.so.dbg vdso.so.raw +targets := $(c-obj-vdso) $(c-obj-vdso-gettimeofday) $(asm-obj-vdso) vdso.so vdso32.so.dbg vdso.so.raw c-obj-vdso := $(addprefix $(obj)/, $(c-obj-vdso)) c-obj-vdso-gettimeofday := $(addprefix $(obj)/, $(c-obj-vdso-gettimeofday)) asm-obj-vdso := $(addprefix $(obj)/, $(asm-obj-vdso)) @@ -127,15 +127,15 @@ obj-vdso := $(c-obj-vdso) $(c-obj-vdso-gettimeofday) $(asm-obj-vdso) targets += vdso.lds CPPFLAGS_vdso.lds += -P -C -U$(ARCH) -include/generated/vdso32-offsets.h: $(obj)/vdso.so.dbg FORCE +include/generated/vdso32-offsets.h: $(obj)/vdso32.so.dbg FORCE $(call if_changed,vdsosym) # Strip rule for vdso.so $(obj)/vdso.so: OBJCOPYFLAGS := -S -$(obj)/vdso.so: $(obj)/vdso.so.dbg FORCE +$(obj)/vdso.so: $(obj)/vdso32.so.dbg FORCE $(call if_changed,objcopy) -$(obj)/vdso.so.dbg: $(obj)/vdso.so.raw $(obj)/$(munge) FORCE +$(obj)/vdso32.so.dbg: $(obj)/vdso.so.raw $(obj)/$(munge) FORCE $(call if_changed,vdsomunge) # Link rule for the .so file, .lds has to be first -- 2.40.1