Lines Matching full:program_headers
345 llvm::ELF::Elf32_Phdr program_headers[PH_NUM];
346 memset(&program_headers, 0, sizeof(program_headers));
348 program_headers[PH_PHDR].p_type = llvm::ELF::PT_PHDR;
349 program_headers[PH_PHDR].p_offset = phdr_offset;
350 program_headers[PH_PHDR].p_vaddr = phdr_offset;
351 program_headers[PH_PHDR].p_paddr = phdr_offset;
352 program_headers[PH_PHDR].p_filesz = sizeof(program_headers);
353 program_headers[PH_PHDR].p_memsz = sizeof(program_headers);
354 program_headers[PH_PHDR].p_flags = llvm::ELF::PF_R;
355 program_headers[PH_PHDR].p_align = phdr_alignment;
357 program_headers[PH_LOAD_R__].p_type = llvm::ELF::PT_LOAD;
358 program_headers[PH_LOAD_R__].p_offset = 0;
359 program_headers[PH_LOAD_R__].p_vaddr = 0;
360 program_headers[PH_LOAD_R__].p_paddr = 0;
361 program_headers[PH_LOAD_R__].p_filesz = oat_data_offset + oat_data_size;
362 program_headers[PH_LOAD_R__].p_memsz = oat_data_offset + oat_data_size;
363 program_headers[PH_LOAD_R__].p_flags = llvm::ELF::PF_R;
364 program_headers[PH_LOAD_R__].p_align = oat_data_alignment;
366 program_headers[PH_LOAD_R_X].p_type = llvm::ELF::PT_LOAD;
367 program_headers[PH_LOAD_R_X].p_offset = oat_exec_offset;
368 program_headers[PH_LOAD_R_X].p_vaddr = oat_exec_offset;
369 program_headers[PH_LOAD_R_X].p_paddr = oat_exec_offset;
370 program_headers[PH_LOAD_R_X].p_filesz = oat_exec_size;
371 program_headers[PH_LOAD_R_X].p_memsz = oat_exec_size;
372 program_headers[PH_LOAD_R_X].p_flags = llvm::ELF::PF_R | llvm::ELF::PF_X;
373 program_headers[PH_LOAD_R_X].p_align = oat_exec_alignment;
376 program_headers[PH_LOAD_RW_].p_type = llvm::ELF::PT_LOAD;
377 program_headers[PH_LOAD_RW_].p_offset = dynamic_offset;
378 program_headers[PH_LOAD_RW_].p_vaddr = dynamic_offset;
379 program_headers[PH_LOAD_RW_].p_paddr = dynamic_offset;
380 program_headers[PH_LOAD_RW_].p_filesz = dynamic_size;
381 program_headers[PH_LOAD_RW_].p_memsz = dynamic_size;
382 program_headers[PH_LOAD_RW_].p_flags = llvm::ELF::PF_R | llvm::ELF::PF_W;
383 program_headers[PH_LOAD_RW_].p_align = dynamic_alignment;
386 program_headers[PH_DYNAMIC].p_type = llvm::ELF::PT_DYNAMIC;
387 program_headers[PH_DYNAMIC].p_offset = dynamic_offset;
388 program_headers[PH_DYNAMIC].p_vaddr = dynamic_offset;
389 program_headers[PH_DYNAMIC].p_paddr = dynamic_offset;
390 program_headers[PH_DYNAMIC].p_filesz = dynamic_size;
391 program_headers[PH_DYNAMIC].p_memsz = dynamic_size;
392 program_headers[PH_DYNAMIC].p_flags = llvm::ELF::PF_R | llvm::ELF::PF_W;
393 program_headers[PH_DYNAMIC].p_align = dynamic_alignment;
575 if (!elf_file_->WriteFully(program_headers, sizeof(program_headers))) {