[PATCH 0/7] tools/nolibc: large file support

From: Thomas Weißschuh

Date: Sat Apr 18 2026 - 06:27:08 EST


Signed-off-by: Thomas Weißschuh <linux@xxxxxxxxxxxxxx>
---
Thomas Weißschuh (7):
tools/nolibc: also handle _llseek system call
tools/nolibc: add __nolibc_arg_to_reg()
tools/nolibc: cast pointers returned from system calls through integers
tools/nolibc: handle 64-bit system call arguments on x32
tools/nolibc: handle 64-bit system call arguments on MIPS N32
tools/nolibc: open files with O_LARGEFILE
selftests/nolibc: test large file support

tools/include/nolibc/arch-mips.h | 94 +++++++++++++++-------------
tools/include/nolibc/arch-x86.h | 70 ++++++++++-----------
tools/include/nolibc/crt.h | 4 ++
tools/include/nolibc/fcntl.h | 4 ++
tools/include/nolibc/sys.h | 14 +++--
tools/include/nolibc/sys/mman.h | 6 +-
tools/testing/selftests/nolibc/nolibc-test.c | 48 ++++++++++++++
7 files changed, 153 insertions(+), 87 deletions(-)
---
base-commit: 881f42cc68a6723f1fd6bac00b84b9281cf9bca0
change-id: 20260417-nolibc-largefile-90c85e8443cf

Best regards,
--
Thomas Weißschuh <linux@xxxxxxxxxxxxxx>