Lines Matching refs:offset
100 Elf32_Off offset = elf_file->GetSectionHeader(1)->sh_offset; in Strip() local
107 offset = RoundUp(offset, old_sh->sh_addralign); in Strip()
109 if (old_sh->sh_offset == offset) { in Strip()
111 offset += old_sh->sh_size; in Strip()
115 memmove(elf_file->Begin() + offset, in Strip()
118 new_sh.sh_offset = offset; in Strip()
119 offset += old_sh->sh_size; in Strip()
122 Elf32_Off shoff = offset; in Strip()
124 memcpy(elf_file->Begin() + offset, §ion_headers[0], section_headers_size_in_bytes); in Strip()
125 offset += section_headers_size_in_bytes; in Strip()
129 int result = ftruncate(file->Fd(), offset); in Strip()