Lines Matching refs:phdr
257 Elf_Internal_Phdr *phdr = elf_tdata (abfd)->phdr; in spu_elf_object_p() local
261 for (num_buf = 0, num_ovl = 0, i = 0; i < ehdr->e_phnum; i++, phdr++) in spu_elf_object_p()
262 if (phdr->p_type == PT_LOAD && (phdr->p_flags & PF_OVERLAY) != 0) in spu_elf_object_p()
268 || ((last_phdr->p_vaddr ^ phdr->p_vaddr) & 0x3ffff) != 0) in spu_elf_object_p()
270 last_phdr = phdr; in spu_elf_object_p()
275 if (ELF_SECTION_SIZE (shdr, phdr) != 0 in spu_elf_object_p()
276 && ELF_SECTION_IN_SEGMENT (shdr, phdr)) in spu_elf_object_p()
5311 Elf_Internal_Phdr *phdr, *last; in spu_elf_modify_program_headers() local
5321 phdr = tdata->phdr; in spu_elf_modify_program_headers()
5334 phdr[i].p_flags |= PF_OVERLAY; in spu_elf_modify_program_headers()
5343 bfd_put_32 (htab->ovtab->owner, phdr[i].p_offset, p + off); in spu_elf_modify_program_headers()
5361 if (phdr[i].p_type == PT_LOAD) in spu_elf_modify_program_headers()
5365 adjust = -phdr[i].p_filesz & 15; in spu_elf_modify_program_headers()
5368 && phdr[i].p_offset + phdr[i].p_filesz > last->p_offset - adjust) in spu_elf_modify_program_headers()
5371 adjust = -phdr[i].p_memsz & 15; in spu_elf_modify_program_headers()
5374 && phdr[i].p_filesz != 0 in spu_elf_modify_program_headers()
5375 && phdr[i].p_vaddr + phdr[i].p_memsz > last->p_vaddr - adjust in spu_elf_modify_program_headers()
5376 && phdr[i].p_vaddr + phdr[i].p_memsz <= last->p_vaddr) in spu_elf_modify_program_headers()
5379 if (phdr[i].p_filesz != 0) in spu_elf_modify_program_headers()
5380 last = &phdr[i]; in spu_elf_modify_program_headers()
5385 if (phdr[i].p_type == PT_LOAD) in spu_elf_modify_program_headers()
5389 adjust = -phdr[i].p_filesz & 15; in spu_elf_modify_program_headers()
5390 phdr[i].p_filesz += adjust; in spu_elf_modify_program_headers()
5392 adjust = -phdr[i].p_memsz & 15; in spu_elf_modify_program_headers()
5393 phdr[i].p_memsz += adjust; in spu_elf_modify_program_headers()