/external/elfutils/libelf/ |
elf_newdata.c | 76 if (scn->elf->class == ELFCLASS32 77 || (offsetof (struct Elf, state.elf32.ehdr) 78 == offsetof (struct Elf, state.elf64.ehdr)) 79 ? scn->elf->state.elf32.ehdr == NULL 80 : scn->elf->state.elf64.ehdr == NULL) 86 rwlock_wrlock (scn->elf->lock); 125 rwlock_unlock (scn->elf->lock);
|
elf_getshstrndx.c | 67 elf_getshstrndx (elf, dst) 68 Elf *elf; 73 if (elf == NULL) 76 if (unlikely (elf->kind != ELF_K_ELF)) 82 rwlock_rdlock (elf->lock); 84 /* We rely here on the fact that the `elf' element is a common prefix 86 assert (offsetof (struct Elf, state.elf.ehdr) 87 == offsetof (struct Elf, state.elf32.ehdr)) [all...] |
elf_strptr.c | 62 elf_strptr (elf, idx, offset) 63 Elf *elf; 67 if (elf == NULL) 70 if (elf->kind != ELF_K_ELF) 76 rwlock_rdlock (elf->lock); 82 Elf_ScnList *runp = (elf->class == ELFCLASS32 83 || (offsetof (struct Elf, state.elf32.scns) 84 == offsetof (struct Elf, state.elf64.scns)) 85 ? &elf->state.elf32.scns : &elf->state.elf64.scns) [all...] |
elf_begin.c | 72 static inline Elf * 74 Elf_Cmd cmd, Elf *parent) 76 Elf *elf; local 79 elf = allocate_elf (fildes, map_address, offset, maxsize, cmd, parent, 81 if (elf != NULL) 85 elf->state.ar.offset = offset + SARMAG; 87 elf->state.ar.elf_ar_hdr.ar_rawname = elf->state.ar.raw_name; 90 return elf; [all...] |
gelf_getmove.c | 69 Elf *elf; local 92 elf = ((Elf_Data_Scn *) data)->s->elf; 93 rwlock_rdlock (elf->lock); 97 rwlock_unlock (elf->lock);
|
/external/elfutils/tests/ |
arls.c | 37 Elf *elf = elf_begin (fd, ELF_C_READ_MMAP, NULL); local 38 if (elf == NULL) 40 printf ("cannot get ELF handling for '%s': %s\n", 46 if (elf_kind (elf) != ELF_K_AR) 49 elf_end (elf); 55 Elf *subelf = NULL; 57 while ((subelf = elf_begin (fd, cmd, elf)) != NULL) 65 elf_end (elf);
|
sectiondump.c | 39 static int handle_section (Elf *elf, Elf_Scn *scn); 41 static void print_symtab (Elf *elf, Elf_Data *data); 47 Elf *elf; local 63 /* Create the ELF descriptor. */ 64 elf = elf_begin (fd, ELF_C_READ, NULL); 65 if (elf == NULL) 66 error (EXIT_FAILURE, 0, "cannot create ELF descriptor: %s" [all...] |
newscn.c | 40 Elf *elf; local 59 elf = elf_begin (fd, ELF_C_WRITE, NULL); 60 if (elf == NULL) 66 section = elf_newscn (elf); 67 section = elf_nextscn (elf, section); 70 elf_end (elf);
|
arextract.c | 43 Elf *elf; local 44 Elf *subelf; 60 /* Set the ELF version. */ 63 /* Create an ELF descriptor. */ 65 elf = elf_begin (fd, cmd, NULL); 66 if (elf == NULL) 68 printf ("Cannot create ELF descriptor: %s\n", elf_errmsg (-1)); 73 if (elf_kind (elf) != ELF_K_AR) 80 while ((subelf = elf_begin (fd, cmd, elf)) != NULL [all...] |
arsymtest.c | 40 Elf *elf; local 63 /* Set the ELF version. */ 66 /* Create an ELF descriptor. */ 67 elf = elf_begin (fd, ELF_C_READ, NULL); 68 if (elf == NULL) 70 printf ("Cannot create ELF descriptor: %s\n", elf_errmsg (-1)); 75 if (elf_kind (elf) != ELF_K_AR) 82 arsym = elf_getarsym (elf, &narsym); 95 Elf *subelf [all...] |
dwfl-bug-fd-leak.c | 70 Elf *elf = dwarf_getelf (dbg); local 71 if (elf == NULL) 76 Elf *elf = dwfl_module_getelf (dwfl_addrmodule (dwfl, address), &bias); local 77 if (elf == NULL)
|
ecp.c | 45 Elf *inelf = elf_begin (infd, ELF_C_READ, NULL); 47 error (EXIT_FAILURE, 0, "problems opening '%s' as ELF file: %s", 54 Elf *outelf = elf_begin (outfd, ELF_C_WRITE, NULL); 56 error (EXIT_FAILURE, 0, "problems opening '%s' as ELF file: %s",
|
/external/elfutils/backends/ |
ppc_symbol.c | 32 #include <elf.h> 81 find_dyn_got (Elf *elf, GElf_Ehdr *ehdr, GElf_Addr *addr) 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, 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 [all...] |
alpha_init.c | 40 alpha_init (elf, machine, eh, ehlen) 41 Elf *elf __attribute__ ((unused));
|
i386_init.c | 39 i386_init (elf, machine, eh, ehlen) 40 Elf *elf __attribute__ ((unused));
|
ia64_init.c | 39 ia64_init (elf, machine, eh, ehlen) 40 Elf *elf __attribute__ ((unused));
|
ppc64_init.c | 40 ppc64_init (elf, machine, eh, ehlen) 41 Elf *elf __attribute__ ((unused));
|
ppc_init.c | 40 ppc_init (elf, machine, eh, ehlen) 41 Elf *elf __attribute__ ((unused));
|
sparc_init.c | 40 sparc_init (elf, machine, eh, ehlen) 41 Elf *elf __attribute__ ((unused));
|
/external/elfutils/libdw/ |
dwarf_begin.c | 67 Elf *elf; local 90 would break libdwarf since we are using the ELF data structures 94 /* Get an ELF descriptor. */ 95 elf = elf_begin (fd, elfcmd, NULL); 96 if (elf == NULL) 116 /* Do the real work now that we have an ELF descriptor. */ 117 result = INTUSE(dwarf_begin_elf) (elf, cmd, NULL); 121 elf_end (elf);
|
dwarf_begin_elf.c | 1 /* Create descriptor from ELF descriptor for processing file. 118 const char *scnname = elf_strptr (result->elf, ehdr->e_shstrndx, 122 /* The section name must be valid. Otherwise is the ELF file 176 global_read (Dwarf *result, Elf *elf, GElf_Ehdr *ehdr) 180 while (result != NULL && (scn = elf_nextscn (elf, scn)) != NULL) 188 scngrp_read (Dwarf *result, Elf *elf, GElf_Ehdr *ehdr, Elf_Scn *scngrp) 206 Elf_Scn *scn = elf_getscn (elf, scnidx[cnt]); 226 dwarf_begin_elf (elf, cmd, scngrp [all...] |
/external/elfutils/src/ |
arlib.h | 85 /* Add symbols from ELF with value OFFSET to the symbol table SYMTAB. */ 86 extern void arlib_add_symbols (Elf *elf, const char *arfname,
|
/external/elfutils/libdwfl/ |
core-file.c | 66 static Elf * 67 elf_begin_rand (Elf *parent, loff_t offset, loff_t size, loff_t *next) 73 inline Elf *fail (int error) 144 dwfl_report_core_segments (Dwfl *dwfl, Elf *elf, const GElf_Ehdr *ehdr, 150 if (unlikely (elf == NULL) || unlikely (ehdr == NULL)) 164 GElf_Phdr *phdr = gelf_getphdr (elf, ndx, &phdr_mem); 201 void *arg, Elf **elfp) 203 Elf *core = arg; 264 Elf *elf = arg local [all...] |
libdwfl.h | 70 char **file_name, Elf **elfp); 161 /* Report a module with start and end addresses computed from the ELF 204 yet accessed); *MAINFILE is the name of the ELF file, and *DEBUGFILE the 240 Once the module's main ELF file is opened, the ID note found 252 This returns 0 when the module's main ELF file has not yet been loaded 296 char **, Elf **); 330 char **, Elf **); 355 its arguments are the module name, and the ELF file name or null if unknown, 377 char **file_name, Elf **); 396 /* Return the ELF section name for the given relocation base index [all...] |
/external/elfutils/libebl/ |
eblopenbackend.c | 1 /* Generate ELF backend handle. 67 as the ELF specification is concerned. */ 163 static bool default_reloc_valid_use (Elf *elf, int ignore); 165 static bool default_gotpc_reloc_check (Elf *elf, int ignore); 208 static bool default_check_special_symbol (Elf *elf, GElf_Ehdr *ehdr, 214 static bool default_bss_plt_p (Elf *elf, GElf_Ehdr *ehdr) [all...] |