From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mta1.formilux.org (mta1.formilux.org [51.159.59.229]) (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 9B6692DF68 for ; Sun, 19 Apr 2026 15:32:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=51.159.59.229 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776612765; cv=none; b=FHYpk9zm2/EPiNLPlc1CxL18pmOiovn7b7S3LSe6fvN/YrXUbghrzATSvOpKX0IeDySyjOkykt/T2wtyIhSlUjMQHFpj3ez8Iik/Xi6fjvIGlaa2ZffPAK5ETpSIqpdPaU8ef6Jwppy3wP07PgiqVAVmWiyKXpEhRTnT4cRWiN4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776612765; c=relaxed/simple; bh=Pgs9MaPLc/ITs6v68XIv2tAAniA65L0zQ6I1X2CYFxA=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Se0CGyNIszX7FUy/M6FuSaDAJ/AhX24gxAX+DQxmKc+cZyVviiodj/kf1XozAwVbXeXZN9xHa504rV9BMWc/xDcaObpews/dhcoaZSN/+GaoAYQ0BLj7vucGJQYMQ9+5O6d8injQcOpJJ8mVYJ2ZNrEeJ0TPoS9t8CC5kI1Quxc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=1wt.eu; spf=pass smtp.mailfrom=1wt.eu; dkim=pass (1024-bit key) header.d=1wt.eu header.i=@1wt.eu header.b=VXcr4n34; arc=none smtp.client-ip=51.159.59.229 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=1wt.eu Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=1wt.eu Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=1wt.eu header.i=@1wt.eu header.b="VXcr4n34" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1wt.eu; s=mail; t=1776612763; bh=EZr5tGvIperclxA1p94om653uqOFAaiSKWADlnrcFOs=; h=From:Message-ID:From; b=VXcr4n34mXlWCuJEx7Gi6LenJsE+wGW9i6ao+uguNw64aSmN2DKlFzXcEgIadplWZ f8Q4JgmdDyJy+yLa0SmzSrAJ6+StFC1c5hb0bYRxMpvflW87tpFG29hHFqHKuOD5bH 7dDyIeL0x0byDQf3Vdfoa1WuKZnA1zKZ9BPK8kCQ= Received: from 1wt.eu (ded1.1wt.eu [163.172.96.212]) by mta1.formilux.org (Postfix) with ESMTP id 179ECC09A5; Sun, 19 Apr 2026 17:32:43 +0200 (CEST) Date: Sun, 19 Apr 2026 17:32:42 +0200 From: Willy Tarreau To: Thomas =?iso-8859-1?Q?Wei=DFschuh?= Cc: linux-kernel@vger.kernel.org Subject: Re: [PATCH] tools/nolibc: avoid call to wcslen() in _start_c() inserted by clang Message-ID: References: <20260418-nolibc-wcslen-v1-1-671271b8ea63@weissschuh.net> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20260418-nolibc-wcslen-v1-1-671271b8ea63@weissschuh.net> On Sat, Apr 18, 2026 at 12:31:54PM +0200, Thomas Weißschuh wrote: > Clang may convert the loop to find _auxv into a call to wcslen() which > is missing on nolibc. -fsanitize needs to be disabled for this to > happen. > > Use the same pattern as in the nolibc strlen() implementation to avoid > the function call generation. > > Signed-off-by: Thomas Weißschuh Compilers are always full of surprises! Acked-by: Willy Tarreau Willy