HomeSort by relevance Sort by last modified time
    Searched refs:Elf (Results 76 - 100 of 150) sorted by null

1 2 34 5 6

  /external/elfutils/libasm/
libasm.h 69 corresponds to an EM_ constant from <elf.h>, KLASS specifies the
162 /* Return ELF descriptor created for the output file of the given context. */
163 extern Elf *asm_getelf (AsmCtx_t *ctx);
178 extern DisasmCtx_t *disasm_begin (Ebl *ebl, Elf *elf, DisasmGetSymCB_t symcb);
libasmP.h 81 /* The ELF section. */
146 /* ELF descriptor of the temporary file. */
147 Elf *elf; member in union:AsmCtx::__anon20776
217 /* The ELF section. */
245 /* ELF file containing all the data passed to the function. This
247 Elf *elf; member in struct:DisasmCtx
  /external/elfutils/src/
size.c 1 /* Print size information from ELF file.
108 static int handle_ar (int fd, Elf *elf, const char *prefix, const char *fname);
110 /* Handle ELF file. */
111 static void handle_elf (Elf *elf, const char *fullname, const char *fname);
161 "class" of ELF binaries processed. */
305 /* Now get the ELF descriptor. */
306 Elf *elf = elf_begin (fd, ELF_C_READ_MMAP, NULL) local
    [all...]
