From b0f924a1580062f9801ff8a1393ad7eb527776f7 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Sun, 24 Mar 2024 08:15:41 +0100 Subject: riscv64: fix noMMU tests, this seems a kernel bug, suggested by sorear --- target/linux/patches/6.1.79/riscv64-flat.patch | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 target/linux/patches/6.1.79/riscv64-flat.patch (limited to 'target') diff --git a/target/linux/patches/6.1.79/riscv64-flat.patch b/target/linux/patches/6.1.79/riscv64-flat.patch new file mode 100644 index 000000000..ee70ea915 --- /dev/null +++ b/target/linux/patches/6.1.79/riscv64-flat.patch @@ -0,0 +1,19 @@ +diff -Nur linux-6.1.79.orig/fs/binfmt_flat.c linux-6.1.79/fs/binfmt_flat.c +--- linux-6.1.79.orig/fs/binfmt_flat.c 2024-02-23 09:12:53.000000000 +0100 ++++ linux-6.1.79/fs/binfmt_flat.c 2024-03-23 22:35:54.496759006 +0100 +@@ -879,6 +879,7 @@ + if (res < 0) + return res; + ++#ifndef CONFIG_BINFMT_FLAT_NO_DATA_START_OFFSET + /* Update data segment pointers for all libraries */ + for (i = 0; i < MAX_SHARED_LIBS; i++) { + if (!libinfo.lib_list[i].loaded) +@@ -893,6 +894,7 @@ + return -EFAULT; + } + } ++#endif + + set_binfmt(&flat_format); + -- cgit v1.2.3