Searched defs:elf (Results 1 - 25 of 65) sorted by relevance

123

/external/elfutils/0.153/libelf/
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_getmove.c69 Elf *elf; local
92 elf = ((Elf_Data_Scn *) data)->s->elf;
93 rwlock_rdlock (elf->lock);
97 rwlock_unlock (elf->lock);
H A Dgelf_getauxv.c69 Elf *elf; local
80 elf = data_scn->s->elf;
82 rwlock_rdlock (elf->lock);
87 if (elf->class == ELFCLASS32)
127 rwlock_unlock (elf->lock);
H A Dgelf_getdyn.c70 Elf *elf; local
81 elf = data_scn->s->elf;
83 rwlock_rdlock (elf->lock);
88 if (elf->class == ELFCLASS32)
129 rwlock_unlock (elf->lock);
H A Delf32_getshdr.c75 Elf *elf = scn->elf; local
76 ElfW2(LIBELFBITS,Ehdr) *ehdr = elf->state.ELFW(elf,LIBELFBITS).ehdr;
84 if (__elf_getshdrnum_rdlock (elf, &shnum) != 0)
90 ElfW2(LIBELFBITS,Shdr) *shdr = elf->state.ELFW(elf,LIBELFBITS).shdr =
92 if (elf->state.ELFW(elf,LIBELFBITS).shdr == NULL)
97 elf
[all...]
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 Dgelf_update_ehdr.c62 gelf_update_ehdr (Elf *elf, GElf_Ehdr *src) argument
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;
131 elf->state.elf.ehdr_flags |= ELF_F_DIRTY;
136 rwlock_unlock (elf
[all...]
H A Dgelf_update_shdr.c65 Elf *elf; local
70 elf = scn->elf;
71 rwlock_wrlock (elf->lock);
73 if (elf->class == ELFCLASS32)
129 rwlock_unlock (elf->lock);
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 Dgelf_update_phdr.c62 gelf_update_phdr (Elf *elf, int ndx, GElf_Phdr *src) argument
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);
105 if (ndx >= elf->state.elf32.ehdr->e_phnum
106 && (elf->state.elf32.ehdr->e_phnum != PN_XNUM
107 || __elf_getphdrnum_rdlock (elf,
[all...]
H A Dcommon.h119 libelf_acquire_all (Elf *elf) argument
121 rwlock_wrlock (elf->lock);
123 if (elf->kind == ELF_K_AR)
125 Elf *child = elf->state.ar.children;
139 libelf_release_all (Elf *elf) argument
141 if (elf->kind == ELF_K_AR)
143 Elf *child = elf->state.ar.children;
153 rwlock_unlock (elf->lock);
H A Delf_getdata.c63 #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))
276 = (char *) elf
366 Elf *elf; local
[all...]
H A Dnlist.c84 Elf *elf; local
109 elf = INTUSE(elf_begin) (fd, ELF_C_READ_MMAP, NULL);
110 if (elf == NULL)
115 while ((scn = INTUSE(elf_nextscn) (elf, scn)) != NULL)
150 / INTUSE(gelf_fsize) (elf, ELF_T_SYM, 1, data->d_version));
172 mem.str = INTUSE(elf_strptr) (elf, shdr->sh_link, sym->st_name);
231 (void) INTUSE(elf_end) (elf);
243 (void) INTUSE(elf_end) (elf);
/external/elfutils/0.153/libasm/
H A Ddisasm_begin.c38 disasm_begin (Ebl *ebl, Elf *elf, DisasmGetSymCB_t symcb) argument
57 ctx->elf = elf;
/external/elfutils/0.153/libdw/
H A Ddwarf_begin.c67 Elf *elf; local
95 elf = elf_begin (fd, elfcmd, NULL);
96 if (elf == NULL)
115 result = INTUSE(dwarf_begin_elf) (elf, cmd, NULL);
119 elf_end (elf);
H A Ddwarf_begin_elf.c121 const char *scnname = elf_strptr (result->elf, ehdr->e_shstrndx,
251 global_read (Dwarf *result, Elf *elf, GElf_Ehdr *ehdr) argument
255 while (result != NULL && (scn = elf_nextscn (elf, scn)) != NULL)
263 scngrp_read (Dwarf *result, Elf *elf, GElf_Ehdr *ehdr, Elf_Scn *scngrp) argument
282 Elf_Scn *scn = elf_getscn (elf, scnidx[cnt]);
303 dwarf_begin_elf (elf, cmd, scngrp)
304 Elf *elf;
313 ehdr = gelf_getehdr (elf, &ehdr_mem);
316 if (elf_kind (elf) != ELF_K_ELF)
343 result->elf
[all...]
/external/chromium_org/native_client_sdk/src/tools/lib/tests/
H A Delf_test.py16 import elf namespace
22 self.assertFalse(elf.IsDynamicElf(static_nexe, False))
27 self.assertTrue(elf.IsDynamicElf(dyn_nexe, False))
28 self.assertFalse(elf.IsDynamicElf(static_nexe, False))
33 self.assertTrue(elf.IsDynamicElf(dyn_nexe, True))
34 self.assertFalse(elf.IsDynamicElf(static_nexe, True))
39 self.assertRaises(elf.Error, elf.ParseElfHeader, __file__)
42 """Test parsing of ARM elf header."""
44 arch, dynamic = elf
[all...]
/external/elfutils/0.153/backends/
H A Dppc64_symbol.c32 #include <elf.h>
91 ppc64_check_special_symbol (Elf *elf, GElf_Ehdr *ehdr, argument
96 const char *sname = elf_strptr (elf, ehdr->e_shstrndx, destshdr->sh_name);
105 ppc64_bss_plt_p (Elf *elf __attribute__ ((unused)),
H A Dppc_symbol.c32 #include <elf.h>
81 find_dyn_got (Elf *elf, GElf_Ehdr *ehdr, GElf_Addr *addr) argument
86 GElf_Phdr *phdr = gelf_getphdr (elf, i, &phdr_mem);
90 Elf_Scn *scn = gelf_offscn (elf, phdr->p_offset);
117 ppc_check_special_symbol (Elf *elf, GElf_Ehdr *ehdr, const GElf_Sym *sym, argument
127 if (find_dyn_got (elf, ehdr, &gotaddr))
134 const char *sname = elf_strptr (elf, ehdr->e_shstrndx, destshdr->sh_name);
154 ppc_bss_plt_p (Elf *elf, GElf_Ehdr *ehdr) argument
157 return ! find_dyn_got (elf, ehdr, &addr);
H A Dcommon-reloc.c99 EBLHOOK(reloc_valid_use) (Elf *elf, int reloc) argument
104 GElf_Ehdr *ehdr = gelf_getehdr (elf, &ehdr_mem);
/external/elfutils/0.153/libebl/
H A DlibeblP.h74 Elf *elf; member in struct:ebl
/external/chromium_org/native_client_sdk/src/tools/lib/
H A Dget_shared_deps.py22 import elf namespace
80 dynamic = any(elf.ParseElfHeader(f)[1] for f in main_files)
231 arch = elf.ParseElfHeader(filename)[0]
/external/elfutils/0.153/libdwfl/
H A Dopen.c70 decompress (int fd __attribute__ ((unused)), Elf **elf) argument
77 const off64_t offset = (*elf)->start_offset;
78 void *const mapped = ((*elf)->map_address == NULL ? NULL
79 : (*elf)->map_address + offset);
80 const size_t mapped_size = (*elf)->maximum_size;
109 elf_end (*elf);
110 *elf = memelf;
147 Elf *elf = elf_begin (*fdp, ELF_C_READ_MMAP_PRIVATE, NULL); local
150 Dwfl_Error error = what_kind (*fdp, &elf, &kind, &close_fd);
156 off64_t offset = elf
[all...]
/external/elfutils/0.153/src/
H A Darlib.c211 arlib_add_symbols (Elf *elf, const char *arfname, const char *membername, argument
223 if (elf_kind (elf) != ELF_K_ELF)
227 GElf_Ehdr *ehdr = gelf_getehdr (elf, &ehdr_mem);
243 while ((scn = elf_nextscn (elf, scn)) != NULL)
271 const char *symname = elf_strptr (elf, shdr->sh_link, sym->st_name);
/external/chromium_org/tools/relocation_packer/src/
H A Delf_traits.h10 #include "elf.h"
22 // TODO(simonb): Eliminate these once AARCH64 appears reliably in elf.h.
52 static inline Ehdr* getehdr(Elf* elf) { return elf32_getehdr(elf); } argument
53 static inline Phdr* getphdr(Elf* elf) { return elf32_getphdr(elf); } argument
86 static inline Ehdr* getehdr(Elf* elf) { return elf64_getehdr(elf); } argument
87 static inline Phdr* getphdr(Elf* elf) { return elf64_getphdr(elf); } argument
[all...]

Completed in 4018 milliseconds

123