Lines Matching refs:elf

138   Elf* elf = elf_begin(fd_, ELF_C_RDWR, NULL);  in Load()  local
139 CHECK(elf); in Load()
141 if (elf_kind(elf) != ELF_K_ELF) { in Load()
146 auto elf_header = ELF::getehdr(elf); in Load()
167 auto elf_program_header = ELF::getphdr(elf); in Load()
183 elf_getshdrstrndx(elf, &string_index); in Load()
198 while ((section = elf_nextscn(elf, section)) != nullptr) { in Load()
200 std::string name = elf_strptr(elf, string_index, section_header->sh_name); in Load()
257 elf_ = elf; in Load()
282 static void AdjustSectionHeadersForHole(Elf* elf, in AdjustSectionHeadersForHole() argument
286 elf_getshdrstrndx(elf, &string_index); in AdjustSectionHeadersForHole()
289 while ((section = elf_nextscn(elf, section)) != NULL) { in AdjustSectionHeadersForHole()
291 std::string name = elf_strptr(elf, string_index, section_header->sh_name); in AdjustSectionHeadersForHole()
437 static void RewriteProgramHeadersForHole(Elf* elf, in RewriteProgramHeadersForHole() argument
440 const typename ELF::Ehdr* elf_header = ELF::getehdr(elf); in RewriteProgramHeadersForHole()
443 typename ELF::Phdr* elf_program_header = ELF::getphdr(elf); in RewriteProgramHeadersForHole()
467 static Elf_Scn* GetDynamicSection(Elf* elf) { in GetDynamicSection() argument
468 const typename ELF::Ehdr* elf_header = ELF::getehdr(elf); in GetDynamicSection()
471 const typename ELF::Phdr* elf_program_header = ELF::getphdr(elf); in GetDynamicSection()
488 while ((section = elf_nextscn(elf, section)) != NULL) { in GetDynamicSection()
580 void ElfFile<ELF>::ResizeSection(Elf* elf, Elf_Scn* section, size_t new_size, in ResizeSection() argument
585 elf_getshdrstrndx(elf, &string_index); in ResizeSection()
587 std::string name = elf_strptr(elf, string_index, section_header->sh_name); in ResizeSection()
629 typename ELF::Ehdr* elf_header = ELF::getehdr(elf); in ResizeSection()
633 AdjustSectionHeadersForHole<ELF>(elf, hole_start, hole_size); in ResizeSection()
637 RewriteProgramHeadersForHole<ELF>(elf, hole_start, hole_size); in ResizeSection()
639 Elf_Scn* dynamic_section = GetDynamicSection<ELF>(elf); in ResizeSection()