From nobody Sun Feb 8 20:59:15 2026 Received: from xry111.site (xry111.site [89.208.246.23]) (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 6C3B8261392; Mon, 24 Feb 2025 11:21:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=89.208.246.23 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740396071; cv=none; b=Xn8BDVNrFW6Ic7KrcdQdwiYzvZyqNbFHzoS8hrSzxPUl2l4ssWEATLnw3Lna9fu2RUtqd5RNJEGJzwfoHJB6mHcIGCuLgfsu6P55tDOs7g1MyY25vKnYT5TOLOQIs5n3nDDJmq6VCyqNFpmFbhjCD4kg9SzXtFQEUUBZKV4jWXg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740396071; c=relaxed/simple; bh=17AhFnNHpt0G9klcgmVrv/F5ASOOetBZnSvC/7J2698=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=BcwzXYAMZ6m5mREj98GpiLCvNxwLytCMZG5lfBEleqswKDF9U5llRrOzWXO4rVyNadIuNT9LZ+eRUUrqAyyeni2Y97AMiJjMF5UWbKuJpUbn0/0WRXMcgLvYe6ZEx76YK4h7t9jLS/uNG4VFzpRYf8dp7oAikrBYAZ45YrarZgI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=xry111.site; spf=pass smtp.mailfrom=xry111.site; dkim=pass (1024-bit key) header.d=xry111.site header.i=@xry111.site header.b=D1xeJqD1; arc=none smtp.client-ip=89.208.246.23 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=xry111.site Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=xry111.site Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=xry111.site header.i=@xry111.site header.b="D1xeJqD1" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xry111.site; s=default; t=1740396062; bh=9N5UbYwwS3cj4ISBSwf0j1nK6obW0UxDyUzHGsn7IM0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=D1xeJqD1EyhCPVOKwyq6EZS92UTpksyChGpHsp0/kMrNZ/qiBm9uYbSBNgFkV18W8 I4Mn+BG1Nnbb0PDA+3SQryW3Q6ibwr1eEF4B4ZMDldpQleHkN7ADemC/803GF2n3e3 yozfHj9ZvBFx81aO8ITspHS7YqkUn4w7PXg5zVe0= Received: from stargazer.. (unknown [IPv6:240e:358:1110:6100:dc73:854d:832e:7]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (Client did not present a certificate) (Authenticated sender: xry111@xry111.site) by xry111.site (Postfix) with ESMTPSA id D8D9F1A40F0; Mon, 24 Feb 2025 06:20:55 -0500 (EST) From: Xi Ruoyao To: Guo Ren , Huacai Chen , WANG Xuerui , Palmer Dabbelt , Fangrui Song Cc: Tiezhu Yang , linux-csky@vger.kernel.org, loongarch@lists.linux.dev, linux-riscv@lists.infradead.org, linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org, Xi Ruoyao Subject: [PATCH 1/3] riscv: vDSO: Remove --hash-style=both Date: Mon, 24 Feb 2025 19:20:40 +0800 Message-ID: <20250224112042.60282-2-xry111@xry111.site> X-Mailer: git-send-email 2.48.1 In-Reply-To: <20250224112042.60282-1-xry111@xry111.site> References: <20250224112042.60282-1-xry111@xry111.site> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" When RISC-V borned, DT_GNU_HASH had already became the de-facto standard so DT_HASH is just wasting storage space. Remove the explicit --hash-style=3Dboth setting and rely on the distro toolchain default, which is most likely "gnu" (i.e. generating only DT_GNU_HASH, no DT_HASH). Following the logic of commit 48f6430505c0 ("arm64/vdso: Remove --hash-style=3Dsysv"). Signed-off-by: Xi Ruoyao --- arch/riscv/kernel/vdso/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/riscv/kernel/vdso/Makefile b/arch/riscv/kernel/vdso/Makef= ile index 9a1b555e8733..ecee348af9ce 100644 --- a/arch/riscv/kernel/vdso/Makefile +++ b/arch/riscv/kernel/vdso/Makefile @@ -47,7 +47,7 @@ $(obj)/vdso.o: $(obj)/vdso.so $(obj)/vdso.so.dbg: $(obj)/vdso.lds $(obj-vdso) FORCE $(call if_changed,vdsold_and_check) LDFLAGS_vdso.so.dbg =3D -shared -soname=3Dlinux-vdso.so.1 \ - --build-id=3Dsha1 --hash-style=3Dboth --eh-frame-hdr + --build-id=3Dsha1 --eh-frame-hdr =20 # strip rule for the .so file $(obj)/%.so: OBJCOPYFLAGS :=3D -S --=20 2.48.1 From nobody Sun Feb 8 20:59:15 2026 Received: from xry111.site (xry111.site [89.208.246.23]) (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 D81C5248865; Mon, 24 Feb 2025 11:21:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=89.208.246.23 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740396070; cv=none; b=ofRBz1EqG7ZgBwNG/eVQYzjIeU6JNaWBionce1vOslW+tQb7IH1Vy00ig21dq6DGxWs0ejrKVtXxP64tH6B2vZPIYjKjqocgZqml6Wtq4PZfdwzK3EjLqx1MBYH4+0OXh7DufVVRbjp2ZyCeNz2yxn7x9HypS5ETqS9Xs0RaWGI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740396070; c=relaxed/simple; bh=dL/5zoNdo+kDSHCjoHpsZarNox6ujoBo+G/m5ncxaWg=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=pQVR/lsCBzOMshuNobs1mquzDzreRkh3g38rSvOTIobNVGCQIwWIxWGr4kesxBbQa44DOUYjNTZtNGPv7zw28zbC+UVIfOS4wjg+VEr4eY+qtAj6d0LPH1wQe2OEOndWVMp8AO4Fm4jnBj4Z0CWjXCo0FWFIH/ZE7Vxgh5fasrA= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=xry111.site; spf=pass smtp.mailfrom=xry111.site; dkim=pass (1024-bit key) header.d=xry111.site header.i=@xry111.site header.b=Gd4ZDedF; arc=none smtp.client-ip=89.208.246.23 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=xry111.site Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=xry111.site Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=xry111.site header.i=@xry111.site header.b="Gd4ZDedF" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xry111.site; s=default; t=1740396068; bh=uK0G5z1dgyQ1LGyKW373cRDB/WnmXJQCfB7OmH+z2fk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Gd4ZDedFN9+OzY9eGivWQTBRtB7LyVCXYFYIj2XuMmq5EdMAULRbgKhFeJFaBID9b oBanxXh8CBUeMzpAT+AlLNpFn99zk9GzOtaO1H3bLQzGhHyjeIp6fO1lnxKukVme2s b2beNCO8IiKLuLat0jC72Osz8qutKDtvGYaT6eWA= Received: from stargazer.. (unknown [IPv6:240e:358:1110:6100:dc73:854d:832e:7]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (Client did not present a certificate) (Authenticated sender: xry111@xry111.site) by xry111.site (Postfix) with ESMTPSA id 131341A40F1; Mon, 24 Feb 2025 06:21:02 -0500 (EST) From: Xi Ruoyao To: Guo Ren , Huacai Chen , WANG Xuerui , Palmer Dabbelt , Fangrui Song Cc: Tiezhu Yang , linux-csky@vger.kernel.org, loongarch@lists.linux.dev, linux-riscv@lists.infradead.org, linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org, Xi Ruoyao Subject: [PATCH 2/3] csky: vDSO: Remove --hash-style=both Date: Mon, 24 Feb 2025 19:20:41 +0800 Message-ID: <20250224112042.60282-3-xry111@xry111.site> X-Mailer: git-send-email 2.48.1 In-Reply-To: <20250224112042.60282-1-xry111@xry111.site> References: <20250224112042.60282-1-xry111@xry111.site> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" When CSKY borned, DT_GNU_HASH had already became the de-facto standard so DT_HASH is just wasting storage space. Remove the explicit --hash-style=3Dboth setting and rely on the distro toolchain default, which is most likely "gnu" (i.e. generating only DT_GNU_HASH, no DT_HASH). Following the logic of commit 48f6430505c0 ("arm64/vdso: Remove --hash-style=3Dsysv"). Signed-off-by: Xi Ruoyao --- arch/csky/kernel/vdso/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/csky/kernel/vdso/Makefile b/arch/csky/kernel/vdso/Makefile index 069ef0b17fe5..3e100e6cf72f 100644 --- a/arch/csky/kernel/vdso/Makefile +++ b/arch/csky/kernel/vdso/Makefile @@ -29,7 +29,7 @@ SYSCFLAGS_vdso.so.dbg =3D $(c_flags) $(obj)/vdso.so.dbg: $(obj)/vdso.lds $(obj-vdso) FORCE $(call if_changed,vdsold) SYSCFLAGS_vdso.so.dbg =3D -shared -s -Wl,-soname=3Dlinux-vdso.so.1 \ - -Wl,--build-id=3Dsha1 -Wl,--hash-style=3Dboth + -Wl,--build-id=3Dsha1 =20 $(obj)/vdso-syms.S: $(obj)/vdso.so FORCE $(call if_changed,so2s) --=20 2.48.1 From nobody Sun Feb 8 20:59:15 2026 Received: from xry111.site (xry111.site [89.208.246.23]) (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 EF4D523BD11; Mon, 24 Feb 2025 11:21:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=89.208.246.23 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740396076; cv=none; b=GnRg66eWWrsBe2eB2WnwjxK7rkfn74Ui+WAghPPqkyxS5S5jlULr4/sjdADIrrCrEYcugJMW35YZ23bX/bEO39ed7LEgD9k5ckCPlE5O3MZ9jrTYsj80VPS/vO8f/1PPw0B+uWLz/fmZ18bbh+FMQt95jkZvmWulLbFe89C5OTU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740396076; c=relaxed/simple; bh=UR/V5CaH1smA/Ep6TuqVVJoHIRliBWAMQqudackZJOo=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=ePi6u8F0r58Y/JwaSEtRVCIT2MIDIq/y+/NscSKbyaCjhbcOMyReXe+UfepyIy//RJ9aoLZYaR8qcEQ/VL1F755sZE/72jbABhnqyefp0EvA7erBCQHnVkpe536rWsRjsSHqHqY2Fddfc0etfoQCDXyIV9jAxGI9IDjZGtwQMIQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=xry111.site; spf=pass smtp.mailfrom=xry111.site; dkim=pass (1024-bit key) header.d=xry111.site header.i=@xry111.site header.b=k3VDnIYo; arc=none smtp.client-ip=89.208.246.23 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=xry111.site Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=xry111.site Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=xry111.site header.i=@xry111.site header.b="k3VDnIYo" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xry111.site; s=default; t=1740396074; bh=x+JZ0bZh6o31FzL/bWs2L2enB0qu5OHjl9gf7Goj11o=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=k3VDnIYouVr0xuGpeuELmGYMzdWobg9FRDuC7C9Ezp9heZVLghfX8FkRtu2F7dDHT Kkkq7HbrnLxWRaK/eMZiQsJyjeG6FRUei2AEg/LnV7gQrdulTn+JnyRv/tFHXSOAk8 Dl81KF6d1PcEAr5VfpGYtWbDbzhEzWuGwV+nG0ho= Received: from stargazer.. (unknown [IPv6:240e:358:1110:6100:dc73:854d:832e:7]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (Client did not present a certificate) (Authenticated sender: xry111@xry111.site) by xry111.site (Postfix) with ESMTPSA id 44E931A40EF; Mon, 24 Feb 2025 06:21:08 -0500 (EST) From: Xi Ruoyao To: Guo Ren , Huacai Chen , WANG Xuerui , Palmer Dabbelt , Fangrui Song Cc: Tiezhu Yang , linux-csky@vger.kernel.org, loongarch@lists.linux.dev, linux-riscv@lists.infradead.org, linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org, Xi Ruoyao Subject: [PATCH 3/3] LoongArch: vDSO: Remove --hash-style=sysv Date: Mon, 24 Feb 2025 19:20:42 +0800 Message-ID: <20250224112042.60282-4-xry111@xry111.site> X-Mailer: git-send-email 2.48.1 In-Reply-To: <20250224112042.60282-1-xry111@xry111.site> References: <20250224112042.60282-1-xry111@xry111.site> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" glibc added support for .gnu.hash in 2006 and .hash has been obsoleted far before the first LoongArch CPU was taped. Using --hash-style=3Dsysv might imply unaddressed issues and confuse readers. Some architectures use an explicit --hash-style=3Dboth here, but DT_GNU_HASH has already been supported by Glibc and Musl and become the de-facto standard of the distros when the first LoongArch CPU was taped. So DT_HASH seems just wasting storage space for LoongArch. Just drop the option and rely on the linker default, which is likely "gnu" (Arch, Debian, Gentoo, LFS) on all LoongArch distros (confirmed on Arch, Debian, Gentoo, and LFS; AOSC now defaults to "both" but it seems just an oversight). Following the logic of commit 48f6430505c0 ("arm64/vdso: Remove --hash-style=3Dsysv"). Link: https://github.com/AOSC-Dev/aosc-os-abbs/pull/9796 Signed-off-by: Xi Ruoyao --- arch/loongarch/vdso/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/loongarch/vdso/Makefile b/arch/loongarch/vdso/Makefile index fdde1bcd4e26..abaf87c58f9d 100644 --- a/arch/loongarch/vdso/Makefile +++ b/arch/loongarch/vdso/Makefile @@ -37,7 +37,7 @@ endif # VDSO linker flags. ldflags-y :=3D -Bsymbolic --no-undefined -soname=3Dlinux-vdso.so.1 \ $(filter -E%,$(KBUILD_CFLAGS)) -nostdlib -shared \ - --hash-style=3Dsysv --build-id -T + --build-id -T =20 # # Shared build commands. --=20 2.48.1