HomeSort by relevance Sort by last modified time
    Searched refs:elf (Results 1 - 25 of 1278) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /external/elfutils/libelf/
elf_rand.c 41 elf_rand (Elf *elf, size_t offset)
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)
    [all...]
gelf_getclass.c 41 gelf_getclass (Elf *elf)
43 return elf == NULL || elf->kind != ELF_K_ELF ? ELFCLASSNONE : elf->class;
elf_cntl.c 1 /* Control an ELF file desrciptor.
40 elf_cntl (Elf *elf, Elf_Cmd cmd)
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)
    [all...]
elf_readall.c 44 set_address (Elf *elf, size_t offset)
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)
73 rwlock_wrlock (elf->lock);
75 if (elf->map_address == NULL && unlikely (elf->fildes == -1)
    [all...]
elf_rawfile.c 41 elf_rawfile (Elf *elf, size_t *ptr)
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)
    [all...]
elf32_newehdr.c 1 /* Create new ELF header.
45 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)))
69 /* Don't create an ELF header if one already exists. *
    [all...]
elf_getaroff.c 1 /* Return offset in archive for current file ELF.
42 elf_getaroff (Elf *elf)
45 if (elf == NULL || elf->parent == NULL)
49 Elf *parent = elf->parent;
52 return elf->start_offset - sizeof (struct ar_hdr) - parent->start_offset;
gelf_checksum.c 1 /* Convert from file to memory representation. Generic ELF version.
41 gelf_checksum (Elf *elf)
43 if (elf == NULL)
46 return (elf->class == ELFCLASS32
47 ? INTUSE(elf32_checksum) (elf) : INTUSE(elf64_checksum) (elf));
elf_update.c 44 write_file (Elf *elf, off_t size, int change_bo, size_t shnum)
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
    [all...]
elf_getbase.c 41 elf_getbase (Elf *elf)
43 return elf == NULL ? (off_t) -1 : elf->start_offset;
elf_kind.c 41 elf_kind (Elf *elf)
43 return elf == NULL ? ELF_K_NONE : elf->kind;
gelf_newehdr.c 1 /* Create new ELF header.
41 gelf_newehdr (Elf *elf, int class)
44 ? (unsigned long int) INTUSE(elf32_newehdr) (elf)
45 : (unsigned long int) INTUSE(elf64_newehdr) (elf));
elf_getshdrstrndx.c 46 elf_getshdrstrndx (Elf *elf, size_t *dst)
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)
64 == offsetof (struct Elf, state.elf32.ehdr));
65 assert (sizeof (elf->state.elf.ehdr
    [all...]
elf_newscn.c 44 elf_newscn (Elf *elf)
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)
55 == offsetof (Elf, state.elf32.scns_last));
56 assert (offsetof (Elf, state.elf.scns_last)
57 == offsetof (Elf, state.elf64.scns_last))
    [all...]
elf32_getehdr.c 1 /* Get ELF header.
45 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))
    [all...]
elf_getshdrnum.c 1 /* Return number of sections in the ELF file.
43 __elf_getshdrnum_rdlock (Elf *elf, size_t *dst)
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 == ELFCLASS3
    [all...]
elf_clone.c 40 Elf *
41 elf_clone (Elf *elf, Elf_Cmd cmd)
43 Elf *retval = NULL;
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->kind
    [all...]
gelf_newphdr.c 1 /* Create new ELF program header.
41 gelf_newphdr ( Elf *elf, size_t phnum)
43 return (elf->class == ELFCLASS32
44 ? (unsigned long int) INTUSE(elf32_newphdr) (elf, phnum)
45 : (unsigned long int) INTUSE(elf64_newphdr) (elf, phnum));
gelf_offscn.c 1 /* Create new ELF header.
41 gelf_offscn (Elf *elf, GElf_Off offset)
43 if (elf->class == ELFCLASS32)
51 return INTUSE(elf32_offscn) (elf, (Elf32_Off) offset);
54 return INTUSE(elf64_offscn) (elf, offset);
elf_flagehdr.c 1 /* Manipulate ELF header flags.
41 elf_flagehdr (Elf *elf, Elf_Cmd cmd, unsigned int flags)
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));
elf_flagphdr.c 1 /* Manipulate ELF program header flags.
41 elf_flagphdr (Elf *elf, Elf_Cmd cmd, unsigned int flags)
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));
elf32_newphdr.c 1 /* Create new ELF program header table.
46 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)
    [all...]
  /external/google-breakpad/src/common/linux/
elf_gnu_compat.h 34 // elf_gnu_compat.h: #defines unique to glibc's elf.h.
39 #include <elf.h>
  /ndk/tests/build/issue38441-Elf32_auxv_t/jni/
issue38441-Elf32_auxv_t.c 17 #include <elf.h>
  /external/elfutils/tests/
elfshphehdr.c 20 #include ELFUTILS_HEADER(elf)
58 test (Elf *elf, int class, bool layout)
60 fprintf (stderr, "testing ELF class: %d, layout: %d\n", class, layout);
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)
158 Elf *elf; local
    [all...]

Completed in 435 milliseconds

1 2 3 4 5 6 7 8 91011>>