/external/elfutils/tests/ |
elfshphehdr.c | 75 size_t shnum; local 76 check_elf ("elf_getshdrnum", elf_getshdrnum (elf, &shnum) == 0); 77 check ("shnum == 0", shnum == 0); 102 check_elf ("elf_getshdrnum", elf_getshdrnum (elf, &shnum) == 0); 103 check ("shnum == 0", shnum == 0); 126 check_elf ("elf_getshdrnum", elf_getshdrnum (elf, &shnum) == 0); 127 check ("shnum == 1", shnum == 2); /* section zero is also created. * [all...] |
/toolchain/binutils/binutils-2.27/libiberty/ |
simple-object-elf.c | 328 unsigned int shnum; member in struct:simple_object_elf_read 426 eor->shnum = ELF_FETCH_FIELD (type_functions, ei_class, Ehdr, ehdr, 431 if ((eor->shnum == 0 || eor->shstrndx == SHN_XINDEX) 448 if (eor->shnum == 0) 449 eor->shnum = ELF_FETCH_FIELD (type_functions, ei_class, Shdr, 468 if (eor->shstrndx >= eor->shnum 474 if (eor->shstrndx >= eor->shnum) 476 *errmsg = "invalid ELF shstrndx >= shnum"; 499 unsigned int shnum; local 515 shnum = eor->shnum 700 unsigned int shnum; local 821 unsigned int shnum; local [all...] |
/external/elfutils/libelf/ |
elf_update.c | 44 write_file (Elf *elf, off_t size, int change_bo, size_t shnum) 104 ? __elf32_updatemmap (elf, change_bo, shnum) 105 : __elf64_updatemmap (elf, change_bo, shnum)) != 0) 113 ? __elf32_updatefile (elf, change_bo, shnum) 114 : __elf64_updatefile (elf, change_bo, shnum)) != 0) 152 size_t shnum; local 184 shnum = (elf->state.elf.scns_last->cnt == 0 192 ? __elf32_updatenull_wrlock (elf, &change_bo, shnum) 193 : __elf64_updatenull_wrlock (elf, &change_bo, shnum)); 213 size = write_file (elf, size, change_bo, shnum); [all...] |
elf32_getshdr.c | 62 size_t shnum; 63 if (__elf_getshdrnum_rdlock (elf, &shnum) != 0 64 || shnum > SIZE_MAX / sizeof (ElfW2(LIBELFBITS,Shdr))) 66 size_t size = shnum * sizeof (ElfW2(LIBELFBITS,Shdr)); 138 for (size_t cnt = 0; cnt < shnum; ++cnt) 156 && shdr[cnt].sh_link < shnum) 187 for (size_t cnt = 0; cnt < shnum; ++cnt) 216 for (size_t cnt = 0; cnt < shnum; ++cnt)
|
elf32_updatefile.c | 129 __elfw2(LIBELFBITS,updatemmap) (Elf *elf, int change_bo, size_t shnum) 226 if (shnum > 0) 228 if (unlikely (shnum > SIZE_MAX / sizeof (Elf_Scn *))) 232 Elf_Scn **scns = (Elf_Scn **) malloc (shnum * sizeof (Elf_Scn *)); 255 for (size_t cnt = 0; cnt < shnum; ++cnt) 309 for (size_t cnt = 0; cnt < shnum; ++cnt) 419 for (size_t cnt = 0; cnt < shnum; ++cnt) 459 + ehdr->e_shentsize * shnum); 511 __elfw2(LIBELFBITS,updatefile) (Elf *elf, int change_bo, size_t shnum) 647 if (shnum > 0 [all...] |
elf32_updatenull.c | 52 size_t shnum, int *change_bop) 98 if (unlikely (shnum >= SHN_LORESERVE)) 104 update_if_changed (ehdr->e_shnum, shnum, 127 __elfw2(LIBELFBITS,updatenull_wrlock) (Elf *elf, int *change_bop, size_t shnum) 136 if (ELFW(default_ehdr,LIBELFBITS) (elf, ehdr, shnum, change_bop) != 0) 181 if (shnum > 0) 188 if (shnum >= SHN_LORESERVE) 195 shnum, scn0->shdr_flags); 425 + (elf_typesize (LIBELFBITS, ELF_T_SHDR, shnum)))); 440 size += elf_typesize (LIBELFBITS, ELF_T_SHDR, shnum); [all...] |
libelfP.h | 494 size_t shnum) internal_function; 496 size_t shnum) internal_function; 498 extern int __elf32_updatemmap (Elf *elf, int change_bo, size_t shnum) 500 extern int __elf64_updatemmap (Elf *elf, int change_bo, size_t shnum) 502 extern int __elf32_updatefile (Elf *elf, int change_bo, size_t shnum) 504 extern int __elf64_updatefile (Elf *elf, int change_bo, size_t shnum)
|
/prebuilts/go/darwin-x86/src/runtime/pprof/ |
elf.go | 48 var shnum int 59 shnum = int(byteOrder.Uint16(buf[48:])) 66 shnum = int(byteOrder.Uint16(buf[60:])) 69 for i := 0; i < shnum; i++ {
|
/prebuilts/go/linux-x86/src/runtime/pprof/ |
elf.go | 48 var shnum int 59 shnum = int(byteOrder.Uint16(buf[48:])) 66 shnum = int(byteOrder.Uint16(buf[60:])) 69 for i := 0; i < shnum; i++ {
|
/toolchain/binutils/binutils-2.27/elfcpp/ |
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...] |
/external/elfutils/libebl/ |
eblsectionname.c | 40 const char *scnnames[], size_t shnum) 58 && (size_t) section < shnum)
|
/external/vixl/examples/aarch32/ |
disasm-a32.cc | 110 for (int shnum = 1; shnum < nsections_; shnum++) { 111 if ((shdr_[shnum].sh_type == type) && 112 std::string(shstrtab_ + shdr_[shnum].sh_name) == section_name) { 113 return &shdr_[shnum];
|
/external/syslinux/gpxe/src/util/ |
iccfix.c | 38 unsigned int shnum = ehdr->e_shnum; local 43 for ( ; shnum-- ; shdr = ( ( ( void * ) shdr ) + shentsize ) ) {
|
/toolchain/binutils/binutils-2.27/gold/ |
nacl.h | 199 const unsigned int shnum = elf_file.shnum(); local 200 for (unsigned int shndx = 1; shndx < shnum; ++shndx)
|
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 1347 const unsigned int shnum = this->shnum(); local 2196 unsigned int shnum = this->shnum(); local [all...] |
reloc.cc | 265 unsigned int shnum = this->shnum(); local 266 if (shnum == 0) 269 rd->relocs.reserve(shnum / 2); 275 shnum * This::shdr_size, 279 for (unsigned int i = 1; i < shnum; ++i, ps += This::shdr_size) 288 if (shndx >= shnum) 591 unsigned int shnum = this->shnum(); local 595 shnum * This::shdr_size 683 unsigned int shnum = this->shnum(); local [all...] |
mapfile.cc | 361 unsigned int shnum = relobj->shnum(); local 362 for (unsigned int i = 0; i < shnum; ++i)
|
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...] |
/external/elfutils/src/ |
strip.c | 586 size_t shnum; local 587 if (unlikely (elf_getshdrnum (elf, &shnum) < 0)) 594 if (shstrndx >= shnum) 603 if ((shnum + 2) * sizeof (struct shdr_info) > MAX_STACK_ALLOC) 604 shdr_info = (struct shdr_info *) xcalloc (shnum + 2, 608 shdr_info = (struct shdr_info *) alloca ((shnum + 2) 610 memset (shdr_info, '\0', (shnum + 2) * sizeof (struct shdr_info)); 643 if (shdr_info[cnt].old_sh_link >= shnum) 679 if (grpref[inner] < shnum) 726 for (cnt = 1; cnt < shnum; ++cnt [all...] |
elfcompress.c | 279 size_t shnum = 0; local 316 for (size_t n = 0; n < shnum; n++) 377 if (elf_getshdrnum (elf, &shnum) != 0) 384 if (shnum == 0) 390 sections = xcalloc (shnum / 8 + 1, sizeof (unsigned int)); 446 if (ndx > shnum) 449 ndx, shnum); 532 scnstrents = xmalloc (shnum 534 scnnames = xcalloc (shnum, sizeof (char *)); 649 assert (ndx < shnum); [all...] |
/frameworks/compile/mclinker/lib/LD/ |
ELFReader.cpp | 310 uint32_t shnum = 0x0; local 316 shnum = ehdr->e_shnum; 321 shnum = mcld::bswap16(ehdr->e_shnum); 340 // if shnum and shstrtab overflow, the actual values are in the 1st shdr 341 if (shnum == llvm::ELF::SHN_UNDEF || shstrtab == llvm::ELF::SHN_XINDEX) { 354 if (shnum == llvm::ELF::SHN_UNDEF) 355 shnum = sh_size; 363 pInput.memArea()->request(pInput.fileOffset() + shoff, shnum * shentsize); 384 for (size_t idx = 0; idx < shnum; ++idx) { 804 uint32_t shnum = 0x0 local [all...] |
/toolchain/binutils/binutils-2.27/gold/testsuite/ |
object_unittest.cc | 55 CHECK(object->shnum() == 5);
|
/prebuilts/go/darwin-x86/src/cmd/link/internal/ld/ |
elf.go | 362 shnum uint16 380 shnum int 617 for i := 0; i < int(ehdr.shnum); i++ { 620 return uint32(ehdr.shnum) * ELF64SHDRSIZE 623 for i := 0; i < int(ehdr.shnum); i++ { 626 return uint32(ehdr.shnum) * ELF32SHDRSIZE 673 e.shnum = int(ehdr.shnum) 674 if ehdr.shnum >= NSECT { 677 shdr[ehdr.shnum] = [all...] |
/prebuilts/go/linux-x86/src/cmd/link/internal/ld/ |
elf.go | 362 shnum uint16 380 shnum int 617 for i := 0; i < int(ehdr.shnum); i++ { 620 return uint32(ehdr.shnum) * ELF64SHDRSIZE 623 for i := 0; i < int(ehdr.shnum); i++ { 626 return uint32(ehdr.shnum) * ELF32SHDRSIZE 673 e.shnum = int(ehdr.shnum) 674 if ehdr.shnum >= NSECT { 677 shdr[ehdr.shnum] = [all...] |
/external/elfutils/libdwfl/ |
dwfl_module_getdwarf.c | 331 uint_fast16_t shnum; local 338 shnum = ehdr.e32.e_shnum; 346 shnum = ehdr.e64.e_shnum; 351 if (unlikely (shnum >= SHN_LORESERVE) 354 + (shnum - 1) * shentsize))) 433 src.d_size = gelf_fsize (mod->main.elf, ELF_T_SHDR, shnum - 1, EV_CURRENT); 436 if (unlikely (shnum - 1 > SIZE_MAX / shdr_size)) 438 const size_t shdrs_bytes = (shnum - 1) * shdr_size; 490 Elf32_Shdr (*s32)[shnum - 1] = shdrs; 491 for (size_t i = 0; i < shnum - 1; ++i [all...] |