Lines Matching refs:shndx
122 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
489 if (shndx != elfcpp::SHN_UNDEF && this->is_ordinary_shndx_) in output_section()
494 return relobj->output_section(shndx); in output_section()
588 Symbol_table::is_section_folded(Object* obj, unsigned int shndx) const in is_section_folded()
591 && this->icf_->is_section_folded(obj, shndx)); in is_section_folded()
652 unsigned int shndx = sym->shndx(&is_ordinary); in gc_mark_symbol() local
653 if (is_ordinary && shndx != elfcpp::SHN_UNDEF) in gc_mark_symbol()
656 this->gc_->worklist().push(Section_id(sym->object(), shndx)); in gc_mark_symbol()
737 unsigned int shndx = from->shndx(&is_ordinary); in resolve() local
738 this->resolve(to, esym.sym(), shndx, is_ordinary, shndx, from->object(), in resolve()
1622 unsigned int s1_shndx = s1->shndx(&is_ordinary); in operator ()()
1624 unsigned int s2_shndx = s2->shndx(&is_ordinary); in operator ()()
1672 if ((*q)->shndx(&dummy) != from_sym->shndx(&dummy) in record_weak_aliases()
2620 unsigned int shndx = sym->shndx(&is_ordinary); in compute_final_value() local
2623 && shndx != elfcpp::SHN_ABS in compute_final_value()
2624 && !Symbol::is_common_shndx(shndx)) in compute_final_value()
2634 shndx = elfcpp::SHN_UNDEF; in compute_final_value()
2639 shndx = elfcpp::SHN_UNDEF; in compute_final_value()
2641 else if (shndx == elfcpp::SHN_UNDEF) in compute_final_value()
2644 && (shndx == elfcpp::SHN_ABS in compute_final_value()
2645 || Symbol::is_common_shndx(shndx))) in compute_final_value()
2650 Output_section* os = relobj->output_section(shndx); in compute_final_value()
2652 if (this->is_section_folded(relobj, shndx)) in compute_final_value()
2657 shndx); in compute_final_value()
2666 shndx = folded_shndx; in compute_final_value()
2670 uint64_t secoff64 = relobj->output_section_offset(shndx); in compute_final_value()
2685 value = os->output_address(relobj, shndx, sym->value()); in compute_final_value()
2799 unsigned int shndx = sym->shndx(&is_ordinary); in sized_finalize_symbol() local
2801 sym->demangled_name().c_str(), shndx); in sized_finalize_symbol()
2918 unsigned int shndx; in sized_write_globals() local
2940 unsigned int in_shndx = sym->shndx(&is_ordinary); in sized_write_globals()
2948 shndx = in_shndx; in sized_write_globals()
2957 shndx = elfcpp::SHN_UNDEF; in sized_write_globals()
2964 shndx = elfcpp::SHN_UNDEF; in sized_write_globals()
2969 shndx = in_shndx; in sized_write_globals()
2988 shndx = os->out_shndx(); in sized_write_globals()
2990 if (shndx >= elfcpp::SHN_LORESERVE) in sized_write_globals()
2993 symtab_xindex->add(sym_index, shndx); in sized_write_globals()
2995 dynsym_xindex->add(dynsym_index, shndx); in sized_write_globals()
2996 shndx = elfcpp::SHN_XINDEX; in sized_write_globals()
3012 shndx = od->out_shndx(); in sized_write_globals()
3013 if (shndx >= elfcpp::SHN_LORESERVE) in sized_write_globals()
3016 symtab_xindex->add(sym_index, shndx); in sized_write_globals()
3018 dynsym_xindex->add(dynsym_index, shndx); in sized_write_globals()
3019 shndx = elfcpp::SHN_XINDEX; in sized_write_globals()
3030 shndx = elfcpp::SHN_ABS; in sized_write_globals()
3034 shndx = elfcpp::SHN_ABS; in sized_write_globals()
3038 shndx = elfcpp::SHN_UNDEF; in sized_write_globals()
3050 this->sized_write_symbol<size, big_endian>(sym, sym_value, shndx, in sized_write_globals()
3059 this->sized_write_symbol<size, big_endian>(sym, dynsym_value, shndx, in sized_write_globals()
3079 unsigned int shndx, in sized_write_symbol() argument
3091 if (shndx == elfcpp::SHN_UNDEF && sym->is_from_dynobj()) in sized_write_symbol()
3106 osym.put_st_shndx(shndx); in sized_write_symbol()
3129 && sym->shndx(&dummy) == elfcpp::SHN_UNDEF in warn_about_undefined_dynobj_symbol()
3205 unsigned int shndx = os->out_shndx(); in sized_write_section_symbol() local
3206 if (shndx >= elfcpp::SHN_LORESERVE) in sized_write_section_symbol()
3208 symtab_xindex->add(os->symtab_index(), shndx); in sized_write_section_symbol()
3209 shndx = elfcpp::SHN_XINDEX; in sized_write_section_symbol()
3211 osym.put_st_shndx(shndx); in sized_write_section_symbol()
3286 code_loc.object, code_loc.shndx, code_loc.offset, 16, &result); in linenos_from_loc()