summaryrefslogtreecommitdiff
path: root/target/linux/patches/6.1.107/riscv64-flat.patch
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2024-09-04 18:32:22 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2024-09-04 18:33:15 +0200
commitbc0935d1e64ae639e0827631b88ea2a36eb0995d (patch)
treebb1be70ee79535bc54b85aac6f2a02829d84fad7 /target/linux/patches/6.1.107/riscv64-flat.patch
parent8b0fa7b1b8f0935f15abe8b76ace6cf76e494784 (diff)
linux: update kernels to latest LTS
Diffstat (limited to 'target/linux/patches/6.1.107/riscv64-flat.patch')
-rw-r--r--target/linux/patches/6.1.107/riscv64-flat.patch19
1 files changed, 19 insertions, 0 deletions
diff --git a/target/linux/patches/6.1.107/riscv64-flat.patch b/target/linux/patches/6.1.107/riscv64-flat.patch
new file mode 100644
index 000000000..ee70ea915
--- /dev/null
+++ b/target/linux/patches/6.1.107/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);
+