Home | History | Annotate | Download | only in compiler

Lines Matching full:elf_file

25 #include "elf_file.h"
31 UniquePtr<ElfFile> elf_file(ElfFile::Open(file, true, false));
32 CHECK(elf_file.get() != NULL);
68 section_headers.reserve(elf_file->GetSectionHeaderNum());
71 llvm::ELF::Elf32_Shdr& string_section = elf_file->GetSectionNameStringSection();
72 for (llvm::ELF::Elf32_Word i = 0; i < elf_file->GetSectionHeaderNum(); i++) {
73 llvm::ELF::Elf32_Shdr& sh = elf_file->GetSectionHeader(i);
74 const char* name = elf_file->GetString(string_section, sh.sh_name);
93 llvm::ELF::Elf32_Off offset = elf_file->GetSectionHeader(1).sh_offset;
96 llvm::ELF::Elf32_Shdr& old_sh = elf_file->GetSectionHeader(section_headers_original_indexes[i]);
107 memmove(elf_file->Begin() + offset,
108 elf_file->Begin() + old_sh.sh_offset,
116 memcpy(elf_file->Begin() + offset, &section_headers[0], section_headers_size_in_bytes);
119 elf_file->GetHeader().e_shnum = section_headers.size();
120 elf_file->GetHeader().e_shoff = shoff;