]> git.sesse.net Git - pistorm/commitdiff
PiSCSI hunk reloc change
authorbeeanyew <beeanyew@gmail.com>
Fri, 4 Jun 2021 14:34:22 +0000 (16:34 +0200)
committerbeeanyew <beeanyew@gmail.com>
Fri, 4 Jun 2021 14:34:22 +0000 (16:34 +0200)
Came across a version of PFS3AIO with an excessive number of hunk relocations in the binary compared to the ones I've seen.
Fixes segmentation fault when loading said file systems, requires `make` and `make clean` to take effect.

platforms/amiga/piscsi/piscsi.h

index 488f9de93d911a5b861c24fb179a389f9914ae9a..a9fd3535f843cdeae40900be6bf31ae340e2f02d 100644 (file)
@@ -81,7 +81,7 @@ struct piscsi_fs {
    struct FileSysHeaderBlock * fhb;
    uint32_t FS_ID;
    uint32_t handler;
-   struct hunk_reloc relocs[512];
+   struct hunk_reloc relocs[4096];
    struct hunk_info h_info;
    uint8_t *binary_data;
 };