HomeSort by relevance Sort by last modified time
    Searched refs:shnum (Results 1 - 25 of 45) sorted by null

1 2

  /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_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...]
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...]
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)
  /toolchain/binutils/binutils-2.25/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/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.25/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)
  /toolchain/binutils/binutils-2.25/gold/
nacl.h 199 const unsigned int shnum = elf_file.shnum(); local
200 for (unsigned int shndx = 1; shndx < shnum; ++shndx)
object.cc 88 unsigned int i = object->shnum();
149 if (shndx < elfcpp::SHN_LORESERVE || shndx >= object->shnum())
196 const unsigned int shnum = this->shnum(); local
197 sd->section_headers = this->get_lasting_view(shoff, shnum * shdr_size,
452 const unsigned int shnum = this->elf_file_.shnum(); local
453 this->set_shnum(shnum);
465 const unsigned int shnum = this->shnum(); local
546 const unsigned int shnum = this->shnum(); local
1283 const unsigned int shnum = this->shnum(); local
2131 unsigned int shnum = this->shnum(); local
    [all...]
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...]
mapfile.cc 361 unsigned int shnum = relobj->shnum(); local
362 for (unsigned int i = 0; i < shnum; ++i)
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)
648 unsigned int shnum = this->shnum(); local
652 shnum * This::shdr_size
722 unsigned int shnum = this->shnum(); local
911 unsigned int shnum = this->shnum(); local
    [all...]
dynobj.cc 95 const unsigned int shnum = this->elf_file_.shnum(); local
96 this->set_shnum(shnum);
119 const unsigned int shnum = this->shnum(); local
121 for (unsigned int i = 0; i < shnum; ++i, p += This::shdr_size)
265 if (link >= this->shnum())
383 pshdrs, this->shnum(), names, sd->section_names_size, this, true);
402 if (strtab_shndx >= this->shnum())
479 const unsigned int shnum = this->shnum() local
    [all...]
incremental.cc 229 || strtab_shndx > this->elf_file_.shnum()
298 && main_strtab_shndx < this->elf_file_.shnum());
529 const unsigned int shnum = this->elf_file_.shnum(); local
531 Location shdrs_location(shoff, shnum * shdr_size);
541 this->section_map_.resize(shnum);
543 for (unsigned int i = 1; i < shnum; i++)
608 unsigned int shnum = input_file.get_input_section_count(); local
609 for (unsigned int i = 0; i < shnum; i++)
    [all...]
  /toolchain/binutils/binutils-2.25/gold/testsuite/
object_unittest.cc 55 CHECK(object->shnum() == 5);
binary_unittest.cc 101 CHECK(object->shnum() == 5);
  /external/valgrind/VEX/switchback/
linker.c 516 Elf_Shdr* shdr, int shnum,
522 Elf_Rel* rtab = (Elf_Rel*) (ehdrC + shdr[shnum].sh_offset);
523 int nent = shdr[shnum].sh_size / sizeof(Elf_Rel);
524 int target_shndx = shdr[shnum].sh_info;
525 int symtab_shndx = shdr[shnum].sh_link;
642 Elf_Shdr* shdr, int shnum,
648 Elf_Rela* rtab = (Elf_Rela*) (ehdrC + shdr[shnum].sh_offset);
649 int nent = shdr[shnum].sh_size / sizeof(Elf_Rela);
650 int target_shndx = shdr[shnum].sh_info;
651 int symtab_shndx = shdr[shnum].sh_link
    [all...]
  /external/valgrind/VEX/unused/
linker.c 420 Elf_Shdr* shdr, int shnum,
426 Elf_Rel* rtab = (Elf_Rel*) (ehdrC + shdr[shnum].sh_offset);
427 int nent = shdr[shnum].sh_size / sizeof(Elf_Rel);
428 int target_shndx = shdr[shnum].sh_info;
429 int symtab_shndx = shdr[shnum].sh_link;
546 Elf_Shdr* shdr, int shnum,
552 Elf_Rela* rtab = (Elf_Rela*) (ehdrC + shdr[shnum].sh_offset);
553 int nent = shdr[shnum].sh_size / sizeof(Elf_Rela);
554 int target_shndx = shdr[shnum].sh_info;
555 int symtab_shndx = shdr[shnum].sh_link
711 int shnum, ok; local
    [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...]
  /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...]
unstrip.c 373 symtab_count_leading_section_symbols (Elf *elf, Elf_Scn *scn, size_t shnum,
379 for (size_t i = 1; i < shnum; ++i)
403 return shnum;
589 Elf *elf, bool rel, Elf_Scn *symscn, size_t shnum)
591 const size_t added = shnum - old_shnum;
628 for (size_t i = old_shnum; i < shnum; ++i)
669 size_t shnum, size_t shstrndx,
677 return add_new_section_symbols (oscn, n, elf, rel, scn, shnum);
1032 uint_fast16_t shnum;
1036 shnum = ehdr.e32.e_shnum
1030 uint_fast16_t shnum; local
    [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...]

Completed in 788 milliseconds

1 2