Lines Matching refs:elf
41 gelf_update_phdr (Elf *elf, int ndx, GElf_Phdr *src) in gelf_update_phdr() argument
45 if (elf == NULL) in gelf_update_phdr()
48 if (unlikely (elf->kind != ELF_K_ELF)) in gelf_update_phdr()
54 rwlock_wrlock (elf->lock); in gelf_update_phdr()
56 if (elf->class == ELFCLASS32) in gelf_update_phdr()
58 Elf32_Phdr *phdr = elf->state.elf32.phdr; in gelf_update_phdr()
76 phdr = __elf32_getphdr_wrlock (elf); in gelf_update_phdr()
84 if (ndx >= elf->state.elf32.ehdr->e_phnum in gelf_update_phdr()
85 && (elf->state.elf32.ehdr->e_phnum != PN_XNUM in gelf_update_phdr()
86 || __elf_getphdrnum_rdlock (elf, &phnum) != 0 in gelf_update_phdr()
109 Elf64_Phdr *phdr = elf->state.elf64.phdr; in gelf_update_phdr()
113 phdr = __elf64_getphdr_wrlock (elf); in gelf_update_phdr()
121 if (ndx >= elf->state.elf64.ehdr->e_phnum in gelf_update_phdr()
122 && (elf->state.elf64.ehdr->e_phnum != PN_XNUM in gelf_update_phdr()
123 || __elf_getphdrnum_rdlock (elf, &phnum) != 0 in gelf_update_phdr()
135 elf->state.elf.phdr_flags |= ELF_F_DIRTY; in gelf_update_phdr()
140 rwlock_unlock (elf->lock); in gelf_update_phdr()