Lines Matching refs:shndx

130       unsigned int shndx = elfcpp::Swap<32, big_endian>::readval(contents + i);  in read_symtab_xindex()  local
132 this->symtab_xindex_.push_back(this->adjust_shndx(shndx)); in read_symtab_xindex()
148 unsigned int shndx = this->symtab_xindex_[symndx]; in sym_xindex_to_shndx() local
149 if (shndx < elfcpp::SHN_LORESERVE || shndx >= object->shnum()) in sym_xindex_to_shndx()
152 symndx, shndx); in sym_xindex_to_shndx()
155 return shndx; in sym_xindex_to_shndx()
180 Object::section_contents(unsigned int shndx, section_size_type* plen, in section_contents() argument
182 { return this->do_section_contents(shndx, plen, cache); } in section_contents()
221 Object::handle_gnu_warning_section(const char* name, unsigned int shndx, in handle_gnu_warning_section() argument
235 const unsigned char* contents = this->section_contents(shndx, &len, in handle_gnu_warning_section()
398 unsigned int shndx) in do_output_section_address() argument
403 return this->section_address(shndx); in do_output_section_address()
405 const Output_section* os = this->do_output_section(shndx); in do_output_section_address()
1012 elfcpp::Elf_Word shndx = in include_section_group() local
1016 shndxes.push_back(shndx); in include_section_group()
1018 if (shndx >= this->shnum()) in include_section_group()
1021 shndx, index); in include_section_group()
1027 if (shndx < index) in include_section_group()
1029 index, shndx); in include_section_group()
1032 typename This::Shdr member_shdr(shdrs + shndx * This::shdr_size); in include_section_group()
1045 kept_section->add_comdat_section(mname, shndx, in include_section_group()
1050 (*omit)[shndx] = true; in include_section_group()
1071 this->set_kept_comdat_section(shndx, kept_object, in include_section_group()
1084 this->set_kept_comdat_section(shndx, kept_object, in include_section_group()
1085 kept_section->shndx()); in include_section_group()
1155 this->set_kept_comdat_section(index, kept2->object(), kept2->shndx()); in include_linkonce_section()
1189 unsigned int shndx, in layout_section() argument
1196 Output_section* os = layout->layout(this, shndx, name, shdr, in layout_section()
1199 this->output_sections()[shndx] = os; in layout_section()
1201 this->section_offsets()[shndx] = invalid_address; in layout_section()
1203 this->section_offsets()[shndx] = convert_types<Address, off_t>(offset); in layout_section()
1222 unsigned int shndx, in layout_eh_frame_section() argument
1235 shndx, in layout_eh_frame_section()
1240 this->output_sections()[shndx] = os; in layout_eh_frame_section()
1246 this->discarded_eh_frame_shndx_ = shndx; in layout_eh_frame_section()
1247 this->section_offsets()[shndx] = invalid_address; in layout_eh_frame_section()
1250 this->section_offsets()[shndx] = convert_types<Address, off_t>(offset); in layout_eh_frame_section()
1910 unsigned int shndx = deferred->shndx_; in do_layout_deferred_sections() local
1917 out_sections[shndx] = NULL; in do_layout_deferred_sections()
1918 out_section_offsets[shndx] = invalid_address; in do_layout_deferred_sections()
1923 this->set_relocatable_relocs(shndx, rr); in do_layout_deferred_sections()
1925 Output_section* os = layout->layout_reloc(this, shndx, shdr, in do_layout_deferred_sections()
1927 out_sections[shndx] = os; in do_layout_deferred_sections()
1928 out_section_offsets[shndx] = invalid_address; in do_layout_deferred_sections()
2146 unsigned int shndx = this->adjust_sym_shndx(i, sym.get_st_shndx(), in do_count_local_symbols() local
2148 lv.set_input_shndx(shndx, is_ordinary); in do_count_local_symbols()
2162 if ((shndx < shnum && out_sections[shndx] == NULL) in do_count_local_symbols()
2163 || shndx == this->discarded_eh_frame_shndx_) in do_count_local_symbols()
2260 unsigned int shndx = lv_in->input_shndx(&is_ordinary); in compute_final_local_value_internal() local
2266 if (shndx == elfcpp::SHN_ABS || Symbol::is_common_shndx(shndx)) in compute_final_local_value_internal()
2271 shndx, r_sym); in compute_final_local_value_internal()
2278 if (shndx >= this->shnum()) in compute_final_local_value_internal()
2281 r_sym, shndx); in compute_final_local_value_internal()
2286 Output_section* os = out_sections[shndx]; in compute_final_local_value_internal()
2287 Address secoffset = out_offsets[shndx]; in compute_final_local_value_internal()
2288 if (symtab->is_section_folded(this, shndx)) in compute_final_local_value_internal()
2293 shndx); in compute_final_local_value_internal()
2325 if (shndx == this->discarded_eh_frame_shndx_) in compute_final_local_value_internal()
2338 os->output_address(this, shndx, lv_in->input_value())); in compute_final_local_value_internal()
2340 else if (!os->find_starting_output_address(this, shndx, &start)) in compute_final_local_value_internal()
2349 os->find_relaxed_input_section(this, shndx); in compute_final_local_value_internal()
2503 Sized_relobj_file<size, big_endian>::do_section_flags(unsigned int shndx) in do_section_flags() argument
2509 + This::shdr_size * shndx; in do_section_flags()
2514 return this->elf_file_.section_flags(shndx); in do_section_flags()
2522 Sized_relobj_file<size, big_endian>::do_section_entsize(unsigned int shndx) in do_section_entsize() argument
2528 + This::shdr_size * shndx; in do_section_entsize()
2688 unsigned int shndx, in get_symbol_location_info() argument
2728 && st_shndx == shndx in get_symbol_location_info()
2765 unsigned int shndx, in map_to_kept_section() argument
2770 if (this->get_kept_comdat_section(shndx, &kept_object, &kept_shndx)) in map_to_kept_section()
2814 unsigned int shndx, in decompressed_section_contents() argument
2819 const unsigned char* buffer = this->do_section_contents(shndx, &buffer_size, in decompressed_section_contents()
2830 this->compressed_sections_->find(shndx); in decompressed_section_contents()
2852 this->do_section_name(shndx).c_str()); in decompressed_section_contents()