Lines Matching full:shndx
194 adjust_shndx(unsigned int shndx)
196 if (shndx >= elfcpp::SHN_LORESERVE)
197 shndx += this->large_shndx_offset_;
198 return shndx;
553 section_contents(unsigned int shndx, section_size_type* plen, bool cache);
556 // of the symbol and SHNDX is the symbol's section from
562 adjust_sym_shndx(unsigned int symndx, unsigned int shndx, bool* is_ordinary)
564 if (shndx < elfcpp::SHN_LORESERVE)
566 else if (shndx == elfcpp::SHN_XINDEX)
570 shndx = this->xindex_->sym_xindex_to_shndx(this, symndx);
575 return shndx;
580 section_size(unsigned int shndx)
581 { return this->do_section_size(shndx); }
585 section_name(unsigned int shndx) const
586 { return this->do_section_name(shndx); }
590 section_flags(unsigned int shndx)
591 { return this->do_section_flags(shndx); }
595 section_entsize(unsigned int shndx)
596 { return this->do_section_entsize(shndx); }
600 section_address(unsigned int shndx)
601 { return this->do_section_address(shndx); }
605 section_type(unsigned int shndx)
606 { return this->do_section_type(shndx); }
610 section_link(unsigned int shndx)
611 { return this->do_section_link(shndx); }
615 section_info(unsigned int shndx)
616 { return this->do_section_info(shndx); }
620 section_addralign(unsigned int shndx)
621 { return this->do_section_addralign(shndx); }
625 output_section(unsigned int shndx) const
626 { return this->do_output_section(shndx); }
632 output_section_address(unsigned int shndx)
633 { return this->do_output_section_address(shndx); }
639 output_section_offset(unsigned int shndx) const
640 { return this->do_output_section_offset(shndx); }
809 section_is_compressed(unsigned int shndx,
815 this->compressed_sections_->find(shndx);
829 decompressed_section_contents(unsigned int shndx, section_size_type* plen,
847 // Return the output view for section SHNDX.
849 get_output_view(unsigned int shndx, section_size_type* plen) const
850 { return this->do_get_output_view(shndx, plen); }
909 do_section_contents(unsigned int shndx, section_size_type* plen,
914 do_section_size(unsigned int shndx) = 0;
918 do_section_name(unsigned int shndx) const = 0;
922 do_section_flags(unsigned int shndx) = 0;
926 do_section_entsize(unsigned int shndx) = 0;
930 do_section_address(unsigned int shndx) = 0;
934 do_section_type(unsigned int shndx) = 0;
938 do_section_link(unsigned int shndx) = 0;
942 do_section_info(unsigned int shndx) = 0;
946 do_section_addralign(unsigned int shndx) = 0;
1007 // for the warning to be issued. SHNDX is the section index.
1010 handle_gnu_warning_section(const char* name, unsigned int shndx,
1141 is_output_section_offset_invalid(unsigned int shndx) const = 0;
1284 is_section_included(unsigned int shndx) const
1286 gold_assert(shndx < this->output_sections_.size());
1287 return this->output_sections_[shndx] != NULL;
1290 // The output section of the input section with index SHNDX.
1294 set_output_section(unsigned int shndx, Output_section* os)
1296 gold_assert(shndx < this->output_sections_.size());
1297 this->output_sections_[shndx] = os;
1302 set_section_offset(unsigned int shndx, uint64_t off)
1303 { this->do_set_section_offset(shndx, off); }
1318 initialize_input_to_output_map(unsigned int shndx,
1325 unsigned int shndx, section_offset_type offset,
1330 merge_output_offset(unsigned int shndx, section_offset_type offset,
1334 find_merge_section(unsigned int shndx) const;
1462 do_set_section_offset(unsigned int shndx, uint64_t off) = 0;
1473 do_output_section(unsigned int shndx) const
1475 gold_assert(shndx < this->output_sections_.size());
1476 return this->output_sections_[shndx];
2021 // Checks if the offset of input section SHNDX within its output
2024 is_output_section_offset_invalid(unsigned int shndx) const
2025 { return this->get_output_section_offset(shndx) == invalid_address; }
2027 // Get the offset of input section SHNDX within its output section.
2032 get_output_section_offset(unsigned int shndx) const
2034 gold_assert(shndx < this->section_offsets_.size());
2035 return this->section_offsets_[shndx];
2058 do_output_section_address(unsigned int shndx);
2062 do_output_section_offset(unsigned int shndx) const
2064 Address off = this->get_output_section_offset(shndx);
2072 do_set_section_offset(unsigned int shndx, uint64_t off)
2074 gold_assert(shndx < this->section_offsets_.size());
2075 this->section_offsets_[shndx] =
2300 get_symbol_location_info(unsigned int shndx, off_t offset,
2307 map_to_kept_section(unsigned int shndx, bool* found) const;
2437 do_section_size(unsigned int shndx)
2438 { return this->elf_file_.section_size(shndx); }
2442 do_section_name(unsigned int shndx) const
2443 { return this->elf_file_.section_name(shndx); }
2447 do_section_contents(unsigned int shndx, section_size_type* plen,
2450 Object::Location loc(this->elf_file_.section_contents(shndx));
2462 do_section_flags(unsigned int shndx);
2466 do_section_entsize(unsigned int shndx);
2470 do_section_address(unsigned int shndx)
2471 { return this->elf_file_.section_addr(shndx); }
2475 do_section_type(unsigned int shndx)
2476 { return this->elf_file_.section_type(shndx); }
2480 do_section_link(unsigned int shndx)
2481 { return this->elf_file_.section_link(shndx); }
2485 do_section_info(unsigned int shndx)
2486 { return this->elf_file_.section_info(shndx); }
2490 do_section_addralign(unsigned int shndx)
2491 { return this->elf_file_.section_addralign(shndx); }
2508 adjust_shndx(unsigned int shndx)
2510 if (shndx >= elfcpp::SHN_LORESERVE)
2511 shndx += this->elf_file_.large_shndx_offset();
2512 return shndx;
2601 : object(a_object), shndx(a_shndx)
2604 unsigned int shndx;
2637 layout_section(Layout* layout, unsigned int shndx, const char* name,
2647 unsigned int shndx, const typename This::Shdr&,
2717 unsigned int sh_type, unsigned int shndx,
2726 unsigned int shndx, const unsigned char* prelocs,
2734 find_functions(const unsigned char* pshdrs, unsigned int shndx,
2746 // Record a mapping from discarded section SHNDX to the corresponding
2749 set_kept_comdat_section(unsigned int shndx, Relobj* kept_object,
2753 this->kept_comdat_sections_.insert(std::make_pair(shndx, kept));
2757 // SHNDX. Return true if found.
2759 get_kept_comdat_section(unsigned int shndx, Relobj** kept_object,
2763 this->kept_comdat_sections_.find(shndx);
2767 *kept_shndx = p->second.shndx;
2800 Deferred_layout(unsigned int shndx, const char* name,
2803 : shndx_(shndx), name_(name), reloc_shndx_(reloc_shndx),