From nobody Tue Apr 7 23:43:43 2026 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (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 D55E23EB7E4; Wed, 11 Mar 2026 09:31:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773221500; cv=none; b=DD/y9rEK0wRjNvwdJ77+Gl4XBx5Ctzlhap/2px1iFPwUJp51PktiBXJ2OSD5mqy0Lx0LQ7MmnmeKbvKurwDa+ujoGHWiO9wfuaG+XXOR+90fnVQi1+PDjfIW2rZfOecXRxgPfHxEodORy9Gd2Gym9lpzNEvqzMpc0PXJH6tkr04= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773221500; c=relaxed/simple; bh=f07iDVeIYu8adLHwipulsi1fQLnT9zi6nY95Mslqb4U=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=X4L95EyhxImZyuI0hksMskpQDPyF47TCuNli9hJRoQwUOLvCtWoQHIBCGaXWSfTs3+PEqT/nAyNLKR1wvpSVnlB4hDtMSXY0XSxk49poGdeIb2RMTG5E9uXr/RRoRcyd1K8dzXrYL8w609TMDeKv7ybA7g1lAsa1M92q1o3M2uc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=4188Ob/e; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=ygmYK0m3; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="4188Ob/e"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="ygmYK0m3" Date: Wed, 11 Mar 2026 09:31:36 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1773221497; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=0NybaEa2g6GRApogsxztRt1bovnS3pBohYa/a101Wlo=; b=4188Ob/eOhgw9nJ9lWVPs0DTryjDj3L0Hh9HObGHlHZLyGplh9JiBXAZL7vplMZdXKOGNn 8Jy/uUT8clKthpRF1OEiZvRV+FDkI+8zICRB1b6+1rzv8wscsrJ2/5Jk857ouh+uttovaV UtSThGzia+QZP23ruokUIq7haya2WVDey4RutSr4rgI1ton/Vg/xdQRKW0urFd8uOTbXPW qxRDAVzrQyq1aTO5nWK1RtXUEsNHm0iQmGJagekNi7/ULoaD9VeGtT8icO4EQFfdbXeSR9 p0cgntGa+PPIaobpBNN7WXF33N7/yP33ZTRB3BACeSHIRhJuwCse9KInVPQjdA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1773221497; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=0NybaEa2g6GRApogsxztRt1bovnS3pBohYa/a101Wlo=; b=ygmYK0m3CflrtCSzMLQbtUtD/2ixp1F5XRzBalzxO7he7v1ZwYcQ4TAEYwJeRbp0BhsiRh d8EaIvwtFXa8SZCw== From: tip-bot2 for Thomas =?utf-8?q?Wei=C3=9Fschuh?= Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: timers/vdso] sparc64: vdso2c: Remove symbol handling Cc: thomas.weissschuh@linutronix.de, Thomas Gleixner , Andreas Larsson , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20260304-vdso-sparc64-generic-2-v6-12-d8eb3b0e1410@linutronix.de> References: <20260304-vdso-sparc64-generic-2-v6-12-d8eb3b0e1410@linutronix.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <177322149635.1647592.1429712417992714157.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Precedence: bulk Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable The following commit has been merged into the timers/vdso branch of tip: Commit-ID: 168d23e5762b8bad9c7a14b130179dc561c0b13a Gitweb: https://git.kernel.org/tip/168d23e5762b8bad9c7a14b130179dc56= 1c0b13a Author: Thomas Wei=C3=9Fschuh AuthorDate: Wed, 04 Mar 2026 08:49:09 +01:00 Committer: Thomas Gleixner CommitterDate: Wed, 11 Mar 2026 10:18:33 +01:00 sparc64: vdso2c: Remove symbol handling There are no handled symbols left. Signed-off-by: Thomas Wei=C3=9Fschuh Signed-off-by: Thomas Gleixner Tested-by: Andreas Larsson Reviewed-by: Andreas Larsson Acked-by: Andreas Larsson Link: https://patch.msgid.link/20260304-vdso-sparc64-generic-2-v6-12-d8eb3b= 0e1410@linutronix.de --- arch/sparc/vdso/vdso2c.c | 10 +---------- arch/sparc/vdso/vdso2c.h | 41 +--------------------------------------- 2 files changed, 1 insertion(+), 50 deletions(-) diff --git a/arch/sparc/vdso/vdso2c.c b/arch/sparc/vdso/vdso2c.c index 70b14a4..e5c6121 100644 --- a/arch/sparc/vdso/vdso2c.c +++ b/arch/sparc/vdso/vdso2c.c @@ -58,14 +58,6 @@ =20 const char *outfilename; =20 -struct vdso_sym { - const char *name; - int export; -}; - -struct vdso_sym required_syms[] =3D { -}; - __attribute__((format(printf, 1, 2))) __attribute__((noreturn)) static void fail(const char *format, ...) { @@ -105,8 +97,6 @@ static void fail(const char *format, ...) #define PUT_BE(x, val) \ PBE(x, val, 64, PBE(x, val, 32, PBE(x, val, 16, LAST_PBE(x, val)))) =20 -#define NSYMS ARRAY_SIZE(required_syms) - #define BITSFUNC3(name, bits, suffix) name##bits##suffix #define BITSFUNC2(name, bits, suffix) BITSFUNC3(name, bits, suffix) #define BITSFUNC(name) BITSFUNC2(name, ELF_BITS, ) diff --git a/arch/sparc/vdso/vdso2c.h b/arch/sparc/vdso/vdso2c.h index ba07946..bad6a05 100644 --- a/arch/sparc/vdso/vdso2c.h +++ b/arch/sparc/vdso/vdso2c.h @@ -17,11 +17,9 @@ static void BITSFUNC(go)(void *raw_addr, size_t raw_len, unsigned long mapping_size; int i; unsigned long j; - ELF(Shdr) *symtab_hdr =3D NULL, *strtab_hdr; + ELF(Shdr) *symtab_hdr =3D NULL; ELF(Ehdr) *hdr =3D (ELF(Ehdr) *)raw_addr; ELF(Dyn) *dyn =3D 0, *dyn_end =3D 0; - INT_BITS syms[NSYMS] =3D {}; - ELF(Phdr) *pt =3D (ELF(Phdr) *)(raw_addr + GET_BE(&hdr->e_phoff)); =20 /* Walk the segment table. */ @@ -72,38 +70,6 @@ static void BITSFUNC(go)(void *raw_addr, size_t raw_len, if (!symtab_hdr) fail("no symbol table\n"); =20 - strtab_hdr =3D raw_addr + GET_BE(&hdr->e_shoff) + - GET_BE(&hdr->e_shentsize) * GET_BE(&symtab_hdr->sh_link); - - /* Walk the symbol table */ - for (i =3D 0; - i < GET_BE(&symtab_hdr->sh_size) / GET_BE(&symtab_hdr->sh_entsize); - i++) { - int k; - - ELF(Sym) *sym =3D raw_addr + GET_BE(&symtab_hdr->sh_offset) + - GET_BE(&symtab_hdr->sh_entsize) * i; - const char *name =3D raw_addr + GET_BE(&strtab_hdr->sh_offset) + - GET_BE(&sym->st_name); - - for (k =3D 0; k < NSYMS; k++) { - if (!strcmp(name, required_syms[k].name)) { - if (syms[k]) { - fail("duplicate symbol %s\n", - required_syms[k].name); - } - - /* - * Careful: we use negative addresses, but - * st_value is unsigned, so we rely - * on syms[k] being a signed type of the - * correct width. - */ - syms[k] =3D GET_BE(&sym->st_value); - } - } - } - if (!name) { fwrite(stripped_addr, stripped_len, 1, outfile); return; @@ -129,10 +95,5 @@ static void BITSFUNC(go)(void *raw_addr, size_t raw_len, fprintf(outfile, "const struct vdso_image %s_builtin =3D {\n", name); fprintf(outfile, "\t.data =3D raw_data,\n"); fprintf(outfile, "\t.size =3D %lu,\n", mapping_size); - for (i =3D 0; i < NSYMS; i++) { - if (required_syms[i].export && syms[i]) - fprintf(outfile, "\t.sym_%s =3D %" PRIi64 ",\n", - required_syms[i].name, (int64_t)syms[i]); - } fprintf(outfile, "};\n"); }