From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <SRS1=I3BH=kernel.org==mTs8=F2=paulmck-ThinkPad-P17-Gen-1.home=paulmck@gnuweeb.org>
X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on gnuweeb.org
X-Spam-Level: 
X-Spam-Status: No, score=-5.1 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED,
	DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,
	RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_PASS autolearn=ham
	autolearn_force=no version=3.4.6
Authentication-Results: gnuweeb.org; dmarc=pass (p=none dis=none) header.from=kernel.org
Authentication-Results: gnuweeb.org;
	dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20201202 header.b=Q2cPdtI2;
	dkim-atps=neutral
Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=139.178.84.217; helo=dfw.source.kernel.org; envelope-from=srs0=mts8=f2=paulmck-thinkpad-p17-gen-1.home=paulmck@kernel.org; receiver=<UNKNOWN> 
Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217])
	by gnuweeb.org (Postfix) with ESMTPS id 2A56F2492EF
	for <gwml@vger.gnuweeb.org>; Fri, 13 Oct 2023 02:32:26 +0700 (WIB)
Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58])
	by dfw.source.kernel.org (Postfix) with ESMTP id AD3BC61F28;
	Thu, 12 Oct 2023 19:32:25 +0000 (UTC)
Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5731BC433C8;
	Thu, 12 Oct 2023 19:32:25 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org;
	s=k20201202; t=1697139145;
	bh=5XvR0nbFOYbsOp6tjXhsyI+hRrcsXxU4UvZwxHkQOTA=;
	h=Date:From:To:Cc:Subject:Reply-To:From;
	b=Q2cPdtI2bNLimTeaRCR1tgN5h6ZXvNtQqJs7ibarktx9rEhAsF4AfNpv+Gx7HtdoG
	 UBrmMR7vXSCCNhvWOP7IwChJXN7dJNm0M5TVfS4hJPrfATmR1WVwXtY2R5N8zr0D7l
	 /H0GwaSpZfvIXdl70LM2+jZQybXKvnK9zIa8GqBtXcnD83ypA0HRL0QeJ9cTFuf6g+
	 BASO/HH8PBvVVSYCztGrbBD50SD5mIXZiGLQ60as6MRHDirjMThO/5xb/VjnjaR3tS
	 +PXsGqpH1QMqy4lw/2HjqAAPL/A++piGNwD2cXIeGMhl/Pq21G3MwhtdNtmpcUWxgl
	 VEUC+ztEqieBw==
Received: by paulmck-ThinkPad-P17-Gen-1.home (Postfix, from userid 1000)
	id E3C58CE096F; Thu, 12 Oct 2023 12:32:24 -0700 (PDT)
Date: Thu, 12 Oct 2023 12:32:24 -0700
From: "Paul E. McKenney" <paulmck@kernel.org>
To: linux-kernel@vger.kernel.org
Cc: gwml@vger.gnuweeb.org, kernel-team@meta.com, w@lwt.eu,
	ammarfaizi2@gnuweeb.org
Subject: [PATCH nolibc 0/19] Updates to nolibc for v6.7 (and three for v6.6)
Message-ID: <b34ce3cf-3fcc-4eb0-a658-229c197455ef@paulmck-laptop>
Reply-To: paulmck@kernel.org
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
List-Id: <gwml.vger.gnuweeb.org>

Hello!

This series contains nolibc updates, with the first three (1-3) being
urgent for v6.6 and the remainder (4-19) being for the upcoming v6.7
merge window.

1.	tools/nolibc: i386: Fix a stack misalign bug on _start, courtesy
	of Ammar Faizi.

2.	MAINTAINERS: nolibc: update tree location, courtesy of Thomas
	Weißschuh.

3.	tools/nolibc: mark start_c as weak, courtesy of Thomas Weißschuh.

4.	tools/nolibc: add stdarg.h header, courtesy of Thomas Weißschuh.

5.	selftests/nolibc: use -nostdinc for nolibc-test, courtesy of
	Thomas Weißschuh.

6.	tools/nolibc: x86-64: Use `rep movsb` for `memcpy()` and
	`memmove()`, courtesy of Ammar Faizi.

7.	tools/nolibc: x86-64: Use `rep stosb` for `memset()`, courtesy
	of Ammar Faizi.

8.	tools/nolibc: string: Remove the `_nolibc_memcpy_down()` function,
	courtesy of Ammar Faizi.

9.	tools/nolibc: string: Remove the `_nolibc_memcpy_up()` function,
	courtesy of Ammar Faizi.

10.	selftests/nolibc: libc-test: avoid -Wstringop-overflow warnings,
	courtesy of Thomas Weißschuh.

11.	selftests/nolibc: don't embed initramfs into kernel image,
	courtesy of Thomas Weißschuh.

12.	selftests/nolibc: allow building i386 with multiarch compiler,
	courtesy of Thomas Weißschuh.

13.	tools/nolibc: avoid unused parameter warnings for ENOSYS
	fallbacks, courtesy of Thomas Weißschuh.

14.	tools/nolibc: don't define new syscall number, courtesy of
	Thomas Weißschuh.

15.	tools/nolibc: automatically detect necessity to use pselect6,
	courtesy of Thomas Weißschuh.

16.	tools/nolibc: drop test for getauxval(AT_PAGESZ), courtesy of
	Thomas Weißschuh.

17.	tools/nolibc: add support for constructors and destructors,
	courtesy of Thomas Weißschuh.

18.	selftests/nolibc: use qemu-system-ppc64 for ppc64le, courtesy
	of Thomas Weißschuh.

19.	selftests/nolibc: add tests for multi-object linkage, courtesy
	of Thomas Weißschuh.

						Thanx, Paul

------------------------------------------------------------------------

 b/MAINTAINERS                                          |    2 
 b/tools/include/nolibc/Makefile                        |    1 
 b/tools/include/nolibc/arch-aarch64.h                  |    3 
 b/tools/include/nolibc/arch-i386.h                     |    4 -
 b/tools/include/nolibc/arch-loongarch.h                |    4 -
 b/tools/include/nolibc/arch-riscv.h                    |    3 
 b/tools/include/nolibc/arch-x86_64.h                   |   29 ++++++++
 b/tools/include/nolibc/crt.h                           |    1 
 b/tools/include/nolibc/nolibc.h                        |    4 -
 b/tools/include/nolibc/stdarg.h                        |   16 ++++
 b/tools/include/nolibc/stdio.h                         |    3 
 b/tools/include/nolibc/string.h                        |    4 +
 b/tools/include/nolibc/sys.h                           |    2 
 b/tools/testing/selftests/nolibc/.gitignore            |    1 
 b/tools/testing/selftests/nolibc/Makefile              |    2 
 b/tools/testing/selftests/nolibc/nolibc-test-linkage.c |   26 +++++++
 b/tools/testing/selftests/nolibc/nolibc-test-linkage.h |    9 ++
 b/tools/testing/selftests/nolibc/nolibc-test.c         |    6 -
 tools/include/nolibc/arch-x86_64.h                     |   13 +++
 tools/include/nolibc/crt.h                             |   23 ++++++
 tools/include/nolibc/string.h                          |   32 ++------
 tools/include/nolibc/sys.h                             |   61 +++++++++--------
 tools/testing/selftests/nolibc/Makefile                |   57 +++++++++------
 tools/testing/selftests/nolibc/nolibc-test.c           |   22 +++++-
 24 files changed, 234 insertions(+), 94 deletions(-)