ranlib.c 146 copy_content (Elf *elf, int newfd, off_t off, size_t n)
149 char *rawfile = elf_rawfile (elf, &len);
181 /* First we walk through the file, looking for all ELF files to
183 Elf *arelf = elf_begin (fd, ELF_C_READ_MMAP, NULL);
186 error (0, 0, gettext ("cannot create ELF descriptor for '%s': %s"),
206 Elf *elf; local
208 while ((elf = elf_begin (fd, cmd, arelf)) != NULL)
210 Elf_Arhdr *arhdr = elf_getarhdr (elf);
    [all...]
findtextrel.c 100 GElf_Addr addr, Elf *elf, Elf_Scn *symscn, Dwarf *dw,
231 Elf *elf = elf_begin (fd, ELF_C_READ_MMAP, NULL); local
232 if (elf == NULL)
234 error (0, 0, gettext ("cannot create ELF descriptor for '%s': %s"),
241 GElf_Ehdr *ehdr = gelf_getehdr (elf, &ehdr_mem);
244 error (0, 0, gettext ("cannot get ELF header '%s': %s"),
247 elf_end (elf);
263 while ((scn = elf_nextscn (elf, scn)) != NULL
    [all...]
nm.c 1 /* Print symbol information from ELF file in human-readable form.
127 static int handle_ar (int fd, Elf *elf, const char *prefix, const char *fname,
130 /* Handle ELF file. */
131 static int handle_elf (Elf *elf, const char *prefix, const char *fname,
367 /* Now get the ELF descriptor. */
368 Elf *elf = elf_begin (fd, ELF_C_READ_MMAP, NULL); local
369 if (elf != NULL
    [all...]
  /external/elfutils/libelf/
elf32_newehdr.c 1 /* Create new ELF header.
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))
    [all...]
elf32_offscn.c 67 elfw2(LIBELFBITS,offscn) (elf, offset)
68 Elf *elf;
71 if (elf == NULL)
74 if (unlikely (elf->kind != ELF_K_ELF))
80 Elf_ScnList *runp = &elf->state.ELFW(elf,LIBELFBITS).scns;
89 rwlock_rdlock (elf->lock);
117 rwlock_unlock (elf->lock);
gelf_getauxv.c 69 Elf *elf; local
80 elf = data_scn->s->elf;
82 rwlock_rdlock (elf->lock);
87 if (elf->class == ELFCLASS32)
127 rwlock_unlock (elf->lock);
gelf_getdyn.c 70 Elf *elf; local
81 elf = data_scn->s->elf;
83 rwlock_rdlock (elf->lock);
88 if (elf->class == ELFCLASS32)
129 rwlock_unlock (elf->lock);
gelf_update_ehdr.c 1 /* Update ELF header.
62 gelf_update_ehdr (Elf *elf, GElf_Ehdr *src)
66 if (elf == NULL)
69 if (unlikely (elf->kind != ELF_K_ELF))
75 rwlock_wrlock (elf->lock);
77 if (elf->class == ELFCLASS32)
79 Elf32_Ehdr *ehdr = elf->state.elf32.ehdr;
118 Elf64_Ehdr *ehdr = elf->state.elf64.ehdr;
133 rwlock_unlock (elf->lock)
    [all...]
gelf_update_shdr.c 65 Elf *elf; local
70 elf = scn->elf;
71 rwlock_wrlock (elf->lock);
73 if (elf->class == ELFCLASS32)
126 rwlock_unlock (elf->lock);
elf_getdata.c 63 #include "elf-knowledge.h"
198 Elf *elf = scn->elf; local
200 if (elf->class == ELFCLASS32)
239 GElf_Ehdr *ehdr = __gelf_getehdr_rdlock (elf, &ehdr_mem);
246 || (t == ELF_T_GNUHASH && elf->class == ELFCLASS64))
249 entsize = __libelf_type_sizes[LIBELF_EV_IDX][elf->class - 1][t];
264 if (elf->map_address != NULL)
268 if (unlikely (offset + size > elf->maximum_size)
366 Elf *elf; local
    [all...]
elf_update.c 64 write_file (Elf *elf, off_t size, int change_bo, size_t shnum)
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
    [all...]
gelf_fsize.c 101 gelf_fsize (elf, type, count, version)
102 Elf *elf;
109 if (elf == NULL)
125 return count * __libelf_type_sizes[version - 1][elf->class - 1][type];
127 return count * __libelf_type_sizes[0][elf->class - 1][type];
gelf_getphdr.c 63 gelf_getphdr (elf, ndx, dst)
64 Elf *elf;
70 if (elf == NULL)
73 if (unlikely (elf->kind != ELF_K_ELF))
85 rwlock_rdlock (elf->lock);
87 if (elf->class == ELFCLASS32)
90 Elf32_Phdr *phdr = elf->state.elf32.phdr;
94 rwlock_unlock (elf->lock);
95 phdr = INTUSE(elf32_getphdr) (elf);
    [all...]
gelf_update_phdr.c 62 gelf_update_phdr (Elf *elf, int ndx, GElf_Phdr *src)
66 if (elf == NULL)
69 if (unlikely (elf->kind != ELF_K_ELF))
75 rwlock_wrlock (elf->lock);
77 if (elf->class == ELFCLASS32)
79 Elf32_Phdr *phdr = elf->state.elf32.phdr;
97 phdr = __elf32_getphdr_wrlock (elf);
104 if (unlikely (ndx >= elf->state.elf32.ehdr->e_phnum))
126 Elf64_Phdr *phdr = elf->state.elf64.phdr
    [all...]
elf32_checksum.c 1 /* Compute simple checksum from permanent parts of the ELF file.
63 #include "elf-knowledge.h"
80 elfw2(LIBELFBITS,checksum) (elf)
81 Elf *elf;
89 if (elf == NULL)
93 if (INTUSE(elf_getshstrndx) (elf, &shstrndx) < 0)
95 /* This can only happen if the ELF handle is not for real. */
102 ident = elf->state.ELFW(elf,LIBELFBITS).ehdr->e_ident
    [all...]
  /external/elfutils/tests/
scnnames.c 38 Elf *elf; local
59 elf = elf_begin (fd, ELF_C_READ, NULL);
60 if (elf == NULL)
62 printf ("cannot open ELF file: %s\n", elf_errmsg (-1));
66 if (elf_kind (elf) != ELF_K_ELF)
68 printf ("\"%s\" is not an ELF file\n", argv[1]);
72 if (gelf_getehdr (elf, &ehdr) == NULL)
74 printf ("cannot get the ELF header: %s\n", elf_errmsg (-1));
81 while ((scn = elf_nextscn (elf, scn)) != NULL
    [all...]
saridx.c 99 Elf *elf; local
124 /* Set the ELF version we are using here. */
127 puts ("ELF library too old");
133 elf = elf_begin (fd, cmd, NULL);
134 if (elf == NULL)
141 if (elf_kind (elf) != ELF_K_AR)
150 Elf *subelf;
155 while ((subelf = elf_begin (fd, cmd, elf)) != NULL)
169 fputs ("ELF file:\n", stdout)
    [all...]
update1.c 44 Elf *elf; local
57 elf = elf_begin (fd, ELF_C_WRITE, NULL);
58 if (elf == NULL)
60 printf ("cannot create ELF descriptor: %s\n", elf_errmsg (-1));
64 /* Create an ELF header. */
65 ehdr = elf32_newehdr (elf);
68 printf ("cannot create ELF header: %s\n", elf_errmsg (-1));
72 /* Print the ELF header values. */
96 if (elf_update (elf, ELF_C_WRITE) < 0
    [all...]
asm-tst7.c 47 Elf *elf; local
90 elf = elf_begin (fd, ELF_C_READ, NULL);
91 if (elf == NULL)
93 printf ("cannot create ELF descriptor: %s\n", elf_errmsg (-1));
97 if (elf_kind (elf) != ELF_K_ELF)
99 puts ("not a valid ELF file");
110 scn = elf_getscn (elf, cnt);
131 / gelf_fsize (elf, ELF_T_SYM, 1, EV_CURRENT));
179 elf_end (elf);
    [all...]
  /external/linux-tools-perf/config/
feature-tests.mak 31 Elf *elf = elf_begin(0, ELF_C_READ, 0);
32 return (long)elf;
50 Elf *elf = elf_begin(0, ELF_C_READ_MMAP, 0);
51 return (long)elf;
  /external/elfutils/libdwfl/
relocate.c 59 __libdwfl_relocate_value (Dwfl_Module *mod, Elf *elf, size_t *shstrndx,
62 Elf_Scn *refscn = elf_getscn (elf, shndx);
73 && unlikely (elf_getshstrndx (elf, shstrndx) < 0))
76 const char *name = elf_strptr (elf, *shstrndx, refshdr->sh_name);
107 Elf *symelf;
122 Elf *relocated, struct reloc_symtab_cache *cache,
127 if (mod->symfile == NULL || mod->symfile->elf != relocated)
172 cache->symelf = mod->symfile->elf;
215 || referer->symfile->elf != symtab->symelf)
    [all...]
dwfl_build_id_find_elf.c 1 /* Find an ELF file for a module from its build ID.
149 char **file_name, Elf **elfp)

Completed in 282 milliseconds

1 2 34 5 6