Searched refs:shdr (Results 1 – 2 of 2) sorted by relevance
922 const Elf_Shdr& shdr = section->header_; in MakeProgramHeaders() local923 if ((shdr.sh_flags & SHF_ALLOC) != 0 && shdr.sh_size != 0) { in MakeProgramHeaders()931 load.p_offset = shdr.sh_offset; in MakeProgramHeaders()932 load.p_vaddr = load.p_paddr = shdr.sh_addr; in MakeProgramHeaders()933 load.p_filesz = (shdr.sh_type != SHT_NOBITS ? shdr.sh_size : 0u); in MakeProgramHeaders()934 load.p_memsz = shdr.sh_size; in MakeProgramHeaders()935 load.p_align = shdr.sh_addralign; in MakeProgramHeaders()941 Elf_Word size = shdr.sh_offset + shdr.sh_size - prev.p_offset; in MakeProgramHeaders()946 CHECK_EQ(shdr.sh_addralign, (Elf_Word)kPageSize); in MakeProgramHeaders()952 const Elf_Shdr& shdr = section->header_; in MakeProgramHeaders() local[all …]
1343 Elf_Shdr* shdr = GetSectionHeader(i); in FindSectionByName() local1344 if (shdr == nullptr) { in FindSectionByName()1347 const char* sec_name = GetString(*shstrtab_sec, shdr->sh_name); in FindSectionByName()1352 return shdr; in FindSectionByName()1822 Elf64_Shdr *shdr = elf64_->FindSectionByName(section_name); in GetSectionOffsetAndSize() local1823 if (shdr == nullptr) { in GetSectionOffsetAndSize()1827 *offset = shdr->sh_offset; in GetSectionOffsetAndSize()1830 *size = shdr->sh_size; in GetSectionOffsetAndSize()1834 Elf32_Shdr *shdr = elf32_->FindSectionByName(section_name); in GetSectionOffsetAndSize() local1835 if (shdr == nullptr) { in GetSectionOffsetAndSize()[all …]