/freebsd-9.3-release/contrib/tcpdump/ |
H A D | print-ipfc.c | 84 struct ether_header ehdr; local 94 extract_ipfc_addrs(ipfcp, (char *)ESRC(&ehdr), (char *)EDST(&ehdr)); 97 ipfc_hdr_print(ipfcp, length, ESRC(&ehdr), EDST(&ehdr)); 105 if (llc_print(p, length, caplen, ESRC(&ehdr), EDST(&ehdr), 113 ESRC(&ehdr), EDST(&ehdr));
|
H A D | print-token.c | 108 struct ether_header ehdr; local 122 extract_token_addrs(trp, (char*)ESRC(&ehdr), (char*)EDST(&ehdr)); 127 *ESRC(&ehdr) &= 0x7f; 130 token_hdr_print(trp, length, ESRC(&ehdr), EDST(&ehdr)); 158 token_hdr_print(trp, length, ESRC(&ehdr), EDST(&ehdr)); 169 if (llc_print(p, length, caplen, ESRC(&ehdr), EDST(&ehdr), [all...] |
H A D | print-fddi.c | 247 struct ether_header ehdr; local 258 extract_fddi_addrs(fddip, (char *)ESRC(&ehdr), (char *)EDST(&ehdr)); 261 fddi_hdr_print(fddip, length, ESRC(&ehdr), EDST(&ehdr)); 271 if (llc_print(p, length, caplen, ESRC(&ehdr), EDST(&ehdr), 279 ESRC(&ehdr), EDST(&ehdr)); 292 fddi_hdr_print(fddip, length + FDDI_HDRLEN, ESRC(&ehdr), [all...] |
/freebsd-9.3-release/sys/ia64/ia64/ |
H A D | dump_machdep.c | 209 Elf64_Ehdr ehdr; local 215 bzero(&ehdr, sizeof(ehdr)); 216 ehdr.e_ident[EI_MAG0] = ELFMAG0; 217 ehdr.e_ident[EI_MAG1] = ELFMAG1; 218 ehdr.e_ident[EI_MAG2] = ELFMAG2; 219 ehdr.e_ident[EI_MAG3] = ELFMAG3; 220 ehdr.e_ident[EI_CLASS] = ELFCLASS64; 222 ehdr.e_ident[EI_DATA] = ELFDATA2LSB; 224 ehdr [all...] |
/freebsd-9.3-release/sys/powerpc/powerpc/ |
H A D | dump_machdep.c | 210 Elf32_Ehdr ehdr; local 216 bzero(&ehdr, sizeof(ehdr)); 217 ehdr.e_ident[EI_MAG0] = ELFMAG0; 218 ehdr.e_ident[EI_MAG1] = ELFMAG1; 219 ehdr.e_ident[EI_MAG2] = ELFMAG2; 220 ehdr.e_ident[EI_MAG3] = ELFMAG3; 221 ehdr.e_ident[EI_CLASS] = ELFCLASS32; 223 ehdr.e_ident[EI_DATA] = ELFDATA2LSB; 225 ehdr [all...] |
/freebsd-9.3-release/lib/libc/ia64/gen/ |
H A D | unwind.c | 55 Elf_Ehdr *ehdr; local 66 ehdr = (Elf_Ehdr*)info.dli_fbase; 69 assert(IS_ELF(*ehdr)); 70 assert(ehdr->e_ident[EI_CLASS] == ELFCLASS64); 71 assert(ehdr->e_ident[EI_DATA] == ELFDATA2LSB); 72 assert(ehdr->e_machine == EM_IA_64); 75 reloc = (ehdr->e_type == ET_DYN) ? (uintptr_t)info.dli_fbase : 0; 80 p = (char*)info.dli_fbase + ehdr->e_phoff; 81 p_top = p + ehdr->e_phnum * ehdr [all...] |
/freebsd-9.3-release/sys/arm/arm/ |
H A D | dump_machdep.c | 272 Elf_Ehdr ehdr; local 283 bzero(&ehdr, sizeof(ehdr)); 284 ehdr.e_ident[EI_MAG0] = ELFMAG0; 285 ehdr.e_ident[EI_MAG1] = ELFMAG1; 286 ehdr.e_ident[EI_MAG2] = ELFMAG2; 287 ehdr.e_ident[EI_MAG3] = ELFMAG3; 288 ehdr.e_ident[EI_CLASS] = ELF_CLASS; 290 ehdr.e_ident[EI_DATA] = ELFDATA2LSB; 292 ehdr [all...] |
/freebsd-9.3-release/sys/mips/mips/ |
H A D | dump_machdep.c | 264 Elf_Ehdr ehdr; local 275 bzero(&ehdr, sizeof(ehdr)); 276 ehdr.e_ident[EI_MAG0] = ELFMAG0; 277 ehdr.e_ident[EI_MAG1] = ELFMAG1; 278 ehdr.e_ident[EI_MAG2] = ELFMAG2; 279 ehdr.e_ident[EI_MAG3] = ELFMAG3; 280 ehdr.e_ident[EI_CLASS] = ELF_CLASS; 282 ehdr.e_ident[EI_DATA] = ELFDATA2LSB; 284 ehdr [all...] |
/freebsd-9.3-release/sys/x86/x86/ |
H A D | dump_machdep.c | 273 Elf_Ehdr ehdr; local 283 bzero(&ehdr, sizeof(ehdr)); 284 ehdr.e_ident[EI_MAG0] = ELFMAG0; 285 ehdr.e_ident[EI_MAG1] = ELFMAG1; 286 ehdr.e_ident[EI_MAG2] = ELFMAG2; 287 ehdr.e_ident[EI_MAG3] = ELFMAG3; 288 ehdr.e_ident[EI_CLASS] = ELF_CLASS; 290 ehdr.e_ident[EI_DATA] = ELFDATA2LSB; 292 ehdr [all...] |
/freebsd-9.3-release/lib/libelf/ |
H A D | libelf_ehdr.c | 105 void *ehdr; local 132 ehdr = (void *) e->e_u.e_elf.e_ehdr.e_ehdr32; 134 ehdr = (void *) e->e_u.e_elf.e_ehdr.e_ehdr64; 136 if (ehdr != NULL) /* already have a translated ehdr */ 137 return (ehdr); 151 if ((ehdr = calloc((size_t) 1, msz)) == NULL) { 157 e->e_u.e_elf.e_ehdr.e_ehdr32 = ehdr; 158 EHDR_INIT(ehdr,32); 160 e->e_u.e_elf.e_ehdr.e_ehdr64 = ehdr; [all...] |
H A D | elf_scn.c | 42 _libelf_load_scn(Elf *e, void *ehdr) argument 54 assert(ehdr != NULL); 72 eh32 = (Elf32_Ehdr *) ehdr; 76 eh64 = (Elf64_Ehdr *) ehdr; 128 void *ehdr; local 137 if ((ehdr = _libelf_ehdr(e, ec, 0)) == NULL) 142 _libelf_load_scn(e, ehdr) == 0) 167 void *ehdr; local 180 if ((ehdr = _libelf_ehdr(e, ec, 0)) == NULL) 195 _libelf_load_scn(e, ehdr) [all...] |
H A D | libelf_phdr.c | 47 void *ehdr, *phdr; local 66 if ((ehdr = _libelf_ehdr(e, ec, 0)) == NULL) 72 eh32 = (Elf32_Ehdr *) ehdr; 76 eh64 = (Elf64_Ehdr *) ehdr; 115 void *ehdr, *newphdr, *oldphdr; local 123 if ((ehdr = _libelf_ehdr(e, ec, 0)) == NULL) {
|
H A D | elf_flag.c | 63 void *ehdr; local 76 ehdr = e->e_u.e_elf.e_ehdr.e_ehdr32; 78 ehdr = e->e_u.e_elf.e_ehdr.e_ehdr64; 80 if (ehdr == NULL) {
|
H A D | gelf_ehdr.c | 122 void *ehdr; local 137 if ((ehdr = _libelf_ehdr(e, ec, 0)) == NULL) 143 eh64 = (Elf64_Ehdr *) ehdr; 148 eh32 = (Elf32_Ehdr *) ehdr;
|
H A D | gelf_phdr.c | 130 void *ehdr; local 145 if ((ehdr = _libelf_ehdr(e, ec, 0)) == NULL) 149 phnum = ((Elf32_Ehdr *) ehdr)->e_phnum; 151 phnum = ((Elf64_Ehdr *) ehdr)->e_phnum;
|
/freebsd-9.3-release/sys/boot/i386/libi386/ |
H A D | elf64_freebsd.c | 75 Elf_Ehdr *ehdr; local 82 ehdr = (Elf_Ehdr *)&(md->md_data); 110 entry_lo = ehdr->e_entry & 0xffffffff; 111 entry_hi = (ehdr->e_entry >> 32) & 0xffffffff; 113 printf("Start @ %#llx ...\n", ehdr->e_entry);
|
H A D | elf32_freebsd.c | 57 Elf_Ehdr *ehdr; local 63 ehdr = (Elf_Ehdr *)&(md->md_data); 68 entry = ehdr->e_entry & 0xffffff;
|
/freebsd-9.3-release/cddl/contrib/opensolaris/tools/ctf/cvt/ |
H A D | util.c | 67 GElf_Ehdr ehdr; local 70 if (gelf_getehdr(elf, &ehdr) == NULL) 71 elfterminate(file, "Couldn't read ehdr"); 82 if ((name = elf_strptr(elf, ehdr.e_shstrndx, 99 GElf_Ehdr ehdr; local 101 if (gelf_getehdr(elf, &ehdr) == NULL) { 106 if (ehdr.e_ident[EI_CLASS] == ELFCLASS32) 108 else if (ehdr.e_ident[EI_CLASS] == ELFCLASS64) 111 terminate("unknown ELF class %d\n", ehdr.e_ident[EI_CLASS]);
|
/freebsd-9.3-release/sys/boot/i386/efi/ |
H A D | elf32_freebsd.c | 60 Elf_Ehdr *ehdr; local 66 ehdr = (Elf_Ehdr *)&(md->md_data); 71 entry = ehdr->e_entry & 0xffffff;
|
/freebsd-9.3-release/sys/boot/userboot/userboot/ |
H A D | elf32_freebsd.c | 56 Elf_Ehdr *ehdr; local 64 ehdr = (Elf_Ehdr *)&(md->md_data); 69 entry = ehdr->e_entry & 0xffffff;
|
/freebsd-9.3-release/lib/libc/gen/ |
H A D | nlist.c | 205 * __elf_is_okay__ - Determine if ehdr really 212 __elf_is_okay__(Elf_Ehdr *ehdr) argument 221 if (IS_ELF(*ehdr) && 222 ehdr->e_ident[EI_CLASS] == ELF_TARG_CLASS && 223 ehdr->e_ident[EI_DATA] == ELF_TARG_DATA && 224 ehdr->e_ident[EI_VERSION] == ELF_TARG_VER) { 227 if (ehdr->e_machine == ELF_TARG_MACH && 228 ehdr->e_version == ELF_TARG_VER) 247 Elf_Ehdr ehdr; local 256 _read(fd, &ehdr, sizeo [all...] |
/freebsd-9.3-release/usr.bin/gcore/ |
H A D | elfcore.c | 367 Elf_Ehdr *ehdr; local 371 ehdr = (Elf_Ehdr *)hdr; 374 ehdr->e_ident[EI_MAG0] = ELFMAG0; 375 ehdr->e_ident[EI_MAG1] = ELFMAG1; 376 ehdr->e_ident[EI_MAG2] = ELFMAG2; 377 ehdr->e_ident[EI_MAG3] = ELFMAG3; 378 ehdr->e_ident[EI_CLASS] = ELF_CLASS; 379 ehdr->e_ident[EI_DATA] = ELF_DATA; 380 ehdr->e_ident[EI_VERSION] = EV_CURRENT; 381 ehdr [all...] |
/freebsd-9.3-release/sys/boot/common/ |
H A D | load_elf.c | 55 Elf_Ehdr *ehdr; member in struct:elf_file 98 Elf_Ehdr *ehdr; local 123 ehdr = ef.ehdr = (Elf_Ehdr *)ef.firstpage; 126 if (!IS_ELF(*ehdr)) { 130 if (ehdr->e_ident[EI_CLASS] != ELF_TARG_CLASS || /* Layout ? */ 131 ehdr->e_ident[EI_DATA] != ELF_TARG_DATA || 132 ehdr->e_ident[EI_VERSION] != EV_CURRENT || /* Version ? */ 133 ehdr->e_version != EV_CURRENT || 134 ehdr 240 Elf_Ehdr *ehdr; local [all...] |
/freebsd-9.3-release/cddl/contrib/opensolaris/lib/libdtrace/common/ |
H A D | dt_link.c | 491 Elf32_Ehdr ehdr; member in struct:__anon60 512 elf_file.ehdr.e_ident[EI_MAG0] = ELFMAG0; 513 elf_file.ehdr.e_ident[EI_MAG1] = ELFMAG1; 514 elf_file.ehdr.e_ident[EI_MAG2] = ELFMAG2; 515 elf_file.ehdr.e_ident[EI_MAG3] = ELFMAG3; 516 elf_file.ehdr.e_ident[EI_VERSION] = EV_CURRENT; 517 elf_file.ehdr.e_ident[EI_CLASS] = ELFCLASS32; 519 elf_file.ehdr.e_ident[EI_DATA] = ELFDATA2MSB; 521 elf_file.ehdr.e_ident[EI_DATA] = ELFDATA2LSB; 524 elf_file.ehdr 639 Elf64_Ehdr ehdr; member in struct:__anon61 1112 GElf_Ehdr ehdr; local 1613 GElf_Ehdr ehdr; local [all...] |
/freebsd-9.3-release/usr.sbin/crunch/crunchide/ |
H A D | exec_elf32.c | 236 Elf_Ehdr ehdr; local 254 if (xreadatoff(fd, &ehdr, 0, sizeof ehdr, fn) != sizeof ehdr) 257 data = ehdr.e_ident[EI_DATA]; 258 shnum = xe16toh(ehdr.e_shnum); 260 shdrsize = shnum * xe16toh(ehdr.e_shentsize); 263 if (xreadatoff(fd, shdrp, xewtoh(ehdr.e_shoff), shdrsize, fn) != 280 if (i == xe16toh(ehdr.e_shstrndx)) 311 shdrshdr.sh_offset = ehdr [all...] |