public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Willy Tarreau <w@1wt.eu>
To: "Thomas Weißschuh" <linux@weissschuh.net>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [PATCH] tools/nolibc: avoid call to wcslen() in _start_c() inserted by clang
Date: Sun, 19 Apr 2026 17:32:42 +0200	[thread overview]
Message-ID: <aeT1mrE7iy8BBPhl@1wt.eu> (raw)
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 <linux@weissschuh.net>

Compilers are always full of surprises!

Acked-by: Willy Tarreau <w@1wt.eu>
Willy

      reply	other threads:[~2026-04-19 15:32 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-04-18 10:31 [PATCH] tools/nolibc: avoid call to wcslen() in _start_c() inserted by clang Thomas Weißschuh
2026-04-19 15:32 ` Willy Tarreau [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=aeT1mrE7iy8BBPhl@1wt.eu \
    --to=w@1wt.eu \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux@weissschuh.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox