Lines Matching defs:hdr
390 } hdr;
407 if (xfsread(ino, &hdr, sizeof(hdr)))
409 if (N_GETMAGIC(hdr.ex) == ZMAGIC)
411 else if (IS_ELF(hdr.eh))
418 addr = hdr.ex.a_entry & 0xffffff;
421 if (xfsread(ino, p, hdr.ex.a_text))
423 p += roundup2(hdr.ex.a_text, PAGE_SIZE);
424 if (xfsread(ino, p, hdr.ex.a_data))
426 p += hdr.ex.a_data + roundup2(hdr.ex.a_bss, PAGE_SIZE);
428 memcpy(p, &hdr.ex.a_syms, sizeof(hdr.ex.a_syms));
429 p += sizeof(hdr.ex.a_syms);
430 if (hdr.ex.a_syms) {
431 if (xfsread(ino, p, hdr.ex.a_syms))
433 p += hdr.ex.a_syms;
444 fs_off = hdr.eh.e_phoff;
445 for (j = i = 0; i < hdr.eh.e_phnum && j < 2; i++) {
459 if (hdr.eh.e_shnum == hdr.eh.e_shstrndx + 3) {
460 fs_off = hdr.eh.e_shoff + sizeof(es[0]) *
461 (hdr.eh.e_shstrndx + 1);
474 addr = hdr.eh.e_entry & 0xffffff;