Lines Matching refs:phdr
89 const Elf_Phdr *phdr = NULL; in __utee_tcb_init() local
99 phdr = dlpi->dlpi_phdr + j; in __utee_tcb_init()
100 if (phdr->p_type == PT_TLS) { in __utee_tcb_init()
101 total_size += phdr->p_memsz; in __utee_tcb_init()
133 phdr = dlpi->dlpi_phdr + j; in __utee_tcb_init()
134 if (phdr->p_type != PT_TLS) in __utee_tcb_init()
136 if (size + phdr->p_memsz <= _tls_size) { in __utee_tcb_init()
143 (void *)(dlpi->dlpi_addr + phdr->p_vaddr), in __utee_tcb_init()
144 phdr->p_filesz); in __utee_tcb_init()
146 memset(_tcb->tls + size + phdr->p_filesz, 0, in __utee_tcb_init()
147 phdr->p_memsz - phdr->p_filesz); in __utee_tcb_init()
148 size += phdr->p_memsz; in __utee_tcb_init()