tag | line | file | source code |
phdr | 1115 | fs/binfmt_elf.c | struct elf_phdr phdr; |
phdr | 1121 | fs/binfmt_elf.c | phdr.p_type = PT_NOTE; |
phdr | 1122 | fs/binfmt_elf.c | phdr.p_offset = offset; |
phdr | 1123 | fs/binfmt_elf.c | phdr.p_vaddr = 0; |
phdr | 1124 | fs/binfmt_elf.c | phdr.p_paddr = 0; |
phdr | 1125 | fs/binfmt_elf.c | phdr.p_filesz = sz; |
phdr | 1126 | fs/binfmt_elf.c | phdr.p_memsz = 0; |
phdr | 1127 | fs/binfmt_elf.c | phdr.p_flags = 0; |
phdr | 1128 | fs/binfmt_elf.c | phdr.p_align = 0; |
phdr | 1130 | fs/binfmt_elf.c | offset += phdr.p_filesz; |
phdr | 1131 | fs/binfmt_elf.c | DUMP_WRITE(&phdr, sizeof(phdr)); |
phdr | 1140 | fs/binfmt_elf.c | struct elf_phdr phdr; |
phdr | 1149 | fs/binfmt_elf.c | phdr.p_type = PT_LOAD; |
phdr | 1150 | fs/binfmt_elf.c | phdr.p_offset = offset; |
phdr | 1151 | fs/binfmt_elf.c | phdr.p_vaddr = vma->vm_start; |
phdr | 1152 | fs/binfmt_elf.c | phdr.p_paddr = 0; |
phdr | 1153 | fs/binfmt_elf.c | phdr.p_filesz = sz; |
phdr | 1154 | fs/binfmt_elf.c | phdr.p_memsz = sz; |
phdr | 1156 | fs/binfmt_elf.c | phdr.p_flags = vma->vm_flags & VM_READ ? PF_R : 0; |
phdr | 1157 | fs/binfmt_elf.c | if (vma->vm_flags & VM_WRITE) phdr.p_flags |= PF_W; |
phdr | 1158 | fs/binfmt_elf.c | if (vma->vm_flags & VM_EXEC) phdr.p_flags |= PF_X; |
phdr | 1159 | fs/binfmt_elf.c | phdr.p_align = PAGE_SIZE; |
phdr | 1161 | fs/binfmt_elf.c | DUMP_WRITE(&phdr, sizeof(phdr)); |