Lines Matching refs:shdr
926 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()
957 const Elf_Shdr& shdr = section->header_; in MakeProgramHeaders() local
958 if ((shdr.sh_flags & SHF_ALLOC) != 0 && shdr.sh_size != 0) { in MakeProgramHeaders()
965 phdr.p_offset = shdr.sh_offset; in MakeProgramHeaders()
966 phdr.p_vaddr = phdr.p_paddr = shdr.sh_addr; in MakeProgramHeaders()
967 phdr.p_filesz = phdr.p_memsz = shdr.sh_size; in MakeProgramHeaders()
968 phdr.p_align = shdr.sh_addralign; in MakeProgramHeaders()