| /netbsd-src/external/gpl3/gcc.old/dist/libiberty/ |
| H A D | simple-object-elf.c | 390 unsigned int shnum; member 496 eor->shnum = ELF_FETCH_FIELD (type_functions, ei_class, Ehdr, ehdr, in simple_object_elf_match() 501 if ((eor->shnum == 0 || eor->shstrndx == SHN_XINDEX) in simple_object_elf_match() 518 if (eor->shnum == 0) in simple_object_elf_match() 519 eor->shnum = ELF_FETCH_FIELD (type_functions, ei_class, Shdr, in simple_object_elf_match() 538 if (eor->shstrndx >= eor->shnum in simple_object_elf_match() 544 if (eor->shstrndx >= eor->shnum) in simple_object_elf_match() 577 unsigned int shnum; in simple_object_elf_find_sections() local 593 shnum = eor->shnum; in simple_object_elf_find_sections() 594 shdrs = XNEWVEC (unsigned char, shdr_size * (shnum - 1)); in simple_object_elf_find_sections() [all …]
|
| /netbsd-src/external/gpl3/gcc/dist/libiberty/ |
| H A D | simple-object-elf.c | 390 unsigned int shnum; member 496 eor->shnum = ELF_FETCH_FIELD (type_functions, ei_class, Ehdr, ehdr, in simple_object_elf_match() 501 if ((eor->shnum == 0 || eor->shstrndx == SHN_XINDEX) in simple_object_elf_match() 518 if (eor->shnum == 0) in simple_object_elf_match() 519 eor->shnum = ELF_FETCH_FIELD (type_functions, ei_class, Shdr, in simple_object_elf_match() 538 if (eor->shstrndx >= eor->shnum in simple_object_elf_match() 544 if (eor->shstrndx >= eor->shnum) in simple_object_elf_match() 577 unsigned int shnum; in simple_object_elf_find_sections() local 593 shnum = eor->shnum; in simple_object_elf_find_sections() 594 shdrs = XNEWVEC (unsigned char, shdr_size * (shnum - 1)); in simple_object_elf_find_sections() [all …]
|
| /netbsd-src/external/gpl3/binutils.old/dist/libiberty/ |
| H A D | simple-object-elf.c | 390 unsigned int shnum; member 496 eor->shnum = ELF_FETCH_FIELD (type_functions, ei_class, Ehdr, ehdr, in simple_object_elf_match() 501 if ((eor->shnum == 0 || eor->shstrndx == SHN_XINDEX) in simple_object_elf_match() 518 if (eor->shnum == 0) in simple_object_elf_match() 519 eor->shnum = ELF_FETCH_FIELD (type_functions, ei_class, Shdr, in simple_object_elf_match() 538 if (eor->shstrndx >= eor->shnum in simple_object_elf_match() 544 if (eor->shstrndx >= eor->shnum) in simple_object_elf_match() 577 unsigned int shnum; in simple_object_elf_find_sections() local 593 shnum = eor->shnum; in simple_object_elf_find_sections() 594 shdrs = XNEWVEC (unsigned char, shdr_size * (shnum - 1)); in simple_object_elf_find_sections() [all …]
|
| /netbsd-src/external/gpl3/binutils/dist/libiberty/ |
| H A D | simple-object-elf.c | 390 unsigned int shnum; member 496 eor->shnum = ELF_FETCH_FIELD (type_functions, ei_class, Ehdr, ehdr, in simple_object_elf_match() 501 if ((eor->shnum == 0 || eor->shstrndx == SHN_XINDEX) in simple_object_elf_match() 518 if (eor->shnum == 0) in simple_object_elf_match() 519 eor->shnum = ELF_FETCH_FIELD (type_functions, ei_class, Shdr, in simple_object_elf_match() 538 if (eor->shstrndx >= eor->shnum in simple_object_elf_match() 544 if (eor->shstrndx >= eor->shnum) in simple_object_elf_match() 577 unsigned int shnum; in simple_object_elf_find_sections() local 593 shnum = eor->shnum; in simple_object_elf_find_sections() 594 shdrs = XNEWVEC (unsigned char, shdr_size * (shnum - 1)); in simple_object_elf_find_sections() [all …]
|
| /netbsd-src/external/gpl3/binutils/dist/elfcpp/ |
| H A D | elfcpp_file.h | 141 shnum() in shnum() function 148 shnum() const in shnum() function 482 unsigned int shnum = this->shnum(); in find_section_by_type() local 484 This::shdr_size * shnum)); in find_section_by_type() 485 for (unsigned int i = 0; i < shnum; i++) in find_section_by_type() 500 if (shndx >= this->shnum()) in section_header_offset() 502 shndx, this->shnum()); in section_header_offset() 561 if (shndx >= this->shnum()) in section_contents() 563 shndx, this->shnum()); in section_contents() 579 if (shndx >= this->shnum()) in section_size() [all …]
|
| /netbsd-src/external/gpl3/binutils.old/dist/elfcpp/ |
| H A D | elfcpp_file.h | 141 shnum() in shnum() function 148 shnum() const in shnum() function 482 unsigned int shnum = this->shnum(); in find_section_by_type() local 484 This::shdr_size * shnum)); in find_section_by_type() 485 for (unsigned int i = 0; i < shnum; i++) in find_section_by_type() 500 if (shndx >= this->shnum()) in section_header_offset() 502 shndx, this->shnum()); in section_header_offset() 561 if (shndx >= this->shnum()) in section_contents() 563 shndx, this->shnum()); in section_contents() 579 if (shndx >= this->shnum()) in section_size() [all …]
|
| /netbsd-src/external/bsd/file/dist/src/ |
| H A D | elfclass.h | 57 shnum = elf_getu16(swap, elfhdr.e_shnum); 58 if (shnum > ms->elf_shnum_max) 59 return toomany(ms, "section", shnum); 63 fsize, shnum, &flags, ¬ecount) == -1) 67 shnum = elf_getu16(swap, elfhdr.e_shnum); 68 if (shnum > ms->elf_shnum_max) 69 return toomany(ms, "section headers", shnum); 71 CAST(off_t, elf_getu(swap, elfhdr.e_shoff)), shnum,
|
| /netbsd-src/external/bsd/elftoolchain/dist/libelf/ |
| H A D | elf_shnum.c | 39 _libelf_getshdrnum(Elf *e, size_t *shnum) in _libelf_getshdrnum() argument 53 *shnum = e->e_u.e_elf.e_nscn; in _libelf_getshdrnum() 59 elf_getshdrnum(Elf *e, size_t *shnum) in elf_getshdrnum() argument 61 return (_libelf_getshdrnum(e, shnum)); in elf_getshdrnum() 66 elf_getshnum(Elf *e, size_t *shnum) in elf_getshnum() argument 68 return (_libelf_getshdrnum(e, shnum) >= 0); in elf_getshnum()
|
| H A D | libelf_extended.c | 58 _libelf_setshnum(Elf *e, void *eh, int ec, size_t shnum) in _libelf_setshnum() argument 62 if (shnum >= SHN_LORESERVE) { in _libelf_setshnum() 69 scn->s_shdr.s_shdr32.sh_size = (Elf32_Word) shnum; in _libelf_setshnum() 71 scn->s_shdr.s_shdr64.sh_size = shnum; in _libelf_setshnum() 75 shnum = 0; in _libelf_setshnum() 79 ((Elf32_Ehdr *) eh)->e_shnum = shnum & 0xFFFFU; in _libelf_setshnum() 81 ((Elf64_Ehdr *) eh)->e_shnum = shnum & 0xFFFFU; in _libelf_setshnum()
|
| H A D | libelf_ehdr.c | 129 uint16_t phnum, shnum, strndx; in _libelf_ehdr() local 199 shnum = ((Elf32_Ehdr *) ehdr)->e_shnum; in _libelf_ehdr() 204 shnum = ((Elf64_Ehdr *) ehdr)->e_shnum; in _libelf_ehdr() 209 if (shnum >= SHN_LORESERVE || in _libelf_ehdr() 210 (shoff == 0LL && (shnum != 0 || phnum == PN_XNUM || in _libelf_ehdr() 220 if ((shnum == 0 && shoff != 0) || phnum == PN_XNUM || strndx == SHN_XINDEX) { in _libelf_ehdr() 226 e->e_u.e_elf.e_nscn = shnum; in _libelf_ehdr()
|
| H A D | elf_scn.c | 60 size_t fsz, i, shnum; in _libelf_load_section_headers() local 71 shnum > SIZE_MAX / fsz || \ in _libelf_load_section_headers() 72 fsz * shnum > rawsize - shoff) { \ in _libelf_load_section_headers() 82 shnum = e->e_u.e_elf.e_nscn; in _libelf_load_section_headers() 118 for (; i < shnum; i++, src += fsz) { in _libelf_load_section_headers()
|
| /netbsd-src/crypto/external/bsd/openssl/dist/util/perl/ |
| H A D | checkhandshake.pm | 89 my $shnum = 0; 94 $shnum = 1; 98 $shnum++ if ($numsh == 1 && TLSProxy::Proxy::is_tls13()); 113 $shnum++ if $message->mt() == TLSProxy::Message::MT_SERVER_HELLO; 137 && $extshnum != $shnum; 151 $shnum = 0; 156 $shnum = 1; 160 $shnum++ if ($numsh == 1 && TLSProxy::Proxy::is_tls13()); 180 $shnum++ if $message->mt() == TLSProxy::Message::MT_SERVER_HELLO; 215 && $extshnum != $shnum;
|
| /netbsd-src/crypto/external/bsd/openssl.old/dist/util/perl/ |
| H A D | checkhandshake.pm | 89 my $shnum = 0; 94 $shnum = 1; 98 $shnum++ if ($numsh == 1 && TLSProxy::Proxy::is_tls13()); 113 $shnum++ if $message->mt() == TLSProxy::Message::MT_SERVER_HELLO; 137 && $extshnum != $shnum; 151 $shnum = 0; 156 $shnum = 1; 160 $shnum++ if ($numsh == 1 && TLSProxy::Proxy::is_tls13()); 180 $shnum++ if $message->mt() == TLSProxy::Message::MT_SERVER_HELLO; 215 && $extshnum != $shnum;
|
| /netbsd-src/external/cddl/osnet/dist/lib/libctf/common/ |
| H A D | ctf_lib.c | 223 size_t shstrndx, shnum; in ctf_fdopen() local 305 shnum = hdr.e64.e_shnum; in ctf_fdopen() 309 if ((shstrndx == SHN_XINDEX) || (shnum == 0)) { in ctf_fdopen() 318 shnum = x32.sh_size; in ctf_fdopen() 328 shnum = x64.sh_size; in ctf_fdopen() 333 if (shstrndx >= shnum) in ctf_fdopen() 336 nbytes = sizeof (GElf_Shdr) * shnum; in ctf_fdopen() 348 nbytes = sizeof (Elf32_Shdr) * shnum; in ctf_fdopen() 357 for (i = 0; i < shnum; i++) in ctf_fdopen() 392 for (i = 0; i < shnum; i++) { in ctf_fdopen() [all …]
|
| /netbsd-src/external/gpl3/binutils/dist/gold/ |
| H A D | object.cc | 89 unsigned int i = object->shnum(); in initialize_symtab_xindex() 150 if (shndx < elfcpp::SHN_LORESERVE || shndx >= object->shnum()) in sym_xindex_to_shndx() 197 const unsigned int shnum = this->shnum(); in read_section_data() local 198 sd->section_headers = this->get_lasting_view(shoff, shnum * shdr_size, in read_section_data() 500 const unsigned int shnum = this->elf_file_.shnum(); in do_setup() local 501 this->set_shnum(shnum); in do_setup() 513 const unsigned int shnum = this->shnum(); in find_symtab() local 515 if (shnum > 0) in find_symtab() 519 const unsigned char* p = pshdrs + shnum * This::shdr_size; in find_symtab() 520 unsigned int i = shnum; in find_symtab() [all …]
|
| H A D | dwp.cc | 160 shnum() const in shnum() function in gold::Dwo_file 161 { return this->obj_->shnum(); } in shnum() 778 const unsigned int shnum = this->elf_file_.shnum(); in setup() local 780 this->set_shnum(shnum); in setup() 781 this->section_offsets().resize(shnum); in setup() 784 const unsigned char* const pshdrs = this->get_view(shoff, shnum * shdr_size, in setup() 803 pshdrs, this->shnum(), names, section_names_size, this, true); in setup() 845 unsigned int shnum = this->shnum(); in read_executable() local 846 this->is_compressed_.resize(shnum); in read_executable() 847 this->sect_offsets_.resize(shnum); in read_executable() [all …]
|
| H A D | reloc.cc | 265 unsigned int shnum = this->shnum(); in do_read_relocs() local 266 if (shnum == 0) in do_read_relocs() 269 rd->relocs.reserve(shnum / 2); in do_read_relocs() 275 shnum * This::shdr_size, in do_read_relocs() 279 for (unsigned int i = 1; i < shnum; ++i, ps += This::shdr_size) in do_read_relocs() 288 if (shndx >= shnum) in do_read_relocs() 591 unsigned int shnum = this->shnum(); in do_relocate() local 595 shnum * This::shdr_size, in do_relocate() 599 views.resize(shnum); in do_relocate() 638 for (unsigned int i = 1; i < shnum; ++i) in do_relocate() [all …]
|
| H A D | nacl.h | 199 const unsigned int shnum = elf_file.shnum(); in do_recognize_nacl_file() local 200 for (unsigned int shndx = 1; shndx < shnum; ++shndx) in do_recognize_nacl_file()
|
| H A D | dynobj.cc | 95 const unsigned int shnum = this->elf_file_.shnum(); in setup() local 96 this->set_shnum(shnum); in setup() 119 const unsigned int shnum = this->shnum(); in find_dynsym_sections() local 121 for (unsigned int i = 0; i < shnum; ++i, p += This::shdr_size) in find_dynsym_sections() 265 if (link >= this->shnum()) in read_dynamic() 383 pshdrs, this->shnum(), names, sd->section_names_size, this, true); in base_read_symbols() 402 if (strtab_shndx >= this->shnum()) in base_read_symbols() 479 const unsigned int shnum = this->shnum(); in do_layout() local 480 if (shnum == 0) in do_layout() 492 for (unsigned int i = 1; i < shnum; ++i, pshdrs += This::shdr_size) in do_layout()
|
| /netbsd-src/external/gpl3/binutils.old/dist/gold/ |
| H A D | object.cc | 89 unsigned int i = object->shnum(); in initialize_symtab_xindex() 150 if (shndx < elfcpp::SHN_LORESERVE || shndx >= object->shnum()) in sym_xindex_to_shndx() 197 const unsigned int shnum = this->shnum(); in read_section_data() local 198 sd->section_headers = this->get_lasting_view(shoff, shnum * shdr_size, in read_section_data() 500 const unsigned int shnum = this->elf_file_.shnum(); in do_setup() local 501 this->set_shnum(shnum); in do_setup() 513 const unsigned int shnum = this->shnum(); in find_symtab() local 515 if (shnum > 0) in find_symtab() 519 const unsigned char* p = pshdrs + shnum * This::shdr_size; in find_symtab() 520 unsigned int i = shnum; in find_symtab() [all …]
|
| H A D | dwp.cc | 160 shnum() const in shnum() function in gold::Dwo_file 161 { return this->obj_->shnum(); } in shnum() 778 const unsigned int shnum = this->elf_file_.shnum(); in setup() local 780 this->set_shnum(shnum); in setup() 781 this->section_offsets().resize(shnum); in setup() 784 const unsigned char* const pshdrs = this->get_view(shoff, shnum * shdr_size, in setup() 803 pshdrs, this->shnum(), names, section_names_size, this, true); in setup() 845 unsigned int shnum = this->shnum(); in read_executable() local 846 this->is_compressed_.resize(shnum); in read_executable() 847 this->sect_offsets_.resize(shnum); in read_executable() [all …]
|
| H A D | reloc.cc | 265 unsigned int shnum = this->shnum(); in do_read_relocs() local 266 if (shnum == 0) in do_read_relocs() 269 rd->relocs.reserve(shnum / 2); in do_read_relocs() 275 shnum * This::shdr_size, in do_read_relocs() 279 for (unsigned int i = 1; i < shnum; ++i, ps += This::shdr_size) in do_read_relocs() 288 if (shndx >= shnum) in do_read_relocs() 591 unsigned int shnum = this->shnum(); in do_relocate() local 595 shnum * This::shdr_size, in do_relocate() 599 views.resize(shnum); in do_relocate() 638 for (unsigned int i = 1; i < shnum; ++i) in do_relocate() [all …]
|
| H A D | nacl.h | 199 const unsigned int shnum = elf_file.shnum(); in do_recognize_nacl_file() local 200 for (unsigned int shndx = 1; shndx < shnum; ++shndx) in do_recognize_nacl_file()
|
| H A D | dynobj.cc | 95 const unsigned int shnum = this->elf_file_.shnum(); in setup() local 96 this->set_shnum(shnum); in setup() 119 const unsigned int shnum = this->shnum(); in find_dynsym_sections() local 121 for (unsigned int i = 0; i < shnum; ++i, p += This::shdr_size) in find_dynsym_sections() 265 if (link >= this->shnum()) in read_dynamic() 383 pshdrs, this->shnum(), names, sd->section_names_size, this, true); in base_read_symbols() 402 if (strtab_shndx >= this->shnum()) in base_read_symbols() 479 const unsigned int shnum = this->shnum(); in do_layout() local 480 if (shnum == 0) in do_layout() 492 for (unsigned int i = 1; i < shnum; ++i, pshdrs += This::shdr_size) in do_layout()
|
| /netbsd-src/sys/arch/i386/stand/lib/ |
| H A D | exec_multiboot1.c | 51 uint64_t shnum; in ksyms_addr_set() local 59 shnum = ehdr32->e_shnum; in ksyms_addr_set() 63 shnum = ehdr64->e_shnum; in ksyms_addr_set() 70 for (i = 0; i < shnum; i++) { in ksyms_addr_set()
|