Home | History | Annotate | Download | only in aout2hux

Lines Matching refs:inf

71 		struct exec_info *inf);
73 struct exec_info *inf);
74 FILE *open_exec(const char *fn, struct exec_info *inf);
139 open_aout(const char *fn, struct aout_m68k *hdr, struct exec_info *inf)
161 inf->text_size = get_uint32(&hdr->a_text);
162 inf->data_size = get_uint32(&hdr->a_data);
163 inf->bss_size = get_uint32(&hdr->a_bss);
164 inf->entry_addr = get_uint32(&hdr->a_entry);
165 inf->text_off = sizeof(struct aout_m68k);
166 inf->data_off = sizeof(struct aout_m68k) + inf->text_size;
167 inf->text_pad = -inf->text_size & (AOUT_PAGESIZE(hdr) - 1);
176 open_elf(const char *fn, FILE *fp, struct elf_m68k_hdr *hdr, struct exec_info *inf)
273 inf->text_off = get_uint32(&phdr[0].p_offset);
274 inf->text_size = get_uint32(&shdr.sh_offset) -
275 inf->text_off;
276 inf->text_pad = 0;
277 inf->data_off = inf->text_off + inf->text_size;
278 inf->data_size = get_uint32(&phdr[0].p_filesz) -
279 inf->text_size;
280 inf->bss_size = get_uint32(&phdr[0].p_memsz) -
282 inf->entry_addr = get_uint32(&hdr->e_entry);
290 inf->text_size = get_uint32(&phdr[0].p_filesz);
291 inf->data_size = 0;
292 inf->bss_size = get_uint32(&phdr[0].p_memsz) - inf->text_size;
293 inf->entry_addr = get_uint32(&hdr->e_entry);
294 inf->text_off = get_uint32(&phdr[0].p_offset);
295 inf->data_off = 0;
296 inf->text_pad = 0;
303 inf->text_size = get_uint32(&phdr[0].p_filesz);
304 inf->data_size = 0;
305 inf->bss_size = 0;
306 inf->entry_addr = get_uint32(&hdr->e_entry);
307 inf->text_off = get_uint32(&phdr[0].p_offset);
308 inf->data_off = 0;
309 inf->text_pad = get_uint32(&phdr[0].p_memsz) - inf->text_size;
349 inf->text_size = get_uint32(&phdr[t].p_filesz);
350 inf->data_size = get_uint32(&phdr[d].p_filesz);
351 inf->bss_size = get_uint32(&phdr[d].p_memsz) - inf->data_size;
352 inf->entry_addr = get_uint32(&hdr->e_entry);
353 inf->text_off = get_uint32(&phdr[t].p_offset);
354 inf->data_off = get_uint32(&phdr[d].p_offset);
355 inf->text_pad = get_uint32(&phdr[d].p_vaddr) -
356 (get_uint32(&phdr[t].p_vaddr) + inf->text_size);
366 open_exec(const char *fn, struct exec_info *inf)
394 if (open_aout(fn, hdra, inf))
425 if (open_elf(fn, fp, hdre, inf))