Lines Matching refs:off
1154 unsigned int reloc_shndx, unsigned int, off_t* off) in layout() argument
1156 *off = 0; in layout()
1256 *off = os->add_input_section(this, object, shndx, name, shdr, reloc_shndx, in layout()
1412 off_t* off) in layout_eh_frame() argument
1452 *off = -1; in layout_eh_frame()
1470 *off = os->add_input_section(this, object, shndx, ".eh_frame", shdr, in layout_eh_frame()
2567 off_t off; in relaxation_loop_body() local
2569 off = this->set_segment_offsets(target, load_seg, pshndx); in relaxation_loop_body()
2571 off = this->set_relocatable_section_offsets(file_header, pshndx); in relaxation_loop_body()
2583 return off; in relaxation_loop_body()
2762 off_t off; in finalize() local
2773 off = this->relaxation_loop_body(pass, target, symtab, &load_seg, in finalize()
2854 off = this->set_section_offsets(off, BEFORE_INPUT_SECTIONS_PASS); in finalize()
2861 this->create_symtab_sections(input_objects, symtab, shndx, &off); in finalize()
2881 off = this->set_section_offsets(off, BEFORE_INPUT_SECTIONS_PASS); in finalize()
2888 this->create_shdrs(shstrtab_section, &off); in finalize()
2894 off = this->set_section_offsets(off, in finalize()
2896 off = in finalize()
2897 this->set_section_offsets(off, in finalize()
2907 this->output_file_size_ = off; in finalize()
2909 return off; in finalize()
3446 align_file_offset(off_t off, uint64_t addr, uint64_t abi_pagesize) in align_file_offset() argument
3448 uint64_t unsigned_off = off; in align_file_offset()
3495 off_t off = 0; in set_segment_offsets() local
3506 off = align_address(off, (*p)->addralign()); in set_segment_offsets()
3507 (*p)->set_address_and_file_offset(0, off); in set_segment_offsets()
3508 off += (*p)->data_size(); in set_segment_offsets()
3536 if (off == 0) in set_segment_offsets()
3540 off = 0; in set_segment_offsets()
3589 uint64_t orig_off = off; in set_segment_offsets()
3638 off = orig_off + ((addr - orig_addr) & (abi_pagesize - 1)); in set_segment_offsets()
3647 off = align_file_offset(off, addr, in set_segment_offsets()
3662 off = align_address(off, (*p)->maximum_alignment()); in set_segment_offsets()
3671 &off, pshndx); in set_segment_offsets()
3701 off = orig_off + ((addr - orig_addr) & (abi_pagesize - 1)); in set_segment_offsets()
3702 off = align_file_offset(off, addr, abi_pagesize); in set_segment_offsets()
3713 &off, pshndx); in set_segment_offsets()
3744 off = align_file_offset(off, 0, target->abi_pagesize()); in set_segment_offsets()
3765 &off, in set_segment_offsets()
3790 return off; in set_segment_offsets()
3801 off_t off = 0; in set_relocatable_section_offsets() local
3804 off += file_header->data_size(); in set_relocatable_section_offsets()
3816 off = align_address(off, (*p)->addralign()); in set_relocatable_section_offsets()
3821 (*p)->set_file_offset(off); in set_relocatable_section_offsets()
3824 off += (*p)->data_size(); in set_relocatable_section_offsets()
3830 return off; in set_relocatable_section_offsets()
3837 Layout::set_section_offsets(off_t off, Layout::Section_offset_pass pass) in set_section_offsets() argument
3839 off_t startoff = off; in set_section_offsets()
3840 off_t maxoff = off; in set_section_offsets()
3875 off = align_address(off, (*p)->addralign()); in set_section_offsets()
3876 (*p)->set_file_offset(off); in set_section_offsets()
3884 off = this->allocate(current_size, (*p)->addralign(), startoff); in set_section_offsets()
3885 if (off == -1) in set_section_offsets()
3894 (*p)->set_file_offset(off); in set_section_offsets()
3905 static_cast<long>(off), in set_section_offsets()
3911 off += (*p)->data_size(); in set_section_offsets()
3912 if (off > maxoff) in set_section_offsets()
3913 maxoff = off; in set_section_offsets()
4034 off_t off = 0; in create_symtab_sections() local
4038 off += symsize; in create_symtab_sections()
4052 off += symsize; in create_symtab_sections()
4061 off, symtab); in create_symtab_sections()
4062 off += (index - local_symbol_index) * symsize; in create_symtab_sections()
4067 gold_assert(static_cast<off_t>(local_symcount * symsize) == off); in create_symtab_sections()
4088 off_t global_off = off; in create_symtab_sections()
4089 off = symtab->finalize(off, dynoff, dyn_global_index, dyncount, in create_symtab_sections()
4103 Output_section_data* pos = new Output_data_fixed_space(off, align, in create_symtab_sections()
4123 size_t symcount = off / symsize; in create_symtab_sections()
4154 symtab_off = this->allocate(off, align, *poff); in create_symtab_sections()
4155 if (off == -1) in create_symtab_sections()
4161 static_cast<long>(off)); in create_symtab_sections()
4171 if (symtab_off + off > *poff) in create_symtab_sections()
4172 *poff = symtab_off + off; in create_symtab_sections()
4219 off_t off; in create_shdrs() local
4221 off = align_address(*poff, oshdrs->addralign()); in create_shdrs()
4225 off = this->allocate(oshdrs->data_size(), oshdrs->addralign(), *poff); in create_shdrs()
4226 if (off == -1) in create_shdrs()
4231 static_cast<long>(off), in create_shdrs()
4232 static_cast<long>(off + oshdrs->data_size())); in create_shdrs()
4234 oshdrs->set_address_and_file_offset(0, off); in create_shdrs()
4235 off += oshdrs->data_size(); in create_shdrs()
4236 if (off > *poff) in create_shdrs()
4237 *poff = off; in create_shdrs()
4488 off_t off = dynsym->offset(); in assign_local_dynsym_offsets() local
4491 off += dynsym->entsize(); in assign_local_dynsym_offsets()
4497 unsigned int count = (*p)->set_local_dynsym_offset(off); in assign_local_dynsym_offsets()
4498 off += count * dynsym->entsize(); in assign_local_dynsym_offsets()
5378 off_t off = (symtab_section->offset() in write_data() local
5380 symtab->write_section_symbol(*p, this->symtab_xindex_, of, off); in write_data()
5395 off_t off = (dynsym_section->offset() in write_data() local
5397 symtab->write_section_symbol(*p, this->dynsym_xindex_, of, off); in write_data()
5427 off_t off = this->output_file_size_; in write_sections_after_input_sections() local
5428 off = this->set_section_offsets(off, POSTPROCESSING_SECTIONS_PASS); in write_sections_after_input_sections()
5431 off = in write_sections_after_input_sections()
5432 this->set_section_offsets(off, in write_sections_after_input_sections()
5435 if (off > this->output_file_size_) in write_sections_after_input_sections()
5437 of->resize(off); in write_sections_after_input_sections()
5438 this->output_file_size_ = off; in write_sections_after_input_sections()
5931 off_t* off);
5946 off_t* off);
5961 off_t* off);
5976 off_t* off);