/netbsd/external/gpl3/binutils/dist/gprofng/src/ |
H A D | Elf.cc | 147 ehdrp = NULL; in Elf() 172 ehdrp = elf_getehdr (); in Elf() 173 if (ehdrp == NULL) in Elf() 280 if (ehdrp == NULL && abfd) in elf_getehdr() 281 ehdrp = elf_elfheader (abfd); in elf_getehdr() 282 return ehdrp; in elf_getehdr() 288 if (ehdrp == NULL || ndx >= ehdrp->e_phnum) in get_phdr() 296 if (ehdrp == NULL || ndx >= ehdrp->e_shnum) in get_shdr() 445 if (ehdrp == NULL) in elf_checksum() 977 if (ehdrp == NULL) in dump() [all …]
|
H A D | checks.cc | 308 Elf_Internal_Ehdr *ehdrp = elf->elf_getehdr (); in check_executable_arch() local 309 if (ehdrp == NULL) in check_executable_arch() 311 unsigned short machine = ehdrp->e_machine; in check_executable_arch() 347 for (unsigned cnt = 0; cnt < ehdrp->e_phnum; cnt++) in check_executable_arch()
|
H A D | Elf.h | 140 Elf_Internal_Ehdr *ehdrp; variable
|
H A D | Stabs.cc | 352 Elf_Internal_Ehdr *ehdrp = elf->elf_getehdr (); in openElf() local 353 if (ehdrp == NULL) in openElf() 360 switch (ehdrp->e_machine) in openElf()
|
/netbsd/usr.sbin/mdsetimage/ |
H A D | exec_elf32.c | 59 const Elf_Ehdr *ehdrp; in ELFNAMEEND() local 64 if (check(0, sizeof *ehdrp)) in ELFNAMEEND() 66 ehdrp = (const Elf_Ehdr *)&mappedfile[0]; in ELFNAMEEND() 68 if (memcmp(ehdrp->e_ident, ELFMAG, SELFMAG) != 0 || in ELFNAMEEND() 69 ehdrp->e_ident[EI_CLASS] != ELFCLASS) in ELFNAMEEND() 72 switch (ehdrp->e_machine) { in ELFNAMEEND() 87 const Elf_Ehdr *ehdrp; in ELFNAMEEND() local 100 ehdrp = (const Elf_Ehdr *)&mappedfile[0]; in ELFNAMEEND() 101 nphdr = ehdrp->e_phnum; in ELFNAMEEND() 102 phdr_off = ehdrp->e_phoff; in ELFNAMEEND()
|
/netbsd/usr.sbin/kvm_mkdb/ |
H A D | nlist_elf32.c | 102 Elf_Ehdr *ehdrp; variable 183 if (check(0, sizeof *ehdrp)) 185 ehdrp = (Elf_Ehdr *)&mappedfile[0]; 187 if (memcmp(ehdrp->e_ident, ELFMAG, SELFMAG) != 0 || 188 ehdrp->e_ident[EI_CLASS] != ELFCLASS) 191 switch (ehdrp->e_machine) { 206 nshdr = ehdrp->e_shnum; 207 shdr_off = ehdrp->e_shoff; 208 shdr_size = ehdrp->e_shentsize * nshdr; 211 (sizeof *shdrp != ehdrp->e_shentsize))
|
/netbsd/lib/libc/gen/ |
H A D | nlist_elf32.c | 89 Elf_Ehdr *ehdrp; in ELFNAMEEND() local 233 if (check(0, sizeof *ehdrp)) in ELFNAMEEND() 235 ehdrp = (Elf_Ehdr *)(void *)&mappedfile[0]; in ELFNAMEEND() 240 nshdr = ehdrp->e_shnum; in ELFNAMEEND() 241 shdr_off = ehdrp->e_shoff; in ELFNAMEEND() 242 shdr_size = ehdrp->e_shentsize * nshdr; in ELFNAMEEND() 245 (sizeof *shdrp != ehdrp->e_shentsize)) in ELFNAMEEND()
|
/netbsd/external/gpl3/binutils/dist/bfd/ |
H A D | elf32-gen.c | 67 Elf_Internal_Ehdr *ehdrp; in check_for_relocs() local 69 ehdrp = elf_elfheader (abfd); in check_for_relocs() 72 abfd, ehdrp->e_machine); in check_for_relocs()
|
H A D | elf64-gen.c | 67 Elf_Internal_Ehdr *ehdrp; in check_for_relocs() local 69 ehdrp = elf_elfheader (abfd); in check_for_relocs() 72 abfd, ehdrp->e_machine); in check_for_relocs()
|
H A D | elfcode.h | 1666 elf_debug_file (Elf_Internal_Ehdr *ehdrp) in elf_debug_file() argument 1668 fprintf (stderr, "e_entry = 0x%.8lx\n", (long) ehdrp->e_entry); in elf_debug_file() 1669 fprintf (stderr, "e_phoff = %ld\n", (long) ehdrp->e_phoff); in elf_debug_file() 1670 fprintf (stderr, "e_phnum = %ld\n", (long) ehdrp->e_phnum); in elf_debug_file() 1671 fprintf (stderr, "e_phentsize = %ld\n", (long) ehdrp->e_phentsize); in elf_debug_file() 1672 fprintf (stderr, "e_shoff = %ld\n", (long) ehdrp->e_shoff); in elf_debug_file() 1673 fprintf (stderr, "e_shnum = %ld\n", (long) ehdrp->e_shnum); in elf_debug_file() 1674 fprintf (stderr, "e_shentsize = %ld\n", (long) ehdrp->e_shentsize); in elf_debug_file()
|
/netbsd/external/gpl3/gdb/dist/bfd/ |
H A D | elf32-gen.c | 67 Elf_Internal_Ehdr *ehdrp; in check_for_relocs() local 69 ehdrp = elf_elfheader (abfd); in check_for_relocs() 72 abfd, ehdrp->e_machine); in check_for_relocs()
|
H A D | elf64-gen.c | 67 Elf_Internal_Ehdr *ehdrp; in check_for_relocs() local 69 ehdrp = elf_elfheader (abfd); in check_for_relocs() 72 abfd, ehdrp->e_machine); in check_for_relocs()
|
H A D | elfcode.h | 1643 elf_debug_file (Elf_Internal_Ehdr *ehdrp) in elf_debug_file() argument 1645 fprintf (stderr, "e_entry = 0x%.8lx\n", (long) ehdrp->e_entry); in elf_debug_file() 1646 fprintf (stderr, "e_phoff = %ld\n", (long) ehdrp->e_phoff); in elf_debug_file() 1647 fprintf (stderr, "e_phnum = %ld\n", (long) ehdrp->e_phnum); in elf_debug_file() 1648 fprintf (stderr, "e_phentsize = %ld\n", (long) ehdrp->e_phentsize); in elf_debug_file() 1649 fprintf (stderr, "e_shoff = %ld\n", (long) ehdrp->e_shoff); in elf_debug_file() 1650 fprintf (stderr, "e_shnum = %ld\n", (long) ehdrp->e_shnum); in elf_debug_file() 1651 fprintf (stderr, "e_shentsize = %ld\n", (long) ehdrp->e_shentsize); in elf_debug_file()
|
/netbsd/external/gpl3/binutils.old/dist/bfd/ |
H A D | elf32-gen.c | 67 Elf_Internal_Ehdr *ehdrp; in check_for_relocs() local 69 ehdrp = elf_elfheader (abfd); in check_for_relocs() 72 abfd, ehdrp->e_machine); in check_for_relocs()
|
H A D | elf64-gen.c | 67 Elf_Internal_Ehdr *ehdrp; in check_for_relocs() local 69 ehdrp = elf_elfheader (abfd); in check_for_relocs() 72 abfd, ehdrp->e_machine); in check_for_relocs()
|
H A D | elfcode.h | 1608 elf_debug_file (Elf_Internal_Ehdr *ehdrp) in elf_debug_file() argument 1610 fprintf (stderr, "e_entry = 0x%.8lx\n", (long) ehdrp->e_entry); in elf_debug_file() 1611 fprintf (stderr, "e_phoff = %ld\n", (long) ehdrp->e_phoff); in elf_debug_file() 1612 fprintf (stderr, "e_phnum = %ld\n", (long) ehdrp->e_phnum); in elf_debug_file() 1613 fprintf (stderr, "e_phentsize = %ld\n", (long) ehdrp->e_phentsize); in elf_debug_file() 1614 fprintf (stderr, "e_shoff = %ld\n", (long) ehdrp->e_shoff); in elf_debug_file() 1615 fprintf (stderr, "e_shnum = %ld\n", (long) ehdrp->e_shnum); in elf_debug_file() 1616 fprintf (stderr, "e_shentsize = %ld\n", (long) ehdrp->e_shentsize); in elf_debug_file()
|
/netbsd/external/gpl3/gdb.old/dist/bfd/ |
H A D | elf64-gen.c | 67 Elf_Internal_Ehdr *ehdrp; in check_for_relocs() local 69 ehdrp = elf_elfheader (abfd); in check_for_relocs() 72 abfd, ehdrp->e_machine); in check_for_relocs()
|
H A D | elf32-gen.c | 67 Elf_Internal_Ehdr *ehdrp; in check_for_relocs() local 69 ehdrp = elf_elfheader (abfd); in check_for_relocs() 72 abfd, ehdrp->e_machine); in check_for_relocs()
|
H A D | elfcode.h | 1643 elf_debug_file (Elf_Internal_Ehdr *ehdrp) in elf_debug_file() argument 1645 fprintf (stderr, "e_entry = 0x%.8lx\n", (long) ehdrp->e_entry); in elf_debug_file() 1646 fprintf (stderr, "e_phoff = %ld\n", (long) ehdrp->e_phoff); in elf_debug_file() 1647 fprintf (stderr, "e_phnum = %ld\n", (long) ehdrp->e_phnum); in elf_debug_file() 1648 fprintf (stderr, "e_phentsize = %ld\n", (long) ehdrp->e_phentsize); in elf_debug_file() 1649 fprintf (stderr, "e_shoff = %ld\n", (long) ehdrp->e_shoff); in elf_debug_file() 1650 fprintf (stderr, "e_shnum = %ld\n", (long) ehdrp->e_shnum); in elf_debug_file() 1651 fprintf (stderr, "e_shentsize = %ld\n", (long) ehdrp->e_shentsize); in elf_debug_file()
|