]> git.sesse.net Git - pistorm/blobdiff - platforms/amiga/hunk-reloc.h
[WIP] PiSCSI custom file system experiments
[pistorm] / platforms / amiga / hunk-reloc.h
index afd6c0275eb725e72bd6e5a7be5c5f6b0859dc7a..c153ac6c69fd47373f030eee1dc9dda68f447dd6 100644 (file)
@@ -8,7 +8,7 @@ struct hunk_info {
     uint16_t current_hunk;
     uint16_t num_libs;
     uint8_t *libnames[256];
-    uint32_t table_size;
+    uint32_t table_size, byte_size, alloc_size;
     uint32_t base_offset;
     uint32_t first_hunk, last_hunk, num_hunks;
     uint32_t reloc_hunks;
@@ -27,6 +27,8 @@ enum hunk_types {
 };
 
 int process_hunk(uint32_t index, struct hunk_info *info, FILE *f, struct hunk_reloc *r);
+int load_lseg(int fd, uint8_t **buf_p, struct hunk_info *i, struct hunk_reloc *relocs);
+
 void reloc_hunk(struct hunk_reloc *h, uint8_t *buf, struct hunk_info *i);
-void process_hunks(FILE *in, struct hunk_info *h_info, struct hunk_reloc *r);
+void process_hunks(FILE *in, struct hunk_info *h_info, struct hunk_reloc *r, uint32_t offset);
 void reloc_hunks(struct hunk_reloc *r, uint8_t *buf, struct hunk_info *h_info);