Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp2020337lqp; Tue, 16 Apr 2024 05:21:27 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUg3bXMatXtoEjU4LbCZMV0nquImykDmaqbRcINODtMgMCJqhu7Z/XxSG+j35/MOZTkYY6FVtL74n4cO1rdFQVLYaCvMAUtTASDXQFp6A== X-Google-Smtp-Source: AGHT+IHWumBJdpwHmeBxQtbIOO6IGTB8VRoSFYXMN4eRe8G091Ov110uwNYnSHWZvUEjOneGv7oA X-Received: by 2002:a05:6a20:c916:b0:1a9:c843:6f37 with SMTP id gx22-20020a056a20c91600b001a9c8436f37mr8987104pzb.19.1713270087387; Tue, 16 Apr 2024 05:21:27 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713270087; cv=pass; d=google.com; s=arc-20160816; b=YhZKaJCrs47/cbTo5BQwdaHYKFoRL7W5+UoOkzU55c2j8Vlyi9VE5QqLi1tKYGgsu/ dIht1+ko7hHzSaHzivLI3Ysy46HsF9UHJ2QTCd4GDP+9tE2MoTIA6/r3LE6IMrnudCh/ z0w2MSEnrBN2DrI8/HWVB+O5cnoK5IjhtBfxV2bsYIsShx0ka2JhFUJtPH4eaNL4jQZT N/mjUErjBpGNBbeya+XpUEYQsm/fIJWxRqaCHPhNxQALKrhC2RgVFXimAp8mIkr/HT5m k6R8s6llEebPt2BbJSnx88dHhQ6EhVgbQj6nB1y29Om+aOjpeSPMXUBNZyOgJrUTNqLM 63ng== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=83o0PcAa95pXFBim3g3vqH89oN5rG08XyxdBlkJnk20=; fh=kC2XiMIBxBIOBdfMdq9jedQMPhRSOfcub3dbS0jgqlk=; b=FTjsk06YzdEq/mPkZsUP1BzH/InOnYnHelpIMYOpA+/0s0SPebyyao6O7TII5MXThN DmYYD0s7VRC0p85HKwmZl0TzVrUUhzt+zo/baPUrluLGi25ZwveN5KkTN501Xa3LRU6N HbDcA61exuCnkP+l928JBJWMIb76luo7L5hsFO5SKqv7/wP7CaF3HP6IZFKgMfvHktrW 4sVW/qeAwkusafmR+/SkkDTlykfLnQ/BKnK+pZbU1hkHFp+UuY0/bZjdXCzSQvj9qxFW UPvPIJ1UyzXj2bRRspvAl5C5B5bgiSFeFZ76xl5ZVDDDF4/kTLlUQiAhjRbazEH2/FUo ZXvw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=mTj7ZsJO; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-146776-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-146776-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id a20-20020a056a000c9400b006edc97fdb8dsi9900361pfv.70.2024.04.16.05.21.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Apr 2024 05:21:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-146776-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=mTj7ZsJO; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-146776-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-146776-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 8F98AB21FD0 for ; Tue, 16 Apr 2024 12:20:57 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A2DEF12CDB6; Tue, 16 Apr 2024 12:19:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="mTj7ZsJO" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A535B12AACE; Tue, 16 Apr 2024 12:19:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713269958; cv=none; b=J1ZYbx2fPxsA5lgXfi5bWDqJVWXyRM8n+tTso0xnvcvoQdvSEv3MLe2TnTrfFs+3CraICdFLPJySJgjCdKP8tMLjwC36BTsuXPW//6TSvRVElv1NOsOpvyahnQJpsUm2ly7ig3aIFiVxaeJXtWKo36dBSjePgd08xwY1+8PD9NM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713269958; c=relaxed/simple; bh=t8bWnAi7FsT/9UDpPnUO+HqUO3bSudZygSELTWWnSVg=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=foMO4Zj08USut+5HdPMl16cu7z5AXVlI+v5aIlCB0BS8gTOv1sv6IUJWsRWbY2Ms2/oZ+0f6gssr2Xs8mikEObwri6flNYjBe0dsDsOpQyDu3c0R+JgYskimBcT3XGy8QQVePuj+wlNBZYVQ8o7oTH3MwDz4OaoI07D6eCL0iUw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=mTj7ZsJO; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 17989C3277B; Tue, 16 Apr 2024 12:19:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1713269958; bh=t8bWnAi7FsT/9UDpPnUO+HqUO3bSudZygSELTWWnSVg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=mTj7ZsJOPK/aNvTxil5h1CkC+CBOzSb/5ofAj66vSRNGM8PXuL7/4pw05gPUyxWqo W1nFJBlIslqYI6cqgERnwDtOP9LT1EtGo3FtYV78hdr5I41ymhSMrsK3wXK8plBs6G QbmyM0CvO6+ocw5qJRrG+rdEUluvSqmLsprAbLoWDEKVOn54lwfof1VfD2roYV1wqS tDRf4NiLeeSFmXvW2cNCeUTTuYiqvGbe9RbsM7UPOQHfF/dK4hoT5WtJe5uNGOpTYD zxF+dmOKRufr3VUUR/yy1x5TsN74YzeZtsi2IcMWxF6VB9SGA1X2qM3NRSty7RBq4V rOJcIcsHkc5pw== From: Masahiro Yamada To: linux-kbuild@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Masahiro Yamada , Helge Deller Subject: [PATCH 1/4] arch: use $(obj)/ instead of $(src)/ for preprocessed linker scripts Date: Tue, 16 Apr 2024 21:18:35 +0900 Message-Id: <20240416121838.95427-2-masahiroy@kernel.org> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20240416121838.95427-1-masahiroy@kernel.org> References: <20240416121838.95427-1-masahiroy@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit These are generated files. Prefix them with $(obj)/ instead of $(src)/. Signed-off-by: Masahiro Yamada Acked-by: Helge Deller --- arch/arm64/kernel/vdso32/Makefile | 2 +- arch/csky/kernel/vdso/Makefile | 2 +- arch/parisc/kernel/vdso32/Makefile | 2 +- arch/parisc/kernel/vdso64/Makefile | 2 +- arch/powerpc/kernel/vdso/Makefile | 4 ++-- arch/s390/kernel/vdso32/Makefile | 2 +- arch/s390/kernel/vdso64/Makefile | 2 +- arch/sh/kernel/vsyscall/Makefile | 4 ++-- 8 files changed, 10 insertions(+), 10 deletions(-) diff --git a/arch/arm64/kernel/vdso32/Makefile b/arch/arm64/kernel/vdso32/Makefile index f5f80fdce0fe..cc4508c604b2 100644 --- a/arch/arm64/kernel/vdso32/Makefile +++ b/arch/arm64/kernel/vdso32/Makefile @@ -136,7 +136,7 @@ $(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 -$(obj)/vdso.so.raw: $(src)/vdso.lds $(obj-vdso) FORCE +$(obj)/vdso.so.raw: $(obj)/vdso.lds $(obj-vdso) FORCE $(call if_changed,vdsold_and_vdso_check) # Compilation rules for the vDSO sources diff --git a/arch/csky/kernel/vdso/Makefile b/arch/csky/kernel/vdso/Makefile index ddf784a62c11..24a01c22293e 100644 --- a/arch/csky/kernel/vdso/Makefile +++ b/arch/csky/kernel/vdso/Makefile @@ -31,7 +31,7 @@ KCOV_INSTRUMENT := n $(obj)/vdso.o: $(obj)/vdso.so SYSCFLAGS_vdso.so.dbg = $(c_flags) -$(obj)/vdso.so.dbg: $(src)/vdso.lds $(obj-vdso) FORCE +$(obj)/vdso.so.dbg: $(obj)/vdso.lds $(obj-vdso) FORCE $(call if_changed,vdsold) SYSCFLAGS_vdso.so.dbg = -shared -s -Wl,-soname=linux-vdso.so.1 \ -Wl,--build-id=sha1 -Wl,--hash-style=both diff --git a/arch/parisc/kernel/vdso32/Makefile b/arch/parisc/kernel/vdso32/Makefile index e45d46bf46a2..60dc708a0f80 100644 --- a/arch/parisc/kernel/vdso32/Makefile +++ b/arch/parisc/kernel/vdso32/Makefile @@ -26,7 +26,7 @@ $(obj)/vdso32_wrapper.o : $(obj)/vdso32.so FORCE # Force dependency (incbin is bad) # link rule for the .so file, .lds has to be first -$(obj)/vdso32.so: $(src)/vdso32.lds $(obj-vdso32) $(VDSO_LIBGCC) FORCE +$(obj)/vdso32.so: $(obj)/vdso32.lds $(obj-vdso32) $(VDSO_LIBGCC) FORCE $(call if_changed,vdso32ld) # assembly rules for the .S files diff --git a/arch/parisc/kernel/vdso64/Makefile b/arch/parisc/kernel/vdso64/Makefile index f3d6045793f4..0982f3099ae2 100644 --- a/arch/parisc/kernel/vdso64/Makefile +++ b/arch/parisc/kernel/vdso64/Makefile @@ -26,7 +26,7 @@ $(obj)/vdso64_wrapper.o : $(obj)/vdso64.so FORCE # Force dependency (incbin is bad) # link rule for the .so file, .lds has to be first -$(obj)/vdso64.so: $(src)/vdso64.lds $(obj-vdso64) $(VDSO_LIBGCC) FORCE +$(obj)/vdso64.so: $(obj)/vdso64.lds $(obj-vdso64) $(VDSO_LIBGCC) FORCE $(call if_changed,vdso64ld) # assembly rules for the .S files diff --git a/arch/powerpc/kernel/vdso/Makefile b/arch/powerpc/kernel/vdso/Makefile index 1b93655c2857..a14eab366993 100644 --- a/arch/powerpc/kernel/vdso/Makefile +++ b/arch/powerpc/kernel/vdso/Makefile @@ -74,9 +74,9 @@ targets += vdso64.lds CPPFLAGS_vdso64.lds += -P -C # link rule for the .so file, .lds has to be first -$(obj)/vdso32.so.dbg: $(src)/vdso32.lds $(obj-vdso32) $(obj)/vgettimeofday-32.o FORCE +$(obj)/vdso32.so.dbg: $(obj)/vdso32.lds $(obj-vdso32) $(obj)/vgettimeofday-32.o FORCE $(call if_changed,vdso32ld_and_check) -$(obj)/vdso64.so.dbg: $(src)/vdso64.lds $(obj-vdso64) $(obj)/vgettimeofday-64.o FORCE +$(obj)/vdso64.so.dbg: $(obj)/vdso64.lds $(obj-vdso64) $(obj)/vgettimeofday-64.o FORCE $(call if_changed,vdso64ld_and_check) # assembly rules for the .S files diff --git a/arch/s390/kernel/vdso32/Makefile b/arch/s390/kernel/vdso32/Makefile index b12a274cbb47..70e9949c2612 100644 --- a/arch/s390/kernel/vdso32/Makefile +++ b/arch/s390/kernel/vdso32/Makefile @@ -44,7 +44,7 @@ $(obj)/vdso32_wrapper.o : $(obj)/vdso32.so quiet_cmd_vdso_and_check = VDSO $@ cmd_vdso_and_check = $(cmd_ld); $(cmd_vdso_check) -$(obj)/vdso32.so.dbg: $(src)/vdso32.lds $(obj-vdso32) FORCE +$(obj)/vdso32.so.dbg: $(obj)/vdso32.lds $(obj-vdso32) FORCE $(call if_changed,vdso_and_check) # strip rule for the .so file diff --git a/arch/s390/kernel/vdso64/Makefile b/arch/s390/kernel/vdso64/Makefile index ef9832726097..2b3617b6d162 100644 --- a/arch/s390/kernel/vdso64/Makefile +++ b/arch/s390/kernel/vdso64/Makefile @@ -50,7 +50,7 @@ quiet_cmd_vdso_and_check = VDSO $@ cmd_vdso_and_check = $(cmd_ld); $(cmd_vdso_check) # link rule for the .so file, .lds has to be first -$(obj)/vdso64.so.dbg: $(src)/vdso64.lds $(obj-vdso64) $(obj-cvdso64) FORCE +$(obj)/vdso64.so.dbg: $(obj)/vdso64.lds $(obj-vdso64) $(obj-cvdso64) FORCE $(call if_changed,vdso_and_check) # strip rule for the .so file diff --git a/arch/sh/kernel/vsyscall/Makefile b/arch/sh/kernel/vsyscall/Makefile index 118744d349e2..cb4f0bb80c38 100644 --- a/arch/sh/kernel/vsyscall/Makefile +++ b/arch/sh/kernel/vsyscall/Makefile @@ -19,14 +19,14 @@ vsyscall-flags = -shared -s -Wl,-soname=linux-gate.so.1 -Wl,--hash-style=sysv SYSCFLAGS_vsyscall-trapa.so = $(vsyscall-flags) $(obj)/vsyscall-trapa.so: \ -$(obj)/vsyscall-%.so: $(src)/vsyscall.lds $(obj)/vsyscall-%.o FORCE +$(obj)/vsyscall-%.so: $(obj)/vsyscall.lds $(obj)/vsyscall-%.o FORCE $(call if_changed,syscall) # We also create a special relocatable object that should mirror the symbol # table and layout of the linked DSO. With ld -R we can then refer to # these symbols in the kernel code rather than hand-coded addresses. SYSCFLAGS_vsyscall-dummy.o = -r -$(obj)/vsyscall-dummy.o: $(src)/vsyscall.lds \ +$(obj)/vsyscall-dummy.o: $(obj)/vsyscall.lds \ $(obj)/vsyscall-trapa.o $(obj)/vsyscall-note.o FORCE $(call if_changed,syscall) -- 2.40.1