Home
last modified time | relevance | path

Searched refs:shdr (Results 1 – 2 of 2) sorted by relevance

/art/libelffile/elf/
Delf_builder.h926 const Elf_Shdr& shdr = section->header_; in MakeProgramHeaders() local
927 if ((shdr.sh_flags & SHF_ALLOC) != 0 && shdr.sh_size != 0) { in MakeProgramHeaders()
928 DCHECK(shdr.sh_addr != 0u) << "Allocate virtual memory for the section"; in MakeProgramHeaders()
936 load.p_offset = shdr.sh_offset; in MakeProgramHeaders()
937 load.p_vaddr = load.p_paddr = shdr.sh_addr; in MakeProgramHeaders()
938 load.p_filesz = (shdr.sh_type != SHT_NOBITS ? shdr.sh_size : 0u); in MakeProgramHeaders()
939 load.p_memsz = shdr.sh_size; in MakeProgramHeaders()
940 load.p_align = shdr.sh_addralign; in MakeProgramHeaders()
946 Elf_Word size = shdr.sh_offset + shdr.sh_size - prev.p_offset; in MakeProgramHeaders()
951 CHECK_EQ(shdr.sh_addralign, (Elf_Word)kElfSegmentAlignment); in MakeProgramHeaders()
[all …]
/art/runtime/oat/
Delf_file.cc1371 Elf_Shdr* shdr = GetSectionHeader(i); in FindSectionByName() local
1372 if (shdr == nullptr) { in FindSectionByName()
1375 const char* sec_name = GetString(*shstrtab_sec, shdr->sh_name); in FindSectionByName()
1380 return shdr; in FindSectionByName()
1643 Elf64_Shdr *shdr = elf64_->FindSectionByName(section_name); in GetSectionOffsetAndSize() local
1644 if (shdr == nullptr) { in GetSectionOffsetAndSize()
1648 *offset = shdr->sh_offset; in GetSectionOffsetAndSize()
1651 *size = shdr->sh_size; in GetSectionOffsetAndSize()
1655 Elf32_Shdr *shdr = elf32_->FindSectionByName(section_name); in GetSectionOffsetAndSize() local
1656 if (shdr == nullptr) { in GetSectionOffsetAndSize()
[all …]