Lines Matching defs:Elf
138 Elf *s_elf; /* parent file */
182 (void) rw_unlock(&((Elf *)e)->ed_rwlock); \
183 (void) rw_wrlock(&((Elf *)e)->ed_rwlock);
188 (void) rw_unlock(&((Elf *)e)->ed_rwlock); \
189 (void) rw_wrlock(&((Elf *)e)->ed_rwlock); \
195 (void) rw_unlock(&((Elf *)e)->ed_rwlock); \
196 (void) rw_rdlock(&((Elf *)e)->ed_rwlock); \
201 (void) rw_unlock(&((Elf *)e)->ed_rwlock); \
202 (void) rw_rdlock(&((Elf *)e)->ed_rwlock); \
209 (void) rw_rdlock(&((Elf *)e)->ed_rwlock); \
214 (void) rw_rdlock(&((Elf *)e)->ed_rwlock); \
222 (void) rw_unlock(&((Elf *)e)->ed_rwlock);
227 (void) rw_unlock(&((Elf *)e)->ed_rwlock); \
271 * Elf descriptor
307 struct Elf
310 Elf *ed_parent; /* archive parent */
332 Elf_Void *ed_ehdr; /* Elf{32,64}_Ehdr elf header */
333 Elf_Void *ed_phdr; /* Elf{32,64}_Phdr phdr table */
335 Elf_Void *ed_shdr; /* Elf{32,64}_Shdr shdr table */
353 NOTE(RWLOCK_PROTECTS_DATA(Elf::ed_rwlock, Elf))
354 NOTE(RWLOCK_COVERS_LOCKS(Elf::ed_rwlock, Elf_Scn::s_mutex))
357 #define ELFRLOCK(e) (void) rw_rdlock(&((Elf *)e)->ed_rwlock);
361 (void) rw_rdlock(&((Elf *)e)->ed_rwlock);
365 #define ELFWLOCK(e) (void) rw_wrlock(&((Elf *)e)->ed_rwlock);
369 (void) rw_wrlock(&((Elf *)e)->ed_rwlock);
373 #define ELFUNLOCK(e) (void) rw_unlock(&((Elf *)e)->ed_rwlock);
377 (void) rw_unlock(&((Elf *)e)->ed_rwlock);
405 * Max size for an Elf error message string
448 extern Member *_elf_armem(Elf *, char *, size_t);
449 extern void _elf_arinit(Elf *);
450 extern Okay _elf_cook(Elf *);
456 extern size_t _elf32_entsz(Elf *elf, Elf32_Word, unsigned);
457 extern size_t _elf64_entsz(Elf *elf, Elf64_Word, unsigned);
458 extern Okay _elf_inmap(Elf *);
463 extern Elf_Type _elf32_mtype(Elf *, Elf32_Word, unsigned);
464 extern Elf_Type _elf64_mtype(Elf *, Elf64_Word, unsigned);
469 extern Okay _elf_vm(Elf *, size_t, size_t);
470 extern int _elf32_ehdr(Elf *, int);
471 extern int _elf32_phdr(Elf *, int);
472 extern int _elf32_shdr(Elf *, int);
473 extern int _elf64_ehdr(Elf *, int);
474 extern int _elf64_phdr(Elf *, int);
475 extern int _elf64_shdr(Elf *, int);
487 extern off_t _elf64_update(Elf * elf, Elf_Cmd cmd);
488 extern int _elf64_swap_wrimage(Elf *elf);