Home | History | Annotate | Download | only in src

Lines Matching refs:program_header

86                              const Phdr* program_header) {
88 switch (program_header->p_type) {
100 VLOG(1) << " p_offset = " << program_header->p_offset;
101 VLOG(1) << " p_vaddr = " << program_header->p_vaddr;
102 VLOG(1) << " p_paddr = " << program_header->p_paddr;
103 VLOG(1) << " p_filesz = " << program_header->p_filesz;
104 VLOG(1) << " p_memsz = " << program_header->p_memsz;
105 VLOG(1) << " p_flags = " << program_header->p_flags;
106 VLOG(1) << " p_align = " << program_header->p_align;
172 auto program_header = &elf_program_header[i];
173 VerboseLogProgramHeader(i, program_header);
175 if (program_header->p_type == PT_DYNAMIC) {
177 dynamic_program_header = program_header;
309 static bool ClampLoadSegmentAlignment(typename ELF::Phdr* program_header) {
310 CHECK(program_header->p_type == PT_LOAD);
313 if (program_header->p_align > kPageSize) {
314 program_header->p_align = kPageSize;
323 typename ELF::Phdr* program_header) {
324 CHECK(program_header->p_type == PT_LOAD);
334 if (program_header->p_align == kPageSize) {
337 if (other_header->p_type == PT_LOAD && other_header != program_header) {
338 program_header->p_align = other_header->p_align;
350 typename ELF::Phdr* program_header,
352 CHECK(program_header->p_type == PT_LOAD);
356 status = ClampLoadSegmentAlignment<ELF>(program_header);
360 program_header);
375 typename ELF::Phdr* program_header = &program_headers[i];
380 if (program_header->p_type == PT_GNU_STACK) {
384 if (program_header->p_offset > hole_start) {
386 program_header->p_offset += hole_size;
388 << "] p_offset adjusted to "<< program_header->p_offset;
390 program_header->p_vaddr -= hole_size;
391 program_header->p_paddr -= hole_size;
397 if (program_header->p_type == PT_LOAD) {
400 program_header,
407 << "] p_vaddr adjusted to "<< program_header->p_vaddr
408 << "; p_paddr adjusted to "<< program_header->p_paddr
409 << "; p_align adjusted to "<< program_header->p_align;
421 typename ELF::Phdr* program_header = &program_headers[i];
423 if (program_header->p_type == PT_LOAD &&
424 program_header->p_offset <= hole_start &&
425 (program_header->p_offset + program_header->p_filesz) >= hole_start ) {
426 return program_header;
477 const typename ELF::Phdr* program_header = &elf_program_header[i];
479 if (program_header->p_type == PT_DYNAMIC) {
480 dynamic_program_header = program_header;