/netbsd-current/external/bsd/elftoolchain/dist/libelf/ |
H A D | elf_shnum.c | 39 _libelf_getshdrnum(Elf *e, size_t *shnum) argument 53 *shnum = e->e_u.e_elf.e_nscn; 59 elf_getshdrnum(Elf *e, size_t *shnum) argument 61 return (_libelf_getshdrnum(e, shnum)); 66 elf_getshnum(Elf *e, size_t *shnum) argument 68 return (_libelf_getshdrnum(e, shnum) >= 0);
|
H A D | libelf_extended.c | 58 _libelf_setshnum(Elf *e, void *eh, int ec, size_t shnum) argument 62 if (shnum >= SHN_LORESERVE) { 69 scn->s_shdr.s_shdr32.sh_size = (Elf32_Word) shnum; 71 scn->s_shdr.s_shdr64.sh_size = shnum; 75 shnum = 0; 79 ((Elf32_Ehdr *) eh)->e_shnum = shnum & 0xFFFFU; 81 ((Elf64_Ehdr *) eh)->e_shnum = shnum & 0xFFFFU;
|
H A D | libelf_ehdr.c | 129 uint16_t phnum, shnum, strndx; local 199 shnum = ((Elf32_Ehdr *) ehdr)->e_shnum; 204 shnum = ((Elf64_Ehdr *) ehdr)->e_shnum; 209 if (shnum >= SHN_LORESERVE || 210 (shoff == 0LL && (shnum != 0 || phnum == PN_XNUM || 220 if ((shnum == 0 && shoff != 0) || phnum == PN_XNUM || strndx == SHN_XINDEX) { 226 e->e_u.e_elf.e_nscn = shnum;
|
H A D | elf_scn.c | 60 size_t fsz, i, shnum; local 71 shnum > SIZE_MAX / fsz || \ 72 fsz * shnum > rawsize - shoff) { \ 82 shnum = e->e_u.e_elf.e_nscn; 118 for (; i < shnum; i++, src += fsz) {
|
/netbsd-current/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-current/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; [all...] |
/netbsd-current/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; [all...] |
/netbsd-current/external/gpl3/binutils.old/dist/elfcpp/ |
H A D | elfcpp_file.h | 141 shnum() function in class:elfcpp::Elf_file 148 shnum() const function in class:elfcpp::Elf_file 482 unsigned int shnum = this->shnum(); local 484 This::shdr_size * shnum)); 485 for (unsigned int i = 0; i < shnum; i++) 500 if (shndx >= this->shnum()) 502 shndx, this->shnum()); 561 if (shndx >= this->shnum()) 563 shndx, this->shnum()); [all...] |
/netbsd-current/external/gpl3/binutils/dist/elfcpp/ |
H A D | elfcpp_file.h | 141 shnum() function in class:elfcpp::Elf_file 148 shnum() const function in class:elfcpp::Elf_file 482 unsigned int shnum = this->shnum(); local 484 This::shdr_size * shnum)); 485 for (unsigned int i = 0; i < shnum; i++) 500 if (shndx >= this->shnum()) 502 shndx, this->shnum()); 561 if (shndx >= this->shnum()) 563 shndx, this->shnum()); [all...] |
/netbsd-current/external/gpl3/gdb.old/dist/elfcpp/ |
H A D | elfcpp_file.h | 141 shnum() function in class:elfcpp::Elf_file 148 shnum() const function in class:elfcpp::Elf_file 482 unsigned int shnum = this->shnum(); local 484 This::shdr_size * shnum)); 485 for (unsigned int i = 0; i < shnum; i++) 500 if (shndx >= this->shnum()) 502 shndx, this->shnum()); 561 if (shndx >= this->shnum()) 563 shndx, this->shnum()); [all...] |
/netbsd-current/external/gpl3/binutils/dist/libiberty/ |
H A D | simple-object-elf.c | 390 unsigned int shnum; member in struct:simple_object_elf_read 496 eor->shnum = ELF_FETCH_FIELD (type_functions, ei_class, Ehdr, ehdr, 501 if ((eor->shnum == 0 || eor->shstrndx == SHN_XINDEX) 518 if (eor->shnum == 0) 519 eor->shnum = ELF_FETCH_FIELD (type_functions, ei_class, Shdr, 538 if (eor->shstrndx >= eor->shnum 544 if (eor->shstrndx >= eor->shnum) 546 *errmsg = "invalid ELF shstrndx >= shnum"; 577 unsigned int shnum; local 593 shnum 779 unsigned int shnum; local 905 unsigned int shnum; local 1098 unsigned int shnum; local [all...] |
/netbsd-current/external/gpl3/binutils.old/dist/libiberty/ |
H A D | simple-object-elf.c | 390 unsigned int shnum; member in struct:simple_object_elf_read 496 eor->shnum = ELF_FETCH_FIELD (type_functions, ei_class, Ehdr, ehdr, 501 if ((eor->shnum == 0 || eor->shstrndx == SHN_XINDEX) 518 if (eor->shnum == 0) 519 eor->shnum = ELF_FETCH_FIELD (type_functions, ei_class, Shdr, 538 if (eor->shstrndx >= eor->shnum 544 if (eor->shstrndx >= eor->shnum) 546 *errmsg = "invalid ELF shstrndx >= shnum"; 577 unsigned int shnum; local 593 shnum 779 unsigned int shnum; local 905 unsigned int shnum; local 1098 unsigned int shnum; local [all...] |
/netbsd-current/external/gpl3/gcc.old/dist/libiberty/ |
H A D | simple-object-elf.c | 390 unsigned int shnum; member in struct:simple_object_elf_read 496 eor->shnum = ELF_FETCH_FIELD (type_functions, ei_class, Ehdr, ehdr, 501 if ((eor->shnum == 0 || eor->shstrndx == SHN_XINDEX) 518 if (eor->shnum == 0) 519 eor->shnum = ELF_FETCH_FIELD (type_functions, ei_class, Shdr, 538 if (eor->shstrndx >= eor->shnum 544 if (eor->shstrndx >= eor->shnum) 546 *errmsg = "invalid ELF shstrndx >= shnum"; 577 unsigned int shnum; local 593 shnum 779 unsigned int shnum; local 905 unsigned int shnum; local 1098 unsigned int shnum; local [all...] |
/netbsd-current/external/gpl3/gdb.old/dist/libiberty/ |
H A D | simple-object-elf.c | 390 unsigned int shnum; member in struct:simple_object_elf_read 496 eor->shnum = ELF_FETCH_FIELD (type_functions, ei_class, Ehdr, ehdr, 501 if ((eor->shnum == 0 || eor->shstrndx == SHN_XINDEX) 518 if (eor->shnum == 0) 519 eor->shnum = ELF_FETCH_FIELD (type_functions, ei_class, Shdr, 538 if (eor->shstrndx >= eor->shnum 544 if (eor->shstrndx >= eor->shnum) 546 *errmsg = "invalid ELF shstrndx >= shnum"; 577 unsigned int shnum; local 593 shnum 779 unsigned int shnum; local 905 unsigned int shnum; local 1098 unsigned int shnum; local [all...] |
/netbsd-current/external/gpl3/gcc/dist/libiberty/ |
H A D | simple-object-elf.c | 390 unsigned int shnum; member in struct:simple_object_elf_read 496 eor->shnum = ELF_FETCH_FIELD (type_functions, ei_class, Ehdr, ehdr, 501 if ((eor->shnum == 0 || eor->shstrndx == SHN_XINDEX) 518 if (eor->shnum == 0) 519 eor->shnum = ELF_FETCH_FIELD (type_functions, ei_class, Shdr, 538 if (eor->shstrndx >= eor->shnum 544 if (eor->shstrndx >= eor->shnum) 546 *errmsg = "invalid ELF shstrndx >= shnum"; 577 unsigned int shnum; local 593 shnum 779 unsigned int shnum; local 905 unsigned int shnum; local 1098 unsigned int shnum; local [all...] |
/netbsd-current/external/gpl3/gdb/dist/libiberty/ |
H A D | simple-object-elf.c | 390 unsigned int shnum; member in struct:simple_object_elf_read 496 eor->shnum = ELF_FETCH_FIELD (type_functions, ei_class, Ehdr, ehdr, 501 if ((eor->shnum == 0 || eor->shstrndx == SHN_XINDEX) 518 if (eor->shnum == 0) 519 eor->shnum = ELF_FETCH_FIELD (type_functions, ei_class, Shdr, 538 if (eor->shstrndx >= eor->shnum 544 if (eor->shstrndx >= eor->shnum) 546 *errmsg = "invalid ELF shstrndx >= shnum"; 577 unsigned int shnum; local 593 shnum 779 unsigned int shnum; local 905 unsigned int shnum; local 1098 unsigned int shnum; local [all...] |
/netbsd-current/external/cddl/osnet/dist/lib/libctf/common/ |
H A D | ctf_lib.c | 223 size_t shstrndx, shnum; local 305 shnum = hdr.e64.e_shnum; 309 if ((shstrndx == SHN_XINDEX) || (shnum == 0)) { 318 shnum = x32.sh_size; 328 shnum = x64.sh_size; 333 if (shstrndx >= shnum) 336 nbytes = sizeof (GElf_Shdr) * shnum; 348 nbytes = sizeof (Elf32_Shdr) * shnum; 357 for (i = 0; i < shnum; i++) 392 for (i = 0; i < shnum; [all...] |
/netbsd-current/sys/arch/i386/stand/lib/ |
H A D | exec_multiboot1.c | 51 uint64_t shnum; local 59 shnum = ehdr32->e_shnum; 63 shnum = ehdr64->e_shnum; 70 for (i = 0; i < shnum; i++) {
|
/netbsd-current/external/gpl3/gdb.old/dist/gold/testsuite/ |
H A D | object_unittest.cc | 55 CHECK(object->shnum() == 5);
|
/netbsd-current/external/gpl3/binutils.old/dist/gold/ |
H A D | object.cc | 89 unsigned int i = object->shnum(); 150 if (shndx < elfcpp::SHN_LORESERVE || shndx >= object->shnum()) 197 const unsigned int shnum = this->shnum(); local 198 sd->section_headers = this->get_lasting_view(shoff, shnum * shdr_size, 499 const unsigned int shnum = this->elf_file_.shnum(); local 500 this->set_shnum(shnum); 512 const unsigned int shnum = this->shnum(); local 593 const unsigned int shnum = this->shnum(); local 717 build_compressed_section_map( const unsigned char* pshdrs, unsigned int shnum, const char* names, section_size_type names_size, Object* obj, bool decompress_if_needed) argument 1421 const unsigned int shnum = this->shnum(); local 2314 unsigned int shnum = this->shnum(); local [all...] |
H A D | dwp.cc | 160 shnum() const function in class:gold::Dwo_file 161 { return this->obj_->shnum(); } 778 const unsigned int shnum = this->elf_file_.shnum(); local 780 this->set_shnum(shnum); 781 this->section_offsets().resize(shnum); 784 const unsigned char* const pshdrs = this->get_view(shoff, shnum * shdr_size, 803 pshdrs, this->shnum(), names, section_names_size, this, true); 845 unsigned int shnum = this->shnum(); local 890 unsigned int shnum = this->shnum(); local 990 unsigned int shnum = this->shnum(); local [all...] |
/netbsd-current/external/gpl3/binutils/dist/gold/ |
H A D | object.cc | 89 unsigned int i = object->shnum(); 150 if (shndx < elfcpp::SHN_LORESERVE || shndx >= object->shnum()) 197 const unsigned int shnum = this->shnum(); local 198 sd->section_headers = this->get_lasting_view(shoff, shnum * shdr_size, 500 const unsigned int shnum = this->elf_file_.shnum(); local 501 this->set_shnum(shnum); 513 const unsigned int shnum = this->shnum(); local 594 const unsigned int shnum = this->shnum(); local 718 build_compressed_section_map( const unsigned char* pshdrs, unsigned int shnum, const char* names, section_size_type names_size, Object* obj, bool decompress_if_needed) argument 1426 const unsigned int shnum = this->shnum(); local 2320 unsigned int shnum = this->shnum(); local [all...] |
H A D | dwp.cc | 160 shnum() const function in class:gold::Dwo_file 161 { return this->obj_->shnum(); } 778 const unsigned int shnum = this->elf_file_.shnum(); local 780 this->set_shnum(shnum); 781 this->section_offsets().resize(shnum); 784 const unsigned char* const pshdrs = this->get_view(shoff, shnum * shdr_size, 803 pshdrs, this->shnum(), names, section_names_size, this, true); 845 unsigned int shnum = this->shnum(); local 890 unsigned int shnum = this->shnum(); local 990 unsigned int shnum = this->shnum(); local [all...] |
/netbsd-current/external/gpl3/gdb.old/dist/gold/ |
H A D | object.cc | 89 unsigned int i = object->shnum(); 150 if (shndx < elfcpp::SHN_LORESERVE || shndx >= object->shnum()) 197 const unsigned int shnum = this->shnum(); local 198 sd->section_headers = this->get_lasting_view(shoff, shnum * shdr_size, 499 const unsigned int shnum = this->elf_file_.shnum(); local 500 this->set_shnum(shnum); 512 const unsigned int shnum = this->shnum(); local 593 const unsigned int shnum = this->shnum(); local 717 build_compressed_section_map( const unsigned char* pshdrs, unsigned int shnum, const char* names, section_size_type names_size, Object* obj, bool decompress_if_needed) argument 1421 const unsigned int shnum = this->shnum(); local 2314 unsigned int shnum = this->shnum(); local [all...] |
H A D | dwp.cc | 160 shnum() const function in class:gold::Dwo_file 161 { return this->obj_->shnum(); } 778 const unsigned int shnum = this->elf_file_.shnum(); local 780 this->set_shnum(shnum); 781 this->section_offsets().resize(shnum); 784 const unsigned char* const pshdrs = this->get_view(shoff, shnum * shdr_size, 803 pshdrs, this->shnum(), names, section_names_size, this, true); 845 unsigned int shnum = this->shnum(); local 890 unsigned int shnum = this->shnum(); local 990 unsigned int shnum = this->shnum(); local [all...] |