/freebsd-10.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-10.3-release/sys/compat/linux/ |
H A D | linux_vdso.c | 105 Elf_Ehdr *ehdr; local 109 ehdr = (Elf_Ehdr *) sv->sv_sigcode; 111 if (!IS_ELF(*ehdr) || 112 ehdr->e_ident[EI_CLASS] != ELF_TARG_CLASS || 113 ehdr->e_ident[EI_DATA] != ELF_TARG_DATA || 114 ehdr->e_ident[EI_VERSION] != EV_CURRENT || 115 ehdr->e_shoff == 0 || 116 ehdr->e_shentsize != sizeof(Elf_Shdr)) 119 if (ehdr->e_type != ET_DYN) 122 shdr = (Elf_Shdr *) ((caddr_t)ehdr 145 Elf_Ehdr *ehdr; local 222 linux_vdso_lookup(Elf_Ehdr *ehdr, struct linux_vdso_sym *vsym) argument [all...] |
/freebsd-10.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-10.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-10.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-10.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-10.3-release/sys/arm/arm/ |
H A D | dump_machdep.c | 301 Elf_Ehdr ehdr; local 312 bzero(&ehdr, sizeof(ehdr)); 313 ehdr.e_ident[EI_MAG0] = ELFMAG0; 314 ehdr.e_ident[EI_MAG1] = ELFMAG1; 315 ehdr.e_ident[EI_MAG2] = ELFMAG2; 316 ehdr.e_ident[EI_MAG3] = ELFMAG3; 317 ehdr.e_ident[EI_CLASS] = ELF_CLASS; 319 ehdr.e_ident[EI_DATA] = ELFDATA2LSB; 321 ehdr [all...] |
/freebsd-10.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 | 43 _libelf_load_scn(Elf *e, void *ehdr) argument 55 assert(ehdr != NULL); 75 eh32 = (Elf32_Ehdr *) ehdr; 79 eh64 = (Elf64_Ehdr *) ehdr; 131 void *ehdr; local 140 if ((ehdr = _libelf_ehdr(e, ec, 0)) == NULL) 145 _libelf_load_scn(e, ehdr) == 0) 170 void *ehdr; local 183 if ((ehdr = _libelf_ehdr(e, ec, 0)) == NULL) 198 _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;
|
/freebsd-10.3-release/sys/ia64/ia64/ |
H A D | dump_machdep.c | 332 Elf64_Ehdr ehdr; local 338 bzero(&ehdr, sizeof(ehdr)); 339 ehdr.e_ident[EI_MAG0] = ELFMAG0; 340 ehdr.e_ident[EI_MAG1] = ELFMAG1; 341 ehdr.e_ident[EI_MAG2] = ELFMAG2; 342 ehdr.e_ident[EI_MAG3] = ELFMAG3; 343 ehdr.e_ident[EI_CLASS] = ELFCLASS64; 345 ehdr.e_ident[EI_DATA] = ELFDATA2LSB; 347 ehdr [all...] |
/freebsd-10.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-10.3-release/sys/boot/common/ |
H A D | load_elf.c | 55 Elf_Ehdr *ehdr; member in struct:elf_file 93 Elf_Ehdr *ehdr; local 114 ehdr = ef->ehdr = (Elf_Ehdr *)ef->firstpage; 117 if (!IS_ELF(*ehdr)) { 121 if (ehdr->e_ident[EI_CLASS] != ELF_TARG_CLASS || /* Layout ? */ 122 ehdr->e_ident[EI_DATA] != ELF_TARG_DATA || 123 ehdr->e_ident[EI_VERSION] != EV_CURRENT || /* Version ? */ 124 ehdr->e_version != EV_CURRENT || 125 ehdr 161 Elf_Ehdr *ehdr; local 300 Elf_Ehdr *ehdr; local [all...] |
/freebsd-10.3-release/contrib/netbsd-tests/usr.bin/shmif_dumpbus/ |
H A D | t_basic.sh | 51 ehdr='bus version 2, lock: 0, generation: 22, firstoff: 0x9e414, lastoff: 0x9dfd0' 56 atf_check -s exit:0 -o inline:"${ehdr}\n" shmif_dumpbus -h shmbus
|
/freebsd-10.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-10.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-10.3-release/sys/boot/userboot/userboot/ |
H A D | elf32_freebsd.c | 60 Elf_Ehdr *ehdr; local 68 ehdr = (Elf_Ehdr *)&(md->md_data); 73 entry = ehdr->e_entry & 0xffffff;
|
/freebsd-10.3-release/lib/libkvm/ |
H A D | kvm_arm.c | 130 Elf32_Ehdr *ehdr; local 155 ehdr = kd->vmst->mmapbase; 156 hdrsz = ehdr->e_phoff + ehdr->e_phentsize * ehdr->e_phnum; 160 phdr = (Elf32_Phdr *)((uint8_t *)ehdr + ehdr->e_phoff); 162 for (i = 0; i < ehdr->e_phnum; i++) {
|
/freebsd-10.3-release/cddl/contrib/opensolaris/lib/libdtrace/common/ |
H A D | dt_link.c | 500 Elf32_Ehdr ehdr; member in struct:__anon51 521 elf_file.ehdr.e_ident[EI_MAG0] = ELFMAG0; 522 elf_file.ehdr.e_ident[EI_MAG1] = ELFMAG1; 523 elf_file.ehdr.e_ident[EI_MAG2] = ELFMAG2; 524 elf_file.ehdr.e_ident[EI_MAG3] = ELFMAG3; 525 elf_file.ehdr.e_ident[EI_VERSION] = EV_CURRENT; 526 elf_file.ehdr.e_ident[EI_CLASS] = ELFCLASS32; 528 elf_file.ehdr.e_ident[EI_DATA] = ELFDATA2MSB; 530 elf_file.ehdr.e_ident[EI_DATA] = ELFDATA2LSB; 533 elf_file.ehdr 648 Elf64_Ehdr ehdr; member in struct:__anon52 1193 GElf_Ehdr ehdr; local 1694 GElf_Ehdr ehdr; local [all...] |
/freebsd-10.3-release/usr.sbin/crunch/crunchide/ |
H A D | exec_elf32.c | 224 Elf_Ehdr ehdr; local 242 if (xreadatoff(fd, &ehdr, 0, sizeof ehdr, fn) != sizeof ehdr) 245 data = ehdr.e_ident[EI_DATA]; 246 shnum = xe16toh(ehdr.e_shnum); 248 shdrsize = shnum * xe16toh(ehdr.e_shentsize); 251 if (xreadatoff(fd, shdrp, xewtoh(ehdr.e_shoff), shdrsize, fn) != 268 if (i == xe16toh(ehdr.e_shstrndx)) 299 shdrshdr.sh_offset = ehdr [all...] |