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

1234567891011>>

/external/syslinux/mk/
H A Drosh.mk18 include $(MAKEDIR)/elf.mk
/external/elfutils/libelf/
H A Delf_rand.c41 elf_rand (Elf *elf, size_t offset) argument
44 if (elf == NULL || elf->kind != ELF_K_AR)
47 rwlock_wrlock (elf->lock);
50 elf->state.ar.offset = elf->start_offset + offset;
53 if (__libelf_next_arhdr_wrlock (elf) != 0)
56 elf->state.ar.elf_ar_hdr.ar_name = NULL;
60 rwlock_unlock (elf->lock);
H A Dgelf_getclass.c41 gelf_getclass (Elf *elf) argument
43 return elf == NULL || elf->kind != ELF_K_ELF ? ELFCLASSNONE : elf->class;
H A Delf_cntl.c40 elf_cntl (Elf *elf, Elf_Cmd cmd) argument
44 if (elf == NULL)
47 if (elf->fildes == -1)
53 rwlock_wrlock (elf->lock);
59 if (elf->map_address == NULL && __libelf_readall (elf) == NULL)
69 elf->fildes = -1;
78 rwlock_unlock (elf->lock);
H A Delf_readall.c44 set_address (Elf *elf, size_t offset) argument
46 if (elf->kind == ELF_K_AR)
48 Elf *child = elf->state.ar.children;
54 child->map_address = elf->map_address;
70 __libelf_readall (Elf *elf) argument
73 rwlock_wrlock (elf->lock);
75 if (elf->map_address == NULL && unlikely (elf->fildes == -1))
78 rwlock_unlock (elf->lock);
83 if (elf
[all...]
H A Delf_rawfile.c41 elf_rawfile (Elf *elf, size_t *ptr) argument
45 if (elf == NULL)
56 if (elf->map_address == NULL && __libelf_readall (elf) == NULL)
59 rwlock_rdlock (elf->lock);
61 *ptr = elf->maximum_size;
63 result = (char *) elf->map_address + elf->start_offset;
64 rwlock_unlock (elf->lock);
H A Delf32_newehdr.c45 elfw2(LIBELFBITS,newehdr) (Elf *elf)
49 if (elf == NULL)
52 if (unlikely (elf->kind != ELF_K_ELF))
58 rwlock_wrlock (elf->lock);
60 if (elf->class == 0)
61 elf->class = ELFW(ELFCLASS,LIBELFBITS);
62 else if (unlikely (elf->class != ELFW(ELFCLASS,LIBELFBITS)))
70 if (elf->state.ELFW(elf,LIBELFBITS).ehdr == NULL)
73 elf
[all...]
H A Delf_getaroff.c42 elf_getaroff (Elf *elf) argument
45 if (elf == NULL || elf->parent == NULL)
49 Elf *parent = elf->parent;
52 return elf->start_offset - sizeof (struct ar_hdr) - parent->start_offset;
H A Dgelf_checksum.c41 gelf_checksum (Elf *elf) argument
43 if (elf == NULL)
46 return (elf->class == ELFCLASS32
47 ? INTUSE(elf32_checksum) (elf) : INTUSE(elf64_checksum) (elf));
H A Delf_update.c44 write_file (Elf *elf, off_t size, int change_bo, size_t shnum) argument
46 int class = elf->class;
50 if (unlikely (fstat (elf->fildes, &st) != 0))
61 if (elf->parent == NULL
62 && (elf->maximum_size == ~((size_t) 0)
63 || (size_t) size > elf->maximum_size)
64 && unlikely (ftruncate (elf->fildes, size) != 0))
71 if (elf->map_address == NULL && elf->cmd == ELF_C_WRITE_MMAP)
73 elf
150 elf_update(Elf *elf, Elf_Cmd cmd) argument
[all...]
H A Delf_getbase.c41 elf_getbase (Elf *elf) argument
43 return elf == NULL ? (off_t) -1 : elf->start_offset;
H A Delf_kind.c41 elf_kind (Elf *elf) argument
43 return elf == NULL ? ELF_K_NONE : elf->kind;
H A Dgelf_newehdr.c41 gelf_newehdr (Elf *elf, int class) argument
44 ? (unsigned long int) INTUSE(elf32_newehdr) (elf)
45 : (unsigned long int) INTUSE(elf64_newehdr) (elf));
H A Delf_getshdrstrndx.c46 elf_getshdrstrndx (Elf *elf, size_t *dst) argument
50 if (elf == NULL)
53 if (unlikely (elf->kind != ELF_K_ELF))
59 rwlock_rdlock (elf->lock);
61 /* We rely here on the fact that the `elf' element is a common prefix
63 assert (offsetof (struct Elf, state.elf.ehdr)
65 assert (sizeof (elf->state.elf.ehdr)
66 == sizeof (elf->state.elf32.ehdr));
67 assert (offsetof (struct Elf, state.elf
[all...]
H A Delf_newscn.c44 elf_newscn (Elf *elf) argument
49 if (elf == NULL)
52 /* We rely on the prefix of the `elf', `elf32', and `elf64' element
54 assert (offsetof (Elf, state.elf.scns_last)
56 assert (offsetof (Elf, state.elf.scns_last)
61 rwlock_wrlock (elf->lock);
64 if (elf->state.elf.scns_last->cnt < elf->state.elf
[all...]
H A Delf32_getehdr.c45 getehdr_impl (Elf *elf, int wrlock)
47 if (elf == NULL)
50 if (unlikely (elf->kind != ELF_K_ELF))
57 if (elf->class == 0)
61 rwlock_unlock (elf->lock);
62 rwlock_wrlock (elf->lock);
66 elf->class = ELFW(ELFCLASS,LIBELFBITS);
68 else if (unlikely (elf->class != ELFW(ELFCLASS,LIBELFBITS)))
74 return elf->state.ELFW(elf,LIBELFBIT
[all...]
H A Delf_getshdrnum.c43 __elf_getshdrnum_rdlock (Elf *elf, size_t *dst) argument
48 if (elf == NULL)
51 if (unlikely (elf->kind != ELF_K_ELF))
57 idx = elf->state.elf.scns_last->cnt;
59 || (elf->state.elf.scns_last
60 != (elf->class == ELFCLASS32
63 ? &elf->state.elf32.scns : &elf
73 elf_getshdrnum(Elf *elf, size_t *dst) argument
[all...]
H A Delf_clone.c41 elf_clone (Elf *elf, Elf_Cmd cmd) argument
45 if (elf == NULL)
50 rwlock_rdlock (elf->lock);
56 retval = allocate_elf (elf->fildes, elf->map_address, elf->start_offset,
57 elf->maximum_size, elf->cmd, elf->parent, elf
[all...]
H A Dgelf_newphdr.c41 gelf_newphdr ( Elf *elf, size_t phnum) argument
43 return (elf->class == ELFCLASS32
44 ? (unsigned long int) INTUSE(elf32_newphdr) (elf, phnum)
45 : (unsigned long int) INTUSE(elf64_newphdr) (elf, phnum));
H A Dgelf_offscn.c41 gelf_offscn (Elf *elf, GElf_Off offset) argument
43 if (elf->class == ELFCLASS32)
51 return INTUSE(elf32_offscn) (elf, (Elf32_Off) offset);
54 return INTUSE(elf64_offscn) (elf, offset);
H A Delf_flagehdr.c41 elf_flagehdr (Elf *elf, Elf_Cmd cmd, unsigned int flags) argument
45 if (elf == NULL)
48 if (unlikely (elf->kind != ELF_K_ELF))
55 result = (elf->state.elf.ehdr_flags |= (flags & ELF_F_DIRTY));
57 result = (elf->state.elf.ehdr_flags &= ~(flags & ELF_F_DIRTY));
H A Delf_flagphdr.c41 elf_flagphdr (Elf *elf, Elf_Cmd cmd, unsigned int flags) argument
45 if (elf == NULL)
48 if (unlikely (elf->kind != ELF_K_ELF))
55 result = (elf->state.elf.phdr_flags |= (flags & ELF_F_DIRTY));
57 result = (elf->state.elf.phdr_flags &= ~(flags & ELF_F_DIRTY));
H A Delf32_newphdr.c46 elfw2(LIBELFBITS,newphdr) (Elf *elf, size_t count)
50 if (elf == NULL)
53 if (unlikely (elf->kind != ELF_K_ELF))
65 rwlock_wrlock (elf->lock);
67 if (elf->class == 0)
68 elf->class = ELFW(ELFCLASS,LIBELFBITS);
69 else if (unlikely (elf->class != ELFW(ELFCLASS,LIBELFBITS)))
76 if (unlikely (elf->state.ELFW(elf,LIBELFBITS).ehdr == NULL))
87 if (elf
[all...]
/external/google-breakpad/src/common/linux/
H A Delf_gnu_compat.h34 // elf_gnu_compat.h: #defines unique to glibc's elf.h.
39 #include <elf.h>
/external/elfutils/tests/
H A Delfshphehdr.c20 #include ELFUTILS_HEADER(elf)
58 test (Elf *elf, int class, bool layout) argument
62 check_elf ("gelf_newehdr", gelf_newehdr (elf, class) != 0);
63 check_elf ("gelf_getclass", gelf_getclass (elf) == class);
65 check_elf ("elf_flagelf", elf_flagelf (elf, layout ? ELF_C_SET : ELF_C_CLR,
69 check_elf ("gelf_getehdr", gelf_getehdr (elf, &ehdr) != NULL);
76 check_elf ("elf_getshdrnum", elf_getshdrnum (elf, &shnum) == 0);
80 check_elf ("elf_getphdrnum", elf_getphdrnum (elf, &phnum) == 0);
88 check_elf ("gelf_update_ehdr", gelf_update_ehdr (elf, &ehdr) != 0);
90 check_elf ("elf_update", elf_update (elf, ELF_C_NUL
158 Elf *elf; local
[all...]

Completed in 1110 milliseconds

1234567891011>>