Lines Matching refs:this
118 { delete this->contents; } in ~Section_relocs()
148 { delete this->local_symbols; } in ~Read_relocs_data()
196 shndx += this->large_shndx_offset_; in adjust_shndx()
224 if (this->got_next_ != NULL) in ~Got_offset_list()
226 delete this->got_next_; in ~Got_offset_list()
227 this->got_next_ = NULL; in ~Got_offset_list()
235 this->got_type_ = -1U; in init()
236 this->got_offset_ = 0; in init()
237 this->got_next_ = NULL; in init()
244 if (this->got_type_ == -1U) in set_offset()
246 this->got_type_ = got_type; in set_offset()
247 this->got_offset_ = got_offset; in set_offset()
251 for (Got_offset_list* g = this; g != NULL; g = g->got_next_) in set_offset()
260 g->got_next_ = this->got_next_; in set_offset()
261 this->got_next_ = g; in set_offset()
269 for (const Got_offset_list* g = this; g != NULL; g = g->got_next_) in get_offset()
281 if (this->got_type_ == -1U) in get_list()
283 return this; in get_list()
305 if (this->got_type_ == -1U) in for_all_got_offsets()
307 for (const Got_offset_list* g = this; g != NULL; g = g->got_next_) in for_all_got_offsets()
356 this->is_in_system_directory_ = input_file->is_in_system_directory(); in name_()
357 this->as_needed_ = input_file->options().as_needed(); in name_()
363 if (this->input_file_ != NULL) in ~Object()
364 this->input_file_->file().remove_object(); in ~Object()
370 { return this->name_; } in name()
375 { return this->offset_; } in offset()
380 { return this->is_dynamic_; } in is_dynamic()
388 { return this->is_needed_; } in is_needed()
393 { this->is_needed_ = true; } in set_is_needed()
398 { return this->uses_split_stack_; } in uses_split_stack()
404 { return this->has_no_split_stack_; } in has_no_split_stack()
410 { return this->do_dynobj(); } in dynobj()
416 { return this->do_pluginobj(); } in pluginobj()
422 gold_assert(this->input_file_ != NULL); in input_file()
423 return this->input_file_; in input_file()
429 gold_assert(this->input_file_ != NULL); in input_file()
430 return this->input_file_; in input_file()
437 if (this->input_file_ != NULL) in lock()
438 this->input_file_->file().lock(t); in lock()
445 if (this->input_file_ != NULL) in unlock()
446 this->input_file()->file().unlock(t); in unlock()
452 { return this->input_file_ != NULL && this->input_file_->file().is_locked(); } in is_locked()
458 if (this->input_file_ == NULL) in token()
460 return this->input_file()->file().token(); in token()
467 if (this->input_file_ != NULL) in release()
468 this->input_file()->file().release(); in release()
474 { return this->input_file()->just_symbols(); } in just_symbols()
479 { return this->do_is_incremental(); } in is_incremental()
484 { return this->do_get_mtime(); } in get_mtime()
489 { return this->shnum_; } in shnum()
509 if (this->xindex_ == NULL) in adjust_sym_shndx()
510 this->xindex_ = this->do_initialize_xindex(); in adjust_sym_shndx()
511 shndx = this->xindex_->sym_xindex_to_shndx(this, symndx); in adjust_sym_shndx()
522 { return this->do_section_size(shndx); } in section_size()
527 { return this->do_section_name(shndx); } in section_name()
532 { return this->do_section_flags(shndx); } in section_flags()
537 { return this->do_section_entsize(shndx); } in section_entsize()
542 { return this->do_section_address(shndx); } in section_address()
547 { return this->do_section_type(shndx); } in section_type()
552 { return this->do_section_link(shndx); } in section_link()
557 { return this->do_section_info(shndx); } in section_info()
562 { return this->do_section_addralign(shndx); } in section_addralign()
567 { return this->do_output_section(shndx); } in output_section()
574 { return this->do_output_section_address(shndx); } in output_section_address()
581 { return this->do_output_section_offset(shndx); } in output_section_offset()
586 { return this->do_read_symbols(sd); } in read_symbols()
592 { this->do_layout(symtab, layout, sd); } in layout()
597 { this->do_add_symbols(symtab, sd, layout); } in add_symbols()
603 { return this->do_should_include_member(symtab, layout, sd, why); } in should_include_member()
609 { return this->do_for_all_global_symbols(sd, v); } in for_all_global_symbols()
615 { this->do_for_all_local_got_entries(v); } in for_all_local_got_entries()
633 { return this->p_; } in data()
642 { return View(this->get_view(file_offset, data_size, true, true)); } in view()
661 { return View(this->get_view(loc.file_offset, loc.data_size, true, true)); } in view()
667 return this->input_file()->file().get_view(this->offset_, start, size, in get_view()
676 return this->input_file()->file().get_lasting_view(this->offset_, start, in get_lasting_view()
683 { this->input_file()->file().read(start + this->offset_, size, p); } in read()
688 { this->input_file()->file().read_multiple(this->offset_, rm); } in read_multiple()
694 if (this->input_file_ != NULL) in clear_view_cache_marks()
695 this->input_file_->file().clear_view_cache_marks(); in clear_view_cache_marks()
704 { this->do_get_global_symbol_counts(symtab, defined, used); } in get_global_symbol_counts()
709 { return this->do_get_global_symbols(); } in get_global_symbols()
714 { this->is_in_system_directory_ = true; } in set_is_in_system_directory()
719 { return this->is_in_system_directory_; } in is_in_system_directory()
724 { this->as_needed_ = true; } in set_as_needed()
729 { return this->as_needed_; } in as_needed()
734 { return this->input_file()->will_search_for(); } in searched_for()
738 { return this->no_export_; } in no_export()
742 { this->no_export_ = value; } in set_no_export()
748 if (this->compressed_sections_ == NULL) in section_is_compressed()
751 this->compressed_sections_->find(shndx); in section_is_compressed()
752 if (p != this->compressed_sections_->end()) in section_is_compressed()
776 { return this->do_get_incremental_reloc_base(symndx); } in get_incremental_reloc_base()
781 { return this->do_get_incremental_reloc_count(symndx); } in get_incremental_reloc_count()
808 { return this->input_file()->file().get_mtime(); } in do_get_mtime()
909 { this->shnum_ = shnum; } in set_shnum()
933 gold_assert(this->xindex_ == NULL); in set_xindex()
934 this->xindex_ = xindex; in set_xindex()
970 { this->compressed_sections_ = compressed_sections; } in set_compressed_sections()
974 { return this->compressed_sections_; } in compressed_sections()
1039 { return this->sd_; } in get_symbols_data()
1052 { this->sd_ = sd; } in set_symbols_data()
1060 { return this->rd_; } in get_relocs_data()
1064 { this->rd_ = rd; } in set_relocs_data()
1072 { return this->do_read_relocs(rd); } in read_relocs()
1077 { return this->do_gc_process_relocs(symtab, layout, rd); } in gc_process_relocs()
1082 { return this->do_scan_relocs(symtab, layout, rd); } in scan_relocs()
1089 { return this->do_local_symbol_value(symndx, addend); } in local_symbol_value()
1095 { return this->do_local_plt_offset(symndx); } in local_plt_offset()
1101 { return this->do_local_has_got_offset(symndx, got_type); } in local_has_got_offset()
1108 { return this->do_local_got_offset(symndx, got_type); } in local_got_offset()
1115 { this->do_set_local_got_offset(symndx, got_type, got_offset); } in set_local_got_offset()
1120 { return this->do_local_is_tls(symndx); } in local_is_tls()
1125 { return this->do_local_symbol_count(); } in local_symbol_count()
1130 { return this->do_output_local_symbol_count(); } in output_local_symbol_count()
1135 { return this->do_local_symbol_offset(); } in local_symbol_offset()
1143 { return this->do_count_local_symbols(pool, dynpool); } in count_local_symbols()
1150 { return this->do_finalize_local_symbols(index, off, symtab); } in finalize_local_symbols()
1155 { return this->do_set_local_dynsym_indexes(index); } in set_local_dynsym_indexes()
1160 { return this->do_set_local_dynsym_offset(off); } in set_local_dynsym_offset()
1166 if (this->dyn_reloc_count_ == 0) in add_dyn_reloc()
1167 this->first_dyn_reloc_ = index; in add_dyn_reloc()
1168 ++this->dyn_reloc_count_; in add_dyn_reloc()
1174 { return this->first_dyn_reloc_; } in first_dyn_reloc()
1179 { return this->dyn_reloc_count_; } in dyn_reloc_count()
1184 { return this->do_relocate(symtab, layout, of); } in relocate()
1190 gold_assert(shndx < this->output_sections_.size()); in is_section_included()
1191 return this->output_sections_[shndx] != NULL; in is_section_included()
1200 gold_assert(shndx < this->output_sections_.size()); in set_output_section()
1201 this->output_sections_[shndx] = os; in set_output_section()
1207 { this->do_set_section_offset(shndx, off); } in set_section_offset()
1215 { return this->relocs_must_follow_section_writes_; } in relocs_must_follow_section_writes()
1220 { return this->object_merge_map_; } in merge_map()
1226 gold_assert(this->object_merge_map_ == NULL); in set_merge_map()
1227 this->object_merge_map_ = object_merge_map; in set_merge_map()
1234 gold_assert(reloc_shndx < this->shnum()); in set_relocatable_relocs()
1235 (*this->map_to_relocatable_relocs_)[reloc_shndx] = rr; in set_relocatable_relocs()
1242 gold_assert(reloc_shndx < this->shnum()); in relocatable_relocs()
1243 return (*this->map_to_relocatable_relocs_)[reloc_shndx]; in relocatable_relocs()
1250 { this->do_layout_deferred_sections(layout); } in layout_deferred_sections()
1255 { return this->reloc_bases_[symndx]; } in do_get_incremental_reloc_base()
1260 { return this->reloc_counts_[symndx]; } in do_get_incremental_reloc_count()
1265 { return this->do_elfsize(); } in elfsize()
1270 { return this->do_is_big_endian(); } in is_big_endian()
1367 gold_assert(shndx < this->output_sections_.size()); in do_output_section()
1368 return this->output_sections_[shndx]; in do_output_section()
1374 { return this->output_sections_; } in output_sections()
1378 { return this->output_sections_; } in output_sections()
1384 this->map_to_relocatable_relocs_ = in size_relocatable_relocs()
1385 new std::vector<Relocatable_relocs*>(this->shnum()); in size_relocatable_relocs()
1392 { this->relocs_must_follow_section_writes_ = true; } in set_relocs_must_follow_section_writes()
1398 unsigned int nsyms = this->do_get_global_symbols()->size(); in allocate_incremental_reloc_counts()
1399 this->reloc_counts_ = new unsigned int[nsyms]; in allocate_incremental_reloc_counts()
1400 gold_assert(this->reloc_counts_ != NULL); in allocate_incremental_reloc_counts()
1401 memset(this->reloc_counts_, 0, nsyms * sizeof(unsigned int)); in allocate_incremental_reloc_counts()
1409 unsigned int nsyms = this->do_get_global_symbols()->size(); in count_incremental_reloc()
1411 gold_assert(this->reloc_counts_ != NULL); in count_incremental_reloc()
1412 ++this->reloc_counts_[symndx]; in count_incremental_reloc()
1424 unsigned int nsyms = this->do_get_global_symbols()->size(); in next_incremental_reloc_index()
1426 gold_assert(this->reloc_counts_ != NULL); in next_incremental_reloc_index()
1427 gold_assert(this->reloc_bases_ != NULL); in next_incremental_reloc_index()
1430 unsigned int counter = this->reloc_counts_[symndx]++; in next_incremental_reloc_index()
1431 return this->reloc_bases_[symndx] + counter; in next_incremental_reloc_index()
1504 { this->output_addresses_.clear(); } in free_input_to_output_map()
1529 Value input_offset = this->input_value_; in value()
1536 this->output_addresses_.find(input_offset); in value()
1537 if (p != this->output_addresses_.end()) in value()
1540 return (this->value_from_output_section(object, input_shndx, input_offset) in value()
1576 { this->u_.value = 0; } in Symbol_value()
1580 if (!this->has_output_value_) in ~Symbol_value()
1581 delete this->u_.merged_symbol_value; in ~Symbol_value()
1590 if (this->has_output_value_) in value()
1591 return this->u_.value + addend; in value()
1594 gold_assert(this->is_ordinary_shndx_); in value()
1595 return this->u_.merged_symbol_value->value(object, this->input_shndx_, in value()
1603 { this->u_.value = value; } in set_output_value()
1610 gold_assert(this->is_section_symbol_); in set_merged_symbol_value()
1611 this->has_output_value_ = false; in set_merged_symbol_value()
1612 this->u_.merged_symbol_value = msv; in set_merged_symbol_value()
1621 if (!this->has_output_value_) in initialize_input_to_output_map()
1623 gold_assert(this->is_section_symbol_ && this->is_ordinary_shndx_); in initialize_input_to_output_map()
1624 Merged_symbol_value<size>* msv = this->u_.merged_symbol_value; in initialize_input_to_output_map()
1625 msv->initialize_input_to_output_map(object, this->input_shndx_); in initialize_input_to_output_map()
1634 if (!this->has_output_value_) in free_input_to_output_map()
1635 this->u_.merged_symbol_value->free_input_to_output_map(); in free_input_to_output_map()
1643 { this->u_.value = value; } in set_input_value()
1649 { return this->u_.value; } in input_value()
1656 return (this->output_symtab_index_ != 0 in is_output_symtab_index_set()
1657 && this->output_symtab_index_ != -2U); in is_output_symtab_index_set()
1665 gold_assert(!this->is_output_symtab_index_set()); in may_be_discarded_from_output_symtab()
1666 return this->output_symtab_index_ != -2U; in may_be_discarded_from_output_symtab()
1674 gold_assert(this->is_output_symtab_index_set()); in has_output_symtab_entry()
1675 return this->output_symtab_index_ != -1U; in has_output_symtab_entry()
1682 gold_assert(this->is_output_symtab_index_set() in output_symtab_index()
1683 && this->output_symtab_index_ != -1U); in output_symtab_index()
1684 return this->output_symtab_index_; in output_symtab_index()
1691 gold_assert(!this->is_output_symtab_index_set()); in set_output_symtab_index()
1693 this->output_symtab_index_ = i; in set_output_symtab_index()
1701 gold_assert(this->output_symtab_index_ == 0); in set_no_output_symtab_entry()
1702 this->output_symtab_index_ = -1U; in set_no_output_symtab_entry()
1710 gold_assert(!this->is_output_symtab_index_set()); in set_must_have_output_symtab_entry()
1711 this->output_symtab_index_ = -2U; in set_must_have_output_symtab_entry()
1718 gold_assert(!this->is_section_symbol()); in set_needs_output_dynsym_entry()
1719 this->output_dynsym_index_ = 0; in set_needs_output_dynsym_entry()
1727 return this->output_dynsym_index_ != -1U; in needs_output_dynsym_entry()
1735 gold_assert(this->output_dynsym_index_ != 0); in has_output_dynsym_entry()
1736 return this->output_dynsym_index_ != -1U; in has_output_dynsym_entry()
1743 gold_assert(this->output_dynsym_index_ == 0); in set_output_dynsym_index()
1745 this->output_dynsym_index_ = i; in set_output_dynsym_index()
1752 gold_assert(this->output_dynsym_index_ != 0 in output_dynsym_index()
1753 && this->output_dynsym_index_ != -1U); in output_dynsym_index()
1754 return this->output_dynsym_index_; in output_dynsym_index()
1761 this->input_shndx_ = i; in set_input_shndx()
1764 gold_assert(this->input_shndx_ == i); in set_input_shndx()
1765 this->is_ordinary_shndx_ = is_ordinary; in set_input_shndx()
1772 *is_ordinary = this->is_ordinary_shndx_; in input_shndx()
1773 return this->input_shndx_; in input_shndx()
1779 { return this->is_section_symbol_; } in is_section_symbol()
1785 gold_assert(!this->needs_output_dynsym_entry()); in set_is_section_symbol()
1786 this->is_section_symbol_ = true; in set_is_section_symbol()
1792 { this->is_tls_symbol_ = true; } in set_is_tls_symbol()
1797 { return this->is_tls_symbol_; } in is_tls_symbol()
1802 { this->is_ifunc_symbol_ = true; } in set_is_ifunc_symbol()
1807 { return this->is_ifunc_symbol_; } in is_ifunc_symbol()
1812 { return this->has_output_value_; } in has_output_value()
1869 { this->vec_[i] = sym; } in set()
1873 { return this->vec_[i]; }
1917 { return this->get_output_section_offset(shndx) == invalid_address; } in is_output_section_offset_invalid()
1926 gold_assert(shndx < this->section_offsets_.size()); in get_output_section_offset()
1927 return this->section_offsets_[shndx]; in get_output_section_offset()
1941 { this->local_got_offsets_.clear(); } in clear_got_offsets()
1946 { return this->section_offsets_; } in section_offsets()
1956 Address off = this->get_output_section_offset(shndx); in do_output_section_offset()
1966 gold_assert(shndx < this->section_offsets_.size()); in do_set_section_offset()
1967 this->section_offsets_[shndx] = in do_set_section_offset()
1979 this->local_got_offsets_.find(symndx); in do_local_has_got_offset()
1980 return (p != this->local_got_offsets_.end() in do_local_has_got_offset()
1990 this->local_got_offsets_.find(symndx); in do_local_got_offset()
1991 gold_assert(p != this->local_got_offsets_.end()); in do_local_got_offset()
2004 this->local_got_offsets_.find(symndx); in do_set_local_got_offset()
2005 if (p != this->local_got_offsets_.end()) in do_set_local_got_offset()
2011 this->local_got_offsets_.insert(std::make_pair(symndx, g)); in do_set_local_got_offset()
2072 { this->do_setup(); } in setup()
2077 { return this; } in sized_relobj()
2081 { return this; } in sized_relobj()
2086 { return this->e_type_; } in e_type()
2092 { return this->local_symbol_count_ + this->symbols_.size(); } in symbol_count()
2099 if (sym >= this->local_symbol_count_) in global_symbol()
2101 gold_assert(sym - this->local_symbol_count_ < this->symbols_.size()); in global_symbol()
2102 return this->symbols_[sym - this->local_symbol_count_]; in global_symbol()
2121 gold_assert(sym < this->local_values_.size()); in local_symbol()
2122 return &this->local_values_[sym]; in local_symbol()
2130 gold_assert(sym < this->local_values_.size()); in symtab_index()
2131 return this->local_values_[sym].output_symtab_index(); in symtab_index()
2139 gold_assert(sym < this->local_values_.size()); in dynsym_index()
2140 return this->local_values_[sym].output_dynsym_index(); in dynsym_index()
2147 gold_assert(sym < this->local_values_.size()); in local_symbol_input_shndx()
2148 return this->local_values_[sym].input_shndx(is_ordinary); in local_symbol_input_shndx()
2155 gold_assert(sym < this->local_values_.size()); in set_must_have_output_symtab_entry()
2156 this->local_values_[sym].set_must_have_output_symtab_entry(); in set_must_have_output_symtab_entry()
2163 gold_assert(sym < this->local_values_.size()); in set_needs_output_dynsym_entry()
2164 this->local_values_[sym].set_needs_output_dynsym_entry(); in set_needs_output_dynsym_entry()
2179 { return this->do_adjust_local_symbol(lv); } in adjust_local_symbol()
2212 { return this->is_deferred_layout_; } in is_deferred_layout()
2235 const Symbol_value<size>* symval = this->local_symbol(symndx); in do_local_symbol_value()
2236 return symval->value(this, addend); in do_local_symbol_value()
2247 { return this->local_symbol(symndx)->is_tls_symbol(); } in do_local_is_tls()
2252 { return this->local_symbol_count_; } in do_local_symbol_count()
2257 { return this->output_local_symbol_count_; } in do_output_local_symbol_count()
2262 { return this->local_symbol_offset_; } in do_local_symbol_offset()
2323 { return this->elf_file_.section_size(shndx); } in do_section_size()
2328 { return this->elf_file_.section_name(shndx); } in do_section_name()
2335 Object::Location loc(this->elf_file_.section_contents(shndx)); in do_section_contents()
2342 return this->get_view(loc.file_offset, *plen, true, cache); in do_section_contents()
2356 { return this->elf_file_.section_addr(shndx); } in do_section_address()
2361 { return this->elf_file_.section_type(shndx); } in do_section_type()
2366 { return this->elf_file_.section_link(shndx); } in do_section_link()
2371 { return this->elf_file_.section_info(shndx); } in do_section_info()
2376 { return this->elf_file_.section_addralign(shndx); } in do_section_addralign()
2389 { return &this->symbols_; } in do_get_global_symbols()
2396 shndx += this->elf_file_.large_shndx_offset(); in adjust_shndx()
2413 { return this->symtab_shndx_; } in symtab_shndx()
2418 { return &this->elf_file_; } in elf_file()
2423 { return &this->local_values_; } in local_values()
2459 { this->output_local_symbol_count_ = value; } in set_output_local_symbol_count()
2535 { this->do_relocate_sections(symtab, layout, pshdrs, of, pviews); } in relocate_sections()
2625 this->kept_comdat_sections_.insert(std::make_pair(shndx, kept)); in set_kept_comdat_section()
2635 this->kept_comdat_sections_.find(shndx); in get_kept_comdat_section()
2636 if (p == this->kept_comdat_sections_.end()) in get_kept_comdat_section()
2678 memcpy(this->shdr_data_, pshdr, shdr_size); in Deferred_layout()
2781 { return this->relobj_list_.begin(); } in relobj_begin()
2785 { return this->relobj_list_.end(); } in relobj_end()
2791 { return this->dynobj_list_.begin(); } in dynobj_begin()
2795 { return this->dynobj_list_.end(); } in dynobj_end()
2800 { return !this->dynobj_list_.empty(); } in any_dynamic()
2805 { return this->relobj_list_.size(); } in number_of_relobjs()
2810 { return this->relobj_list_.size() + this->dynobj_list_.size(); } in number_of_input_objects()