HomeSort by relevance Sort by last modified time
    Searched refs:elf (Results 26 - 50 of 317) sorted by null

12 3 4 5 6 7 8 91011>>

  /external/elfutils/libelf/
gelf_rawchunk.c 31 gelf_rawchunk (elf, offset, size)
32 Elf *elf;
36 if (elf == NULL)
43 if (offset >= elf->maximum_size
44 || offset + size >= elf->maximum_size
53 if (elf->map_address != NULL)
54 return (char *) elf->map_address + elf->start_offset + offset;
62 if ((size_t) pread (elf->fildes, result, size, elf->start_offset + offset
    [all...]
elf_getshstrndx.c 32 elf_getshstrndx (elf, dst)
33 Elf *elf;
38 if (elf == NULL)
41 if (unlikely (elf->kind != ELF_K_ELF))
47 rwlock_rdlock (elf->lock);
49 /* We rely here on the fact that the `elf' element is a common prefix
51 assert (offsetof (struct Elf, state.elf.ehdr)
52 == offsetof (struct Elf, state.elf32.ehdr))
    [all...]
elf_flagelf.c 1 /* Manipulate ELF file flags.
29 elf_flagelf (elf, cmd, flags)
30 Elf *elf;
36 if (elf == NULL)
39 if (unlikely (elf->kind != ELF_K_ELF))
46 result = (elf->flags
49 result = (elf->flags
elf_next.c 30 elf_next (elf)
31 Elf *elf;
33 Elf *parent;
36 if (elf == NULL || elf->parent == NULL)
40 parent = elf->parent;
52 return elf->cmd;
gelf_getphdr.c 29 gelf_getphdr (elf, ndx, dst)
30 Elf *elf;
36 if (elf == NULL)
39 if (unlikely (elf->kind != ELF_K_ELF))
51 rwlock_rdlock (elf->lock);
53 if (elf->class == ELFCLASS32)
56 Elf32_Phdr *phdr = elf->state.elf32.phdr;
60 phdr = INTUSE(elf32_getphdr) (elf);
67 if (ndx >= elf->state.elf32.ehdr->e_phnum
    [all...]
gelf_xlatetof.c 1 /* Convert from memory to file representation. Generic ELF version.
29 gelf_xlatetof (elf, dest, src, encode)
30 Elf *elf;
35 if (elf == NULL)
38 return (elf->class == ELFCLASS32
gelf_xlatetom.c 1 /* Convert from file to memory representation. Generic ELF version.
29 gelf_xlatetom (elf, dest, src, encode)
30 Elf *elf;
35 if (elf == NULL)
38 return (elf->class == ELFCLASS32
elf32_getphdr.c 1 /* Get ELF program header table.
34 elfw2(LIBELFBITS,getphdr) (elf)
35 Elf *elf;
39 if (elf == NULL)
42 if (unlikely (elf->kind != ELF_K_ELF))
51 result = elf->state.ELFW(elf,LIBELFBITS).phdr;
55 rwlock_wrlock (elf->lock);
57 if (elf->class == 0
    [all...]
elf_getarsym.c 35 elf_getarsym (elf, ptr)
36 Elf *elf;
41 if (elf->kind != ELF_K_AR)
51 *ptr = elf->state.ar.ar_sym_num;
53 if (elf->state.ar.ar_sym == (Elf_Arsym *) -1l)
60 result = elf->state.ar.ar_sym;
72 rwlock_wrlock (elf->lock);
75 elf->state.ar.ar_sym = (Elf_Arsym *) -1l;
77 if (elf->map_address == NULL
    [all...]
elf_nextscn.c 30 elf_nextscn (elf, scn)
31 Elf *elf;
36 if (elf == NULL)
39 rwlock_rdlock (elf->lock);
44 if (elf->class == ELFCLASS32
45 || (offsetof (Elf, state.elf32.scns)
46 == offsetof (Elf, state.elf64.scns)))
48 if (elf->state.elf32.scns.cnt > 1)
49 result = &elf->state.elf32.scns.data[1]
    [all...]
gelf_getehdr.c 1 /* Get ELF header.
29 gelf_getehdr (elf, dest)
30 Elf *elf;
35 if (elf == NULL)
38 if (unlikely (elf->kind != ELF_K_ELF))
44 rwlock_rdlock (elf->lock);
46 if (elf->class == ELFCLASS32)
48 Elf32_Ehdr *ehdr = elf->state.elf32.ehdr;
50 /* Maybe no ELF header was created yet. *
    [all...]
elf_getarhdr.c 30 elf_getarhdr (elf)
31 Elf *elf;
33 Elf *parent = elf->parent;
gelf_update_phdr.c 29 gelf_update_phdr (Elf *elf, int ndx, GElf_Phdr *src)
33 if (elf == NULL)
36 if (unlikely (elf->kind != ELF_K_ELF))
42 rwlock_wrlock (elf->lock);
44 if (elf->class == ELFCLASS32)
46 Elf32_Phdr *phdr = elf->state.elf32.phdr;
64 phdr = INTUSE(elf32_getphdr) (elf);
71 if (unlikely (ndx >= elf->state.elf32.ehdr->e_phnum))
93 Elf64_Phdr *phdr = elf->state.elf64.phdr
    [all...]
elf_getscn.c 30 elf_getscn (elf, idx)
31 Elf *elf;
34 if (elf == NULL)
37 if (unlikely (elf->kind != ELF_K_ELF))
43 rwlock_rdlock (elf->lock);
48 Elf_ScnList *runp = (elf->class == ELFCLASS32
49 || (offsetof (struct Elf, state.elf32.scns)
50 == offsetof (struct Elf, state.elf64.scns))
51 ? &elf->state.elf32.scns : &elf->state.elf64.scns)
    [all...]
elf_begin.c 39 static inline Elf *
41 Elf_Cmd cmd, Elf *parent)
43 Elf *elf; local
46 elf = allocate_elf (fildes, map_address, offset, maxsize, cmd, parent,
48 if (elf != NULL)
52 elf->state.ar.offset = offset + SARMAG;
54 elf->state.ar.elf_ar_hdr.ar_rawname = elf->state.ar.raw_name;
57 return elf;
192 Elf *elf; local
    [all...]
elf32_updatefile.c 84 __elfw2(LIBELFBITS,updatemmap) (Elf *elf, int change_bo, size_t shnum)
90 /* We need the ELF header several times. */
91 ehdr = elf->state.ELFW(elf,LIBELFBITS).ehdr;
93 /* Write out the ELF header. */
94 if ((elf->state.ELFW(elf,LIBELFBITS).ehdr_flags | elf->flags) & ELF_F_DIRTY)
103 /* Today there is only one version of the ELF header. *
    [all...]
elf32_getshdr.c 42 if (unlikely (scn->elf->state.elf.ehdr == NULL))
48 if (unlikely (scn->elf->class != ELFW(ELFCLASS,LIBELFBITS)))
58 Elf *elf = scn->elf; local
59 ElfW2(LIBELFBITS,Ehdr) *ehdr = elf->state.ELFW(elf,LIBELFBITS).ehdr;
65 rwlock_wrlock (elf->lock);
72 if (INTUSE (elf_getshnum) (elf, &shnum) != 0
    [all...]
  /external/elfcopy/
fixdwarf.h 4 #include <elf.h>
9 Elf *elf, GElf_Ehdr *ehdr, Elf *newelf,
  /external/elfutils/tests/
showptable.c 26 Elf *elf; local
40 elf = elf_begin (fd, ELF_C_READ, NULL);
41 if (elf == NULL)
43 printf ("cannot open ELF file: %s\n", elf_errmsg (-1));
47 if (elf_kind (elf) != ELF_K_ELF)
49 printf ("\"%s\" is not an ELF file\n", argv[1]);
53 if (gelf_getehdr (elf, &ehdr) == NULL)
55 printf ("cannot get the ELF header: %s\n", elf_errmsg (-1));
60 gelf_getclass (elf) == ELFCLASS32 ? 9 : 17, "offset"
    [all...]
newscn.c 24 Elf *elf; local
43 elf = elf_begin (fd, ELF_C_WRITE, NULL);
44 if (elf == NULL)
50 section = elf_newscn (elf);
51 section = elf_nextscn (elf, section);
54 elf_end (elf);
  /external/elfutils/libebl/
libebl_i386.h 21 extern int i386_init (Elf *elf, GElf_Half machine, Ebl *eh, size_t ehlen);
34 extern bool i386_reloc_valid_use (Elf *elf, int type);
37 extern bool i386_gotpc_reloc_check (Elf *elf, int type);
alpha_init.c 23 alpha_init (elf, machine, eh, ehlen)
24 Elf *elf;
arm_init.c 23 arm_init (elf, machine, eh, ehlen)
24 Elf *elf;
sh_init.c 23 sh_init (elf, machine, eh, ehlen)
24 Elf *elf;
  /build/tools/soslim/
soslim.h 6 #include <elf.h>
17 void clone_elf(Elf *elf, Elf *newelf,

Completed in 81 milliseconds

12 3 4 5 6 7 8 91011>>