Lines Matching refs:shdr
880 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()
911 const Elf_Shdr& shdr = section->header_; in MakeProgramHeaders() local
912 if ((shdr.sh_flags & SHF_ALLOC) != 0 && shdr.sh_size != 0) { in MakeProgramHeaders()
919 phdr.p_offset = shdr.sh_offset; in MakeProgramHeaders()
920 phdr.p_vaddr = phdr.p_paddr = shdr.sh_addr; in MakeProgramHeaders()
921 phdr.p_filesz = phdr.p_memsz = shdr.sh_size; in MakeProgramHeaders()
922 phdr.p_align = shdr.sh_addralign; in MakeProgramHeaders()