Home
last modified time | relevance | path

Searched refs:shndx (Results 1 – 25 of 96) sorted by relevance

1234

/toolchain/binutils/binutils-2.25/elfcpp/
Delfcpp_file.h196 section_header(unsigned int shndx) in section_header() argument
198 return typename File::Location(this->section_header_offset(shndx), in section_header()
204 section_name(unsigned int shndx) const;
208 section_contents(unsigned int shndx);
212 section_size(unsigned int shndx);
216 section_flags(unsigned int shndx);
220 section_addr(unsigned int shndx);
224 section_type(unsigned int shndx);
228 section_link(unsigned int shndx);
232 section_info(unsigned int shndx);
[all …]
/toolchain/binutils/binutils-2.25/gold/
Dmerge.cc49 Object_merge_map::get_input_merge_map(unsigned int shndx) in get_input_merge_map() argument
51 gold_assert(shndx != -1U); in get_input_merge_map()
52 if (shndx == this->first_shnum_) in get_input_merge_map()
54 if (shndx == this->second_shnum_) in get_input_merge_map()
56 Section_merge_maps::const_iterator p = this->section_merge_maps_.find(shndx); in get_input_merge_map()
66 unsigned int shndx) in get_or_make_input_merge_map() argument
68 Input_merge_map* map = this->get_input_merge_map(shndx); in get_or_make_input_merge_map()
80 this->first_shnum_ = shndx; in get_or_make_input_merge_map()
86 this->second_shnum_ = shndx; in get_or_make_input_merge_map()
93 this->section_merge_maps_[shndx] = new_map; in get_or_make_input_merge_map()
[all …]
Dobject.h193 adjust_shndx(unsigned int shndx) in adjust_shndx() argument
195 if (shndx >= elfcpp::SHN_LORESERVE) in adjust_shndx()
196 shndx += this->large_shndx_offset_; in adjust_shndx()
197 return shndx; in adjust_shndx()
494 section_contents(unsigned int shndx, section_size_type* plen, bool cache);
503 adjust_sym_shndx(unsigned int symndx, unsigned int shndx, bool* is_ordinary) in adjust_sym_shndx() argument
505 if (shndx < elfcpp::SHN_LORESERVE) in adjust_sym_shndx()
507 else if (shndx == elfcpp::SHN_XINDEX) in adjust_sym_shndx()
511 shndx = this->xindex_->sym_xindex_to_shndx(this, symndx); in adjust_sym_shndx()
516 return shndx; in adjust_sym_shndx()
[all …]
Ddynobj.h201 do_section_size(unsigned int shndx) in do_section_size() argument
202 { return this->elf_file_.section_size(shndx); } in do_section_size()
206 do_section_name(unsigned int shndx) const in do_section_name() argument
207 { return this->elf_file_.section_name(shndx); } in do_section_name()
212 do_section_contents(unsigned int shndx, section_size_type* plen, in do_section_contents() argument
215 Location loc(this->elf_file_.section_contents(shndx)); in do_section_contents()
227 do_section_flags(unsigned int shndx) in do_section_flags() argument
228 { return this->elf_file_.section_flags(shndx); } in do_section_flags()
237 do_section_address(unsigned int shndx) in do_section_address() argument
238 { return this->elf_file_.section_addr(shndx); } in do_section_address()
[all …]
Dmerge.h60 add_mapping(const Merge_map*, unsigned int shndx, section_offset_type offset,
71 get_output_offset(const Merge_map*, unsigned int shndx,
77 is_merge_section_for(const Merge_map*, unsigned int shndx);
85 unsigned int shndx,
153 get_input_merge_map(unsigned int shndx);
158 get_or_make_input_merge_map(const Merge_map* merge_map, unsigned int shndx);
189 add_mapping(Relobj* object, unsigned int shndx,
201 get_output_offset(const Relobj* object, unsigned int shndx,
209 is_merge_section_for(const Relobj* object, unsigned int shndx) const;
284 do_output_offset(const Relobj* object, unsigned int shndx,
[all …]
Ddwarf_reader.cc470 unsigned int shndx = in lookup_reloc() local
472 if (shndx == 0) in lookup_reloc()
478 return shndx; in lookup_reloc()
490 unsigned int shndx = 0; in read_section() local
508 shndx = i; in read_section()
513 shndx = i; in read_section()
518 if (shndx == 0) in read_section()
521 this->buffer_ = object->decompressed_section_contents(shndx, in read_section()
540 && object->section_info(i) == shndx) in read_section()
707 attr_value.aux.shndx = 0; in read_attributes()
[all …]
Doutput.h179 set_out_shndx(unsigned int shndx) in set_out_shndx() argument
180 { this->do_set_out_shndx(shndx); } in set_out_shndx()
663 add_input_section(Relobj* object, unsigned int shndx) in add_input_section() argument
664 { return this->do_add_input_section(object, shndx); } in add_input_section()
673 output_offset(const Relobj* object, unsigned int shndx, in output_offset() argument
676 { return this->do_output_offset(object, shndx, offset, poutput); } in output_offset()
682 is_merge_section_for(const Relobj* object, unsigned int shndx) const in is_merge_section_for() argument
683 { return this->do_is_merge_section_for(object, shndx); } in is_merge_section_for()
1037 unsigned int shndx, Address address, bool is_relative,
1050 unsigned int shndx, Address address, bool is_relative,
[all …]
Dmapfile.cc206 unsigned int shndx) in print_input_section_symbols() argument
216 && sym->shndx(&is_ordinary) == shndx in print_input_section_symbols()
236 Mapfile::print_input_section(Relobj* relobj, unsigned int shndx) in print_input_section() argument
240 std::string name = relobj->section_name(shndx); in print_input_section()
247 if (!relobj->is_section_included(shndx)) in print_input_section()
254 os = relobj->output_section(shndx); in print_input_section()
255 addr = relobj->output_section_offset(shndx); in print_input_section()
262 if (!relobj->section_is_compressed(shndx, &size)) in print_input_section()
263 size = relobj->section_size(shndx); in print_input_section()
281 this->print_input_section_symbols(sized_relobj, shndx); in print_input_section()
[all …]
Dcopy-relocs.cc43 unsigned int shndx, in copy_reloc() argument
48 if (this->need_copy_reloc(sym, object, shndx)) in copy_reloc()
54 this->save(sym, object, shndx, output_section, rel); in copy_reloc()
66 unsigned int shndx) const in need_copy_reloc()
78 if ((object->section_flags(shndx) & elfcpp::SHF_WRITE) == 0) in need_copy_reloc()
126 unsigned int shndx = sym->shndx(&is_ordinary); in make_copy_reloc() local
137 addralign = obj->section_addralign(shndx); in make_copy_reloc()
177 unsigned int shndx, in save() argument
184 this->entries_.push_back(Copy_reloc_entry(sym, reloc_type, object, shndx, in save()
Dobject.cc130 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()
[all …]
Dehframe.h167 Fde(Relobj* object, unsigned int shndx, section_offset_type input_offset, in Fde() argument
172 this->u_.from_object.shndx = shndx; in Fde()
198 merge_map->add_mapping(this->object_, this->u_.from_object.shndx, in add_mapping()
230 unsigned int shndx; member
269 Cie(Relobj* object, unsigned int shndx, section_offset_type input_offset, in Cie() argument
273 shndx_(shndx), in Cie()
390 unsigned int shndx, unsigned int reloc_shndx,
413 do_output_offset(const Relobj*, unsigned int shndx,
419 do_is_merge_section_for(const Relobj*, unsigned int shndx) const;
465 unsigned int shndx,
[all …]
Dtarget-reloc.h81 unsigned int shndx = lsym.get_st_shndx(); in scan_relocs() local
83 shndx = object->adjust_sym_shndx(r_sym, shndx, &is_ordinary); in scan_relocs()
98 && shndx != elfcpp::SHN_UNDEF in scan_relocs()
99 && !object->is_section_included(shndx) in scan_relocs()
100 && !symtab->is_section_folded(object, shndx)); in scan_relocs()
307 unsigned int shndx; in relocate_section() local
321 shndx = psymval->input_shndx(&is_ordinary); in relocate_section()
324 && shndx != elfcpp::SHN_UNDEF in relocate_section()
325 && !object->is_section_included(shndx) in relocate_section()
326 && !relinfo->symtab->is_section_folded(object, shndx)); in relocate_section()
[all …]
Dsymtab.cc122 this->u_.from_object.shndx = st_shndx; in init_base_object()
314 Symbol::is_common_shndx(unsigned int shndx) in is_common_shndx() argument
316 return (shndx == elfcpp::SHN_COMMON in is_common_shndx()
317 || shndx == parameters->target().small_common_shndx() in is_common_shndx()
318 || shndx == parameters->target().large_common_shndx()); in is_common_shndx()
359 unsigned int shndx = this->shndx(&is_ordinary); in should_add_dynsym_entry() local
360 if (is_ordinary && shndx != elfcpp::SHN_UNDEF in should_add_dynsym_entry()
361 && !relobj->is_section_included(shndx) in should_add_dynsym_entry()
362 && !symtab->is_section_folded(relobj, shndx)) in should_add_dynsym_entry()
488 unsigned int shndx = this->u_.from_object.shndx; in output_section() local
[all …]
Ddwp.cc165 section_type(unsigned int shndx) in section_type() argument
166 { return this->obj_->section_type(shndx); } in section_type()
170 section_name(unsigned int shndx) in section_name() argument
171 { return this->obj_->section_name(shndx); } in section_name()
177 section_contents(unsigned int shndx, section_size_type* plen, bool* is_new) in section_contents() argument
178 { return this->obj_->decompressed_section_contents(shndx, plen, is_new); } in section_contents()
207 copy_section(Dwp_output_file* output_file, unsigned int shndx,
270 do_section_type(unsigned int shndx) in do_section_type() argument
271 { return this->elf_file_.section_type(shndx); } in do_section_type()
275 do_section_name(unsigned int shndx) const in do_section_name()
[all …]
Dicf.h98 unfold_section(Object* obj, unsigned int shndx);
103 is_section_folded(Object* obj, unsigned int shndx);
108 section_has_function_pointers(Object* obj, unsigned int shndx) in section_has_function_pointers() argument
110 return (this->fptr_section_id_.find(Section_id(obj, shndx)) in section_has_function_pointers()
117 set_section_has_function_pointers(Object* obj, unsigned int shndx) in set_section_has_function_pointers() argument
119 this->fptr_section_id_.insert(Section_id(obj, shndx)); in set_section_has_function_pointers()
Ddwarf_reader.h304 : shndx(a_shndx), start(a_start), end(a_end) in Range()
307 unsigned int shndx; member
317 add(unsigned int shndx, off_t start, off_t end) in add() argument
318 { this->range_list_.push_back(Range(shndx, start, end)); } in add()
490 unsigned int shndx; member
585 ref_attribute(unsigned int attr, unsigned int* shndx);
589 address_attribute(unsigned int attr, unsigned int* shndx);
695 unsigned int shndx, in Dwarf_info_reader() argument
699 symtab_size_(symtab_size), shndx_(shndx), reloc_shndx_(reloc_shndx), in Dwarf_info_reader()
965 addr2line(unsigned int shndx, off_t offset, in addr2line() argument
[all …]
Dcopy-relocs.h70 unsigned int shndx, Output_section* output_section,
101 unsigned int shndx, in Copy_reloc_entry()
105 shndx_(shndx), output_section_(output_section), in Copy_reloc_entry()
134 unsigned int shndx) const;
138 save(Symbol*, Sized_relobj_file<size, big_endian>*, unsigned int shndx,
Dplugin.h497 do_section_size(unsigned int shndx);
501 do_section_name(unsigned int shndx) const;
505 do_section_contents(unsigned int shndx, section_size_type* plen,
510 do_section_flags(unsigned int shndx);
514 do_section_entsize(unsigned int shndx);
518 do_section_address(unsigned int shndx);
522 do_section_type(unsigned int shndx);
526 do_section_link(unsigned int shndx);
530 do_section_info(unsigned int shndx);
534 do_section_addralign(unsigned int shndx);
Dincremental.h376 add_input_section(unsigned int shndx, Stringpool::Key name_key, off_t sh_size) in add_input_section() argument
377 { this->sections_.push_back(Input_section(shndx, name_key, sh_size)); } in add_input_section()
438 Input_section(unsigned int shndx, Stringpool::Key name_key, off_t sh_size) in Input_section()
439 : shndx_(shndx), name_key_(name_key), sh_size_(sh_size) in Input_section()
592 report_input_section(Object* obj, unsigned int shndx, const char* name,
727 shndx() const in shndx() function
1623 output_section(unsigned int shndx) in output_section() argument
1624 { return this->section_map_[shndx]; } in output_section()
1900 do_section_size(unsigned int shndx);
1904 do_section_name(unsigned int shndx) const;
[all …]
Dehframe.cc577 unsigned int shndx, in add_ehframe_input_section() argument
583 const unsigned char* pcontents = object->section_contents(shndx, in add_ehframe_input_section()
600 shndx, reloc_shndx, in add_ehframe_input_section()
640 unsigned int shndx, in do_add_ehframe_input_section() argument
697 if (!this->read_cie(object, shndx, symbols, symbols_size, in do_add_ehframe_input_section()
706 if (!this->read_fde(object, shndx, symbols, symbols_size, in do_add_ehframe_input_section()
722 unsigned int shndx, in read_cie() argument
925 Cie cie(object, shndx, (pcie - 8) - pcontents, fde_encoding, in read_cie()
961 this->merge_map_.add_mapping(object, shndx, (pcie - 8) - pcontents, in read_cie()
976 unsigned int shndx, in read_fde() argument
[all …]
Doutput.cc305 unsigned int shndx = 1; in do_sized_write() local
315 &shndx); in do_sized_write()
329 gold_assert(shndx == (*p)->out_shndx()); in do_sized_write()
333 ++shndx; in do_sized_write()
347 gold_assert(shndx == (*p)->out_shndx()); in do_sized_write()
351 ++shndx; in do_sized_write()
734 unsigned int shndx, in Output_reloc() argument
741 is_section_symbol_(false), use_plt_offset_(use_plt_offset), shndx_(shndx) in Output_reloc()
743 gold_assert(shndx != INVALID_CODE); in Output_reloc()
785 unsigned int shndx, in Output_reloc() argument
[all …]
Dgdb-index.cc183 unsigned int shndx, in Gdb_index_info_reader() argument
187 : Dwarf_info_reader(is_type_unit, object, symbols, symbols_size, shndx, in Gdb_index_info_reader()
820 unsigned int shndx; in record_cu_ranges() local
823 off_t ranges_offset = die->ref_attribute(elfcpp::DW_AT_ranges, &shndx); in record_cu_ranges()
826 Dwarf_range_list* ranges = this->read_range_list(shndx, ranges_offset); in record_cu_ranges()
833 off_t low_pc = die->address_attribute(elfcpp::DW_AT_low_pc, &shndx); in record_cu_ranges()
839 shndx2 = shndx; in record_cu_ranges()
843 if (shndx != shndx2) in record_cu_ranges()
850 if (shndx == 0 || this->object()->is_section_included(shndx)) in record_cu_ranges()
853 ranges->add(shndx, low_pc, high_pc); in record_cu_ranges()
[all …]
Dincremental.cc592 unsigned int shndx = gsym.get_st_shndx(); in do_reserve_layout() local
593 if (shndx < 1 || shndx >= this->section_map_.size()) in do_reserve_layout()
595 Output_section* os = this->section_map_[shndx]; in do_reserve_layout()
1147 Incremental_inputs::report_input_section(Object* obj, unsigned int shndx, in report_input_section() argument
1157 this->current_object_entry_->add_input_section(shndx, key, sh_size); in report_input_section()
1588 unsigned int shndx = entry->get_input_section_index(i); in write_info_blocks() local
1589 index_map[shndx] = i + 1; in write_info_blocks()
1597 Output_section* os = obj->output_section(shndx); in write_info_blocks()
1601 out_offset = obj->output_section_offset(shndx); in write_info_blocks()
1623 unsigned int shndx = 0; in write_info_blocks() local
[all …]
Darm.cc680 shndx() const in shndx() function in __anon5653a9be0111::Cortex_a8_stub
705 unsigned int shndx, Arm_address source_address, in Cortex_a8_stub() argument
707 : Stub(stub_template), relobj_(relobj), shndx_(shndx), in Cortex_a8_stub()
834 make_cortex_a8_stub(Stub_type stub_type, Relobj* relobj, unsigned int shndx, in make_cortex_a8_stub() argument
840 return new Cortex_a8_stub(this->stub_templates_[stub_type], relobj, shndx, in make_cortex_a8_stub()
1050 Arm_exidx_cantunwind(Relobj* relobj, unsigned int shndx) in Arm_exidx_cantunwind() argument
1051 : Output_section_data(8, 4, true), relobj_(relobj), shndx_(shndx) in Arm_exidx_cantunwind()
1061 shndx() const in shndx() function in __anon5653a9be0111::Arm_exidx_cantunwind
1154 Arm_input_section(Relobj* relobj, unsigned int shndx) in Arm_input_section() argument
1155 : Output_relaxed_input_section(relobj, shndx, 1), in Arm_input_section()
[all …]
/toolchain/binutils/binutils-2.25/gold/testsuite/
Dplugin_section_order.c128 unsigned int shndx; in claim_file_hook() local
143 for (shndx = 0; shndx < count; ++shndx) in claim_file_hook()
149 section.shndx = shndx; in claim_file_hook()
167 section_list[position].shndx = shndx; in claim_file_hook()

1234