Lines Matching refs:eh
59 elfhdr eh;
60 if (diread(obj, &eh, sizeof(eh), 0) != ZX_OK) {
61 printf("for_each_note: pread(eh) failed\n");
64 if (memcmp(&eh, ELFMAG, 4) ||
65 (eh.e_ehsize != sizeof(elfhdr)) ||
66 (eh.e_phentsize != sizeof(elfphdr))) {
70 size_t sz = sizeof(elfphdr) * eh.e_phnum;
75 if (diread(obj, ph, sz, eh.e_phoff) != ZX_OK) {
76 printf("for_each_note: pread(sz,eh.e_phoff) failed\n");
79 for (int i = 0; i < eh.e_phnum; i++) {