linux: update to 6.6.43
[openadk.git] / target / linux / patches / 6.6.43 / riscv-flat.patch
blob6d26c638ff6185c348df528af94188519f011d02
1 diff -Nur linux-6.6.22.orig/fs/binfmt_flat.c linux-6.6.22/fs/binfmt_flat.c
2 --- linux-6.6.22.orig/fs/binfmt_flat.c 2024-03-15 19:25:07.000000000 +0100
3 +++ linux-6.6.22/fs/binfmt_flat.c 2024-04-17 15:41:29.292461687 +0200
4 @@ -879,6 +879,7 @@
5 if (res < 0)
6 return res;
8 +#ifndef CONFIG_BINFMT_FLAT_NO_DATA_START_OFFSET
9 /* Update data segment pointers for all libraries */
10 for (i = 0; i < MAX_SHARED_LIBS; i++) {
11 if (!libinfo.lib_list[i].loaded)
12 @@ -893,6 +894,7 @@
13 return -EFAULT;
16 +#endif
18 set_binfmt(&flat_format);