Lines Matching defs:phdr
180 struct elf_m68k_phdr phdr[2];
207 fprintf(stderr, "%s: size phdr %d should be %d\n", fn, i,
224 if (fread(phdr, sizeof phdr[0], nphdr, fp) != nphdr) {
231 if (get_uint32(&phdr[i].p_type) != PT_LOAD) {
239 if (nphdr == 1 && (get_uint32(&phdr[0].p_flags) & PF_W)) {
273 inf->text_off = get_uint32(&phdr[0].p_offset);
278 inf->data_size = get_uint32(&phdr[0].p_filesz) -
280 inf->bss_size = get_uint32(&phdr[0].p_memsz) -
281 get_uint32(&phdr[0].p_filesz);
290 inf->text_size = get_uint32(&phdr[0].p_filesz);
292 inf->bss_size = get_uint32(&phdr[0].p_memsz) - inf->text_size;
294 inf->text_off = get_uint32(&phdr[0].p_offset);
303 inf->text_size = get_uint32(&phdr[0].p_filesz);
307 inf->text_off = get_uint32(&phdr[0].p_offset);
309 inf->text_pad = get_uint32(&phdr[0].p_memsz) - inf->text_size;
321 if (get_uint32(&phdr[t].p_vaddr) > get_uint32(&phdr[d].p_vaddr))
324 if ((get_uint32(&phdr[t].p_flags) & PF_X) == 0 &&
325 get_uint32(&phdr[d].p_flags) & PF_X)
328 if ((get_uint32(&phdr[d].p_flags) & PF_W) == 0 &&
329 get_uint32(&phdr[t].p_flags) & PF_W)
334 if (get_uint32(&phdr[t].p_vaddr) >
335 get_uint32(&phdr[d].p_vaddr)) {
341 if ((get_uint32(&phdr[t].p_flags) & PF_X) == 0)
345 if ((get_uint32(&phdr[d].p_flags) & PF_W) == 0)
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;
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);