Home
last modified time | relevance | path

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

/art/libelffile/elf/
Delf_builder.h880 const Elf_Shdr& shdr = section->header_; in MakeProgramHeaders() local
881 if ((shdr.sh_flags & SHF_ALLOC) != 0 && shdr.sh_size != 0) { in MakeProgramHeaders()
882 DCHECK(shdr.sh_addr != 0u) << "Allocate virtual memory for the section"; in MakeProgramHeaders()
890 load.p_offset = shdr.sh_offset; in MakeProgramHeaders()
891 load.p_vaddr = load.p_paddr = shdr.sh_addr; in MakeProgramHeaders()
892 load.p_filesz = (shdr.sh_type != SHT_NOBITS ? shdr.sh_size : 0u); in MakeProgramHeaders()
893 load.p_memsz = shdr.sh_size; in MakeProgramHeaders()
894 load.p_align = shdr.sh_addralign; in MakeProgramHeaders()
900 Elf_Word size = shdr.sh_offset + shdr.sh_size - prev.p_offset; in MakeProgramHeaders()
905 CHECK_EQ(shdr.sh_addralign, (Elf_Word)kPageSize); in MakeProgramHeaders()
[all …]
/art/runtime/
Delf_file.cc1364 Elf_Shdr* shdr = GetSectionHeader(i); in FindSectionByName() local
1365 if (shdr == nullptr) { in FindSectionByName()
1368 const char* sec_name = GetString(*shstrtab_sec, shdr->sh_name); in FindSectionByName()
1373 return shdr; in FindSectionByName()
1844 Elf64_Shdr *shdr = elf64_->FindSectionByName(section_name); in GetSectionOffsetAndSize() local
1845 if (shdr == nullptr) { in GetSectionOffsetAndSize()
1849 *offset = shdr->sh_offset; in GetSectionOffsetAndSize()
1852 *size = shdr->sh_size; in GetSectionOffsetAndSize()
1856 Elf32_Shdr *shdr = elf32_->FindSectionByName(section_name); in GetSectionOffsetAndSize() local
1857 if (shdr == nullptr) { in GetSectionOffsetAndSize()
[all …]