Lines Matching refs:elf_file
33 std::unique_ptr<ElfFile> elf_file(ElfFile::Open(file, true, false, error_msg)); in Strip() local
34 if (elf_file.get() == nullptr) { in Strip()
72 section_headers.reserve(elf_file->GetSectionHeaderNum()); in Strip()
75 Elf32_Shdr* string_section = elf_file->GetSectionNameStringSection(); in Strip()
77 for (Elf32_Word i = 0; i < elf_file->GetSectionHeaderNum(); i++) { in Strip()
78 Elf32_Shdr* sh = elf_file->GetSectionHeader(i); in Strip()
80 const char* name = elf_file->GetString(*string_section, sh->sh_name); in Strip()
99 CHECK(elf_file->GetSectionHeader(1) != nullptr); in Strip()
100 Elf32_Off offset = elf_file->GetSectionHeader(1)->sh_offset; in Strip()
103 Elf32_Shdr* old_sh = elf_file->GetSectionHeader(section_headers_original_indexes[i]); in Strip()
115 memmove(elf_file->Begin() + offset, in Strip()
116 elf_file->Begin() + old_sh->sh_offset, in Strip()
124 memcpy(elf_file->Begin() + offset, §ion_headers[0], section_headers_size_in_bytes); in Strip()
127 elf_file->GetHeader().e_shnum = section_headers.size(); in Strip()
128 elf_file->GetHeader().e_shoff = shoff; in Strip()