Lines Matching defs:hdr
40 } hdr;
51 nread = fread(&hdr, 1, sizeof(hdr), file);
52 if (nread != sizeof(hdr)) {
58 if (memcmp(hdr.ehdr32.e_ident, ELFMAG, SELFMAG)) {
63 switch (hdr.ehdr32.e_ident[EI_CLASS]) {
65 switch (hdr.ehdr32.e_ident[EI_DATA]) {
67 entry = le32toh(hdr.ehdr32.e_entry);
70 entry = be32toh(hdr.ehdr32.e_entry);
82 switch (hdr.ehdr32.e_ident[EI_DATA]) {
84 entry = le64toh(hdr.ehdr64.e_entry);
87 entry = be64toh(hdr.ehdr64.e_entry);