riscv64-flat.patch 544 B

12345678910111213141516171819
  1. diff -Nur linux-6.1.79.orig/fs/binfmt_flat.c linux-6.1.79/fs/binfmt_flat.c
  2. --- linux-6.1.79.orig/fs/binfmt_flat.c 2024-02-23 09:12:53.000000000 +0100
  3. +++ linux-6.1.79/fs/binfmt_flat.c 2024-03-23 22:35:54.496759006 +0100
  4. @@ -879,6 +879,7 @@
  5. if (res < 0)
  6. return res;
  7. +#ifndef CONFIG_BINFMT_FLAT_NO_DATA_START_OFFSET
  8. /* Update data segment pointers for all libraries */
  9. for (i = 0; i < MAX_SHARED_LIBS; i++) {
  10. if (!libinfo.lib_list[i].loaded)
  11. @@ -893,6 +894,7 @@
  12. return -EFAULT;
  13. }
  14. }
  15. +#endif
  16. set_binfmt(&flat_format);