Searched refs:elf (Results 1 - 25 of 432) sorted by relevance

1234567891011>>

/external/elfutils/0.153/libelf/
H A Dgelf_getclass.c62 gelf_getclass (elf)
63 Elf *elf;
65 return elf == NULL || elf->kind != ELF_K_ELF ? ELFCLASSNONE : elf->class;
H A Delf_cntl.c61 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 Delf_getbase.c62 elf_getbase (elf)
63 Elf *elf;
65 return elf == NULL ? (off_t) -1 : elf->start_offset;
H A Delf_kind.c62 elf_kind (elf)
63 Elf *elf;
65 return elf == NULL ? ELF_K_NONE : elf->kind;
H A Dgelf_checksum.c62 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 Delf_readall.c65 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 Delf_rand.c62 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 Delf_rawfile.c62 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 Delf32_newehdr.c66 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 Delf32_getehdr.c66 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 Dgelf_newphdr.c62 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 Delf_getshdrnum.c63 __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 Delf_update.c64 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 Delf_getaroff.c63 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 Delf_flagehdr.c62 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 Delf_flagphdr.c62 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 Delf_getphdrnum.c62 __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 Delf_newscn.c65 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 Delf_clone.c62 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 Dgelf_newehdr.c62 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 Delf_getident.c61 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 Dgelf_offscn.c62 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 Delf32_newphdr.c67 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 Delf_getshdrstrndx.c67 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 Delfcond.asm1 %ifidn __YASM_OBJFMT__,elf

Completed in 186 milliseconds

1234567891011>>