/external/elfutils/0.153/libelf/ |
H A D | gelf_getclass.c | 62 gelf_getclass (elf) 63 Elf *elf; 65 return elf == NULL || elf->kind != ELF_K_ELF ? ELFCLASSNONE : elf->class;
|
H A D | elf_cntl.c | 61 elf_cntl (elf, cmd) 62 Elf *elf; 67 if (elf == NULL) 70 if (elf->fildes == -1) 76 rwlock_wrlock (elf->lock); 82 if (elf->map_address == NULL && __libelf_readall (elf) == NULL) 92 elf->fildes = -1; 101 rwlock_unlock (elf->lock);
|
H A D | elf_getbase.c | 62 elf_getbase (elf) 63 Elf *elf; 65 return elf == NULL ? (off_t) -1 : elf->start_offset;
|
H A D | elf_kind.c | 62 elf_kind (elf) 63 Elf *elf; 65 return elf == NULL ? ELF_K_NONE : elf->kind;
|
H A D | gelf_checksum.c | 62 gelf_checksum (elf) 63 Elf *elf; 65 if (elf == NULL) 68 return (elf->class == ELFCLASS32 69 ? INTUSE(elf32_checksum) (elf) : INTUSE(elf64_checksum) (elf));
|
H A D | elf_readall.c | 65 set_address (Elf *elf, size_t offset) argument 67 if (elf->kind == ELF_K_AR) 69 Elf *child = elf->state.ar.children; 75 child->map_address = elf->map_address; 90 __libelf_readall (elf) 91 Elf *elf; 94 rwlock_wrlock (elf->lock); 96 if (elf->map_address == NULL && unlikely (elf->fildes == -1)) 99 rwlock_unlock (elf [all...] |
H A D | elf_rand.c | 62 elf_rand (elf, offset) 63 Elf *elf; 67 if (elf == NULL || elf->kind != ELF_K_AR) 70 rwlock_wrlock (elf->lock); 73 elf->state.ar.offset = elf->start_offset + offset; 76 if (__libelf_next_arhdr_wrlock (elf) != 0) 79 elf->state.ar.elf_ar_hdr.ar_name = NULL; 83 rwlock_unlock (elf [all...] |
H A D | elf_rawfile.c | 62 elf_rawfile (elf, ptr) 63 Elf *elf; 68 if (elf == NULL) 79 if (elf->map_address == NULL && __libelf_readall (elf) == NULL) 82 rwlock_rdlock (elf->lock); 84 *ptr = elf->maximum_size; 86 result = (char *) elf->map_address + elf->start_offset; 87 rwlock_unlock (elf [all...] |
H A D | elf32_newehdr.c | 66 elfw2(LIBELFBITS,newehdr) (elf) 67 Elf *elf; 71 if (elf == NULL) 74 if (unlikely (elf->kind != ELF_K_ELF)) 80 rwlock_wrlock (elf->lock); 82 if (elf->class == 0) 83 elf->class = ELFW(ELFCLASS,LIBELFBITS); 84 else if (unlikely (elf->class != ELFW(ELFCLASS,LIBELFBITS))) 92 if (elf->state.ELFW(elf,LIBELFBIT [all...] |
H A D | elf32_getehdr.c | 66 getehdr_impl (elf, wrlock) 67 Elf *elf; 70 if (elf == NULL) 73 if (unlikely (elf->kind != ELF_K_ELF)) 80 if (elf->class == 0) 84 rwlock_unlock (elf->lock); 85 rwlock_wrlock (elf->lock); 89 elf->class = ELFW(ELFCLASS,LIBELFBITS); 91 else if (unlikely (elf->class != ELFW(ELFCLASS,LIBELFBITS))) 97 return elf [all...] |
H A D | gelf_newphdr.c | 62 gelf_newphdr (elf, phnum) 63 Elf *elf; 66 return (elf->class == ELFCLASS32 67 ? (unsigned long int) INTUSE(elf32_newphdr) (elf, phnum) 68 : (unsigned long int) INTUSE(elf64_newphdr) (elf, phnum));
|
H A D | elf_getshdrnum.c | 63 __elf_getshdrnum_rdlock (elf, dst) 64 Elf *elf; 70 if (elf == NULL) 73 if (unlikely (elf->kind != ELF_K_ELF)) 79 idx = elf->state.elf.scns_last->cnt; 81 || (elf->state.elf.scns_last 82 != (elf->class == ELFCLASS32 85 ? &elf [all...] |
H A D | elf_update.c | 64 write_file (Elf *elf, off_t size, int change_bo, size_t shnum) argument 66 int class = elf->class; 70 if (unlikely (fstat (elf->fildes, &st) != 0)) 81 if (elf->parent == NULL 82 && (elf->maximum_size == ~((size_t) 0) 83 || (size_t) size > elf->maximum_size) 84 && unlikely (ftruncate (elf->fildes, size) != 0)) 91 if (elf->map_address == NULL && elf->cmd == ELF_C_WRITE_MMAP) 96 elf [all...] |
H A D | elf_getaroff.c | 63 elf_getaroff (elf) 64 Elf *elf; 67 if (elf == NULL || elf->parent == NULL) 71 Elf *parent = elf->parent; 74 return elf->start_offset - sizeof (struct ar_hdr) - parent->start_offset;
|
H A D | elf_flagehdr.c | 62 elf_flagehdr (elf, cmd, flags) 63 Elf *elf; 69 if (elf == NULL) 72 if (unlikely (elf->kind != ELF_K_ELF)) 79 result = (elf->state.elf.ehdr_flags |= (flags & ELF_F_DIRTY)); 81 result = (elf->state.elf.ehdr_flags &= ~(flags & ELF_F_DIRTY));
|
H A D | elf_flagphdr.c | 62 elf_flagphdr (elf, cmd, flags) 63 Elf *elf; 69 if (elf == NULL) 72 if (unlikely (elf->kind != ELF_K_ELF)) 79 result = (elf->state.elf.phdr_flags |= (flags & ELF_F_DIRTY)); 81 result = (elf->state.elf.phdr_flags &= ~(flags & ELF_F_DIRTY));
|
H A D | elf_getphdrnum.c | 62 __elf_getphdrnum_rdlock (elf, dst) 63 Elf *elf; 66 if (unlikely (elf->state.elf64.ehdr == NULL)) 73 *dst = (elf->class == ELFCLASS32 74 ? elf->state.elf32.ehdr->e_phnum 75 : elf->state.elf64.ehdr->e_phnum); 79 const Elf_ScnList *const scns = (elf->class == ELFCLASS32 80 ? &elf->state.elf32.scns 81 : &elf->state.elf64.scns); 87 *dst = (elf [all...] |
H A D | elf_newscn.c | 65 elf_newscn (elf) 66 Elf *elf; 71 if (elf == NULL) 74 /* We rely on the prefix of the `elf', `elf32', and `elf64' element 76 assert (offsetof (Elf, state.elf.scns_last) 78 assert (offsetof (Elf, state.elf.scns_last) 83 rwlock_wrlock (elf->lock); 86 if (elf->state.elf.scns_last->cnt < elf [all...] |
H A D | elf_clone.c | 62 elf_clone (Elf *elf, Elf_Cmd cmd) argument 66 if (elf == NULL) 71 rwlock_rdlock (elf->lock); 77 retval = allocate_elf (elf->fildes, elf->map_address, elf->start_offset, 78 elf->maximum_size, elf->cmd, elf->parent, elf [all...] |
H A D | gelf_newehdr.c | 62 gelf_newehdr (elf, class) 63 Elf *elf; 67 ? (unsigned long int) INTUSE(elf32_newehdr) (elf) 68 : (unsigned long int) INTUSE(elf64_newehdr) (elf));
|
H A D | elf_getident.c | 61 elf_getident (elf, ptr) 62 Elf *elf; 67 if (elf == NULL || elf->kind != ELF_K_ELF) 79 return (char *) (elf->class == ELFCLASS32 82 ? elf->state.elf32.ehdr->e_ident 83 : elf->state.elf64.ehdr->e_ident);
|
H A D | gelf_offscn.c | 62 gelf_offscn (elf, offset) 63 Elf *elf; 66 if (elf->class == ELFCLASS32) 74 return INTUSE(elf32_offscn) (elf, (Elf32_Off) offset); 77 return INTUSE(elf64_offscn) (elf, offset);
|
H A D | elf32_newphdr.c | 67 elfw2(LIBELFBITS,newphdr) (elf, count) 68 Elf *elf; 73 if (elf == NULL) 76 if (unlikely (elf->kind != ELF_K_ELF)) 88 rwlock_wrlock (elf->lock); 90 if (elf->class == 0) 91 elf->class = ELFW(ELFCLASS,LIBELFBITS); 92 else if (unlikely (elf->class != ELFW(ELFCLASS,LIBELFBITS))) 99 if (unlikely (elf->state.ELFW(elf,LIBELFBIT [all...] |
H A D | elf_getshdrstrndx.c | 67 elf_getshdrstrndx (elf, dst) 68 Elf *elf; 73 if (elf == NULL) 76 if (unlikely (elf->kind != ELF_K_ELF)) 82 rwlock_rdlock (elf->lock); 84 /* We rely here on the fact that the `elf' element is a common prefix 86 assert (offsetof (struct Elf, state.elf.ehdr) 88 assert (sizeof (elf->state.elf.ehdr) 89 == sizeof (elf [all...] |
/external/chromium_org/third_party/yasm/source/patched-yasm/modules/objfmts/elf/tests/ |
H A D | elfcond.asm | 1 %ifidn __YASM_OBJFMT__,elf
|