X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=platforms%2Famiga%2Fhunk-reloc.h;h=1e53492ce945490c822165cb6d225f8f908ab8b4;hb=41566c18c94123db9f4342564240ca758a8e78e1;hp=ef64444c75a9252d95eadb48e49f7d9bea38264e;hpb=cfff241e2359701d1735da9199a76e0429d5625b;p=pistorm diff --git a/platforms/amiga/hunk-reloc.h b/platforms/amiga/hunk-reloc.h index ef64444..1e53492 100644 --- a/platforms/amiga/hunk-reloc.h +++ b/platforms/amiga/hunk-reloc.h @@ -13,7 +13,7 @@ struct hunk_info { uint8_t *libnames[256]; uint32_t table_size, byte_size, alloc_size; uint32_t base_offset; - uint32_t first_hunk, last_hunk, num_hunks; + uint32_t first_hunk, last_hunk, num_hunks, header_size; uint32_t reloc_hunks; uint32_t *hunk_offsets; uint32_t *hunk_sizes; @@ -30,7 +30,7 @@ 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); +int load_lseg(int fd, uint8_t **buf_p, struct hunk_info *i, struct hunk_reloc *relocs, uint32_t block_size); 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, uint32_t offset);