/toolchain/binutils/binutils-2.25/libiberty/ |
D | simple-object-elf.c | 328 unsigned int shnum; member 426 eor->shnum = ELF_FETCH_FIELD (type_functions, ei_class, Ehdr, ehdr, in simple_object_elf_match() 431 if ((eor->shnum == 0 || eor->shstrndx == SHN_XINDEX) in simple_object_elf_match() 448 if (eor->shnum == 0) in simple_object_elf_match() 449 eor->shnum = ELF_FETCH_FIELD (type_functions, ei_class, Shdr, in simple_object_elf_match() 468 if (eor->shstrndx >= eor->shnum in simple_object_elf_match() 474 if (eor->shstrndx >= eor->shnum) in simple_object_elf_match() 499 unsigned int shnum; in simple_object_elf_find_sections() local 515 shnum = eor->shnum; in simple_object_elf_find_sections() 516 shdrs = XNEWVEC (unsigned char, shdr_size * (shnum - 1)); in simple_object_elf_find_sections() [all …]
|
/toolchain/binutils/binutils-2.25/elfcpp/ |
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 …]
|
D | ChangeLog | 17 * elfcpp_file.h (Elf_file::shnum): New const function.
|
/toolchain/binutils/binutils-2.25/gold/ |
D | object.cc | 88 unsigned int i = object->shnum(); in initialize_symtab_xindex() 149 if (shndx < elfcpp::SHN_LORESERVE || shndx >= object->shnum()) in sym_xindex_to_shndx() 196 const unsigned int shnum = this->shnum(); in read_section_data() local 197 sd->section_headers = this->get_lasting_view(shoff, shnum * shdr_size, in read_section_data() 452 const unsigned int shnum = this->elf_file_.shnum(); in do_setup() local 453 this->set_shnum(shnum); in do_setup() 465 const unsigned int shnum = this->shnum(); in find_symtab() local 467 if (shnum > 0) in find_symtab() 471 const unsigned char* p = pshdrs + shnum * This::shdr_size; in find_symtab() 472 unsigned int i = shnum; in find_symtab() [all …]
|
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() 648 unsigned int shnum = this->shnum(); in do_relocate() local 652 shnum * This::shdr_size, in do_relocate() 656 views.resize(shnum); in do_relocate() 677 for (unsigned int i = 1; i < shnum; ++i) in do_relocate() [all …]
|
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 …]
|
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()
|
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()
|
D | mapfile.cc | 361 unsigned int shnum = relobj->shnum(); in print_discarded_sections() local 362 for (unsigned int i = 0; i < shnum; ++i) in print_discarded_sections()
|
D | incremental.cc | 229 || strtab_shndx > this->elf_file_.shnum() in find_incremental_inputs_sections() 298 && main_strtab_shndx < this->elf_file_.shnum()); in setup_readers() 529 const unsigned int shnum = this->elf_file_.shnum(); in do_init_layout() local 531 Location shdrs_location(shoff, shnum * shdr_size); in do_init_layout() 541 this->section_map_.resize(shnum); in do_init_layout() 543 for (unsigned int i = 1; i < shnum; i++) in do_init_layout() 608 unsigned int shnum = input_file.get_input_section_count(); in do_reserve_layout() local 609 for (unsigned int i = 0; i < shnum; i++) in do_reserve_layout() 1581 unsigned int* index_map = new unsigned int[obj->shnum()]; in write_info_blocks() 1582 memset(index_map, 0, obj->shnum() * sizeof(unsigned int)); in write_info_blocks() [all …]
|
D | dwarf_reader.cc | 182 for (unsigned int i = 1; i < object->shnum(); ++i) in do_read_abbrevs() 319 for (unsigned int i = 1; i < object->shnum(); ++i) in read_ranges_table() 364 for (unsigned int i = 0; i < object->shnum(); ++i) in read_ranges_table() 496 for (unsigned int i = 1; i < object->shnum(); ++i) in read_section() 535 for (unsigned int i = 0; i < object->shnum(); ++i) in read_section() 1389 for (unsigned int i = 1; i < this->object_->shnum(); ++i) in do_read_string_table() 1559 for (unsigned int i = 1; i < object->shnum(); ++i) in Sized_dwarf_line_info() 1593 for (unsigned int i = 0; i < object->shnum(); ++i) in Sized_dwarf_line_info() 1610 for (symtab_shndx = 0; symtab_shndx < object->shnum(); ++symtab_shndx) in Sized_dwarf_line_info()
|
D | object.h | 328 build_compressed_section_map(const unsigned char* pshdrs, unsigned int shnum, 488 shnum() const in shnum() function 908 set_shnum(int shnum) in set_shnum() argument 909 { this->shnum_ = shnum; } in set_shnum() 1234 gold_assert(reloc_shndx < this->shnum()); in set_relocatable_relocs() 1242 gold_assert(reloc_shndx < this->shnum()); in relocatable_relocs() 1385 new std::vector<Relocatable_relocs*>(this->shnum()); in size_relocatable_relocs()
|
D | arm.cc | 1599 new std::vector<bool>(this->shnum(), false); in mark_section_for_cortex_a8_workaround() 1670 Stub_table_list empty_stub_table_list(this->shnum(), NULL); in do_setup() 6248 if (index >= this->shnum()) in section_needs_reloc_stub_scanning() 6379 unsigned int shnum = this->shnum(); in scan_sections_for_stubs() local 6384 shnum * shdr_size, in scan_sections_for_stubs() 6400 for (unsigned int i = 1; i < shnum; ++i, p += shdr_size) in scan_sections_for_stubs() 6459 for (unsigned int i = 1; i < shnum; ++i, p += shdr_size) in scan_sections_for_stubs() 6518 if (strtab_shndx >= this->shnum()) in do_count_local_symbols() 6596 unsigned int shnum = this->shnum(); in do_relocate_sections() local 6606 for (unsigned int i = 1; i < shnum; ++i) in do_relocate_sections() [all …]
|
D | aarch64.cc | 1806 this->stub_tables_.resize(this->shnum()); in do_setup() 1879 if (strtab_shndx >= this->shnum()) in do_count_local_symbols() 1943 unsigned int shnum = this->shnum(); in fix_errata() local 1944 for (unsigned int i = 1; i < shnum; ++i) in fix_errata() 2065 unsigned int shnum = this->shnum(); in do_relocate_sections() local 2068 for (unsigned int i = 1; i < shnum; ++i) in do_relocate_sections() 2171 if (text_shndx >= this->shnum()) in section_needs_reloc_stub_scanning() 2262 unsigned int shnum = this->shnum(); in scan_sections_for_stubs() local 2267 shnum * shdr_size, in scan_sections_for_stubs() 2283 for (unsigned int i = 1; i < shnum; ++i, p += shdr_size) in scan_sections_for_stubs()
|
D | incremental-dump.cc | 245 || strtab_shndx > elf_file.shnum() in dump_incremental_inputs()
|
D | icf.cc | 717 for (unsigned int i = 0;i < (*p)->shnum(); ++i) in find_identical_sections()
|
D | ehframe.cc | 1024 && fde_shndx < object->shnum() in read_fde()
|
D | plugin.cc | 1621 *count = obj->shnum(); in get_input_section_count()
|
D | incremental.h | 357 { this->sections_.reserve(obj->shnum()); } in Incremental_object_entry()
|
D | mips.cc | 5879 this->section_is_mips16_fn_stub_.resize(this->shnum(), false); in do_read_symbols() 5880 this->section_is_mips16_call_stub_.resize(this->shnum(), false); in do_read_symbols() 5881 this->section_is_mips16_call_fp_stub_.resize(this->shnum(), false); in do_read_symbols() 5886 for (unsigned int i = 1; i < this->shnum(); ++i, ps += shdr_size) in do_read_symbols() 9762 for (unsigned int i = 1; i < object->shnum(); ++i) in relocate()
|
D | layout.cc | 4015 unsigned int shnum, in create_symtab_sections() argument 4114 if (shnum >= elfcpp::SHN_LORESERVE) in create_symtab_sections()
|
D | powerpc.cc | 1977 for (unsigned int i = 1; i < this->shnum(); ++i, s += shdr_size) in do_read_symbols()
|
/toolchain/binutils/binutils-2.25/gold/testsuite/ |
D | object_unittest.cc | 55 CHECK(object->shnum() == 5); in Sized_object_test()
|
D | binary_unittest.cc | 101 CHECK(object->shnum() == 5); in Sized_binary_test()
|
/toolchain/binutils/binutils-2.25/bfd/ |
D | elf.c | 550 unsigned int i, shnum; in setup_group() local 554 shnum = elf_numsections (abfd); in setup_group() 563 for (i = 0; i < shnum; i++) in setup_group() 589 for (i = 0; i < shnum; i++) in setup_group() 654 if (idx >= shnum) in setup_group()
|