/external/elfutils/src/ |
strings.c | 57 static int read_elf (Elf *elf, int fd, const char *fname, off64_t fdlen); 134 /* Mapped parts of the ELF file. */ 194 Elf *elf = NULL; local 198 || (elf = elf_begin (fd, ELF_C_READ, NULL)) == NULL 199 || elf_kind (elf) != ELF_K_ELF) 202 result |= read_elf (elf, fd, fname, fdlen); 204 /* This call will succeed even if ELF is NULL. */ 205 elf_end (elf); [all...] |
strip.c | 51 #include <elf-knowledge.h> 88 N_("Relax a few rules to handle slightly broken ELF files"), 0 }, 111 /* Handle one ELF file. */ 112 static int handle_elf (int fd, Elf *elf, const char *prefix, 116 static int handle_ar (int fd, Elf *elf, const char *prefix, const char *fname, 142 /* If true relax some ELF rules for input files. */ 333 /* Now get the ELF descriptor. */ 334 Elf *elf = elf_begin (fd, output_fname == NULL ? ELF_C_RDWR : ELF_C_READ local [all...] |
arlib.c | 208 /* Add symbols from ELF with value OFFSET to the symbol table SYMTAB. */ 210 arlib_add_symbols (Elf *elf, const char *arfname, const char *membername, 218 /* We only add symbol tables for ELF files. It makes not much sense 222 if (elf_kind (elf) != ELF_K_ELF) 226 GElf_Ehdr *ehdr = gelf_getehdr (elf, &ehdr_mem); 228 error (EXIT_FAILURE, 0, gettext ("cannot read ELF header of %s(%s): %s"), 242 while ((scn = elf_nextscn (elf, scn)) != NULL) 270 const char *symname = elf_strptr (elf, shdr->sh_link, sym->st_name);
|
ld.h | 133 /* This is the ELF library handle for this file. */ 134 Elf *elf; member in struct:usedfiles 136 /* The ELF header. */ 146 separate field and not the e_shstrndx field in the ELF header 259 return (elf_kind (file->elf) == ELF_K_ELF 266 return (elf_kind (file->elf) == ELF_K_ELF 273 return elf_kind (file->elf) == ELF_K_AR; 344 create as much of the ELF structure as possible. */ 743 /* ELF backend library handle. * [all...] |
readelf.c | 1 /* Print information from ELF file in human-readable form. 75 { "file-header", 'h', NULL, 0, N_("Display the ELF file header"), 0 }, 107 Print information from ELF file in human-readable form."); 229 static void dump_archive_index (Elf *, const char *); 245 /* Before we start tell the ELF library which version we are using. */ 429 /* Create an `Elf' descriptor. */ 430 Elf *elf = elf_begin (fd, ELF_C_READ_MMAP, NULL); local 431 if (elf == NULL) 432 error (0, 0, gettext ("cannot generate Elf descriptor: %s") 572 Elf *elf = dwfl_module_getelf (dwflmod, &dwflbias); local [all...] |
ld.c | 311 /* Before we start tell the ELF library which version we are using. */ 338 /* Determine which ELF backend to use. */ 470 been opened since we need the ELF descriptor to deduce type [all...] |
elflint.c | 1 /* Pedantic checking of ELF files compliance with gABI/psABI spec. 47 #include <elf-knowledge.h> 83 Pedantic checking of ELF files compliance with gABI/psABI spec."); 99 static void process_file (int fd, Elf *elf, const char *prefix, 102 static void process_elf_file (Elf *elf, const char *prefix, const char *suffix, 122 /* True if binary is from strip -f, not a normal ELF file. */ 148 /* Before we start tell the ELF library which version we are using. */ 163 /* Create an `Elf' descriptor. * 164 Elf *elf = elf_begin (fd, ELF_C_READ_MMAP, NULL); local [all...] |
ldgeneric.c | 48 #include <elf-knowledge.h> 123 bits) in 32- and 64-bit ELF. */ 659 if (elf_getshnum (fileinfo->elf, &shnum) < 0) 666 scnname = elf_strptr (fileinfo->elf, 691 scnname = elf_strptr (oldfile->elf, 843 elf_strptr (fileinfo->elf, fileinfo->shstrndx, 888 elf_strptr (fileinfo->elf, fileinfo->shstrndx, shdr->sh_name)); 893 elf_strptr (fileinfo->elf, fileinfo->shstrndx, 898 elf_strptr (fileinfo->elf, 989 && strcmp (elf_strptr (fileinfo->elf, 2696 Elf *elf = ld_state.outelf = elf_begin (fd, local [all...] |
/external/elfutils/libdw/ |
libdw.h | 212 /* Create a handle for a new debug session for an ELF file. */ 213 extern Dwarf *dwarf_begin_elf (Elf *elf, Dwarf_Cmd cmd, Elf_Scn *scngrp); 215 /* Retrieve ELF descriptor used for DWARF access. */ 216 extern Elf *dwarf_getelf (Dwarf *dwarf);
|
libdwP.h | 145 /* The underlying ELF file. */ 146 Elf *elf; member in struct:Dwarf 154 /* If true, we allocated the ELF descriptor ourselves. */
|
/development/tools/elftree/ |
elftree.c | 108 Elf *e; 258 fprintf(stderr, "Usage: elftree [ -s | -h ] elf-file\n"
|
/external/elfutils/libdwfl/ |
argp-std.c | 218 Elf *core = elf_begin (fd, ELF_C_READ_MMAP_PRIVATE, NULL); 223 _("cannot read ELF core file: %s"),
|
link_map.c | 218 if (likely (mod->e_type != ET_REL) && mod->main.elf != NULL) 221 vaddr - mod->main.bias, minread, mod->main.elf); 404 && mod->main.elf == NULL 454 if (unlikely (gelf_getehdr (mod->main.elf, &ehdr) == NULL)) 484 GElf_Phdr *phdr = gelf_getphdr (mod->main.elf, i, &phdr_mem); 539 Elf_Data *data = elf_getdata_rawchunk (mod->main.elf, phdr->p_offset, 543 const size_t entsize = gelf_fsize (mod->main.elf, 619 if (mod->main.elf != NULL) 653 const Elf##NN##_auxv_t *av = auxv; \ 656 Elf##NN##_Addr val = BL##NN (av[i].a_un.a_val); [all...] |
dwfl_segment_report_module.c | 1 /* Sniff out modules from ELF headers visible in memory segments. 55 #include <elf.h> 435 /* We must have seen the segment covering offset 0, or else the ELF 577 Elf *elf = NULL; local 580 read_eagerly_arg, &elf) 581 && elf == NULL) 631 elf = elf_memory (contents, file_trimmed_end); 632 if (unlikely (elf == NULL)) 635 elf->flags |= ELF_F_MALLOCED [all...] |
linux-kernel-modules.c | 581 /* Find the ELF file for the running kernel and dwfl_report_elf it. */ 594 char **file_name, Elf **elfp)
|
/external/elfutils/libebl/ |
libebl.h | 59 #include "elf-knowledge.h" 70 /* Get backend handle for object associated with ELF handle. */ 71 extern Ebl *ebl_openbackend (Elf *elf); 72 /* Similar but without underlying ELF file. */ 83 /* Get ELF machine. */ 86 /* Get ELF class. */ 89 /* Get ELF data encoding. */ 93 /* Function to call the callback functions including default ELF 259 /* ELF string table handling. * [all...] |
/external/elfutils/libelf/ |
elf_getarsym.c | 70 elf_getarsym (elf, ptr) 71 Elf *elf; 74 if (elf->kind != ELF_K_AR) 84 *ptr = elf->state.ar.ar_sym_num; 86 if (elf->state.ar.ar_sym == (Elf_Arsym *) -1l) 93 Elf_Arsym *result = elf->state.ar.ar_sym; 97 rwlock_wrlock (elf->lock); 100 elf->state.ar.ar_sym = (Elf_Arsym *) -1l; 103 if (elf->map_address == NULL [all...] |
elf32_getshdr.c | 75 Elf *elf = scn->elf; local 76 ElfW2(LIBELFBITS,Ehdr) *ehdr = elf->state.ELFW(elf,LIBELFBITS).ehdr; 84 if (__elf_getshnum_rdlock (elf, &shnum) != 0) 89 of entries from the ELF header. */ 90 ElfW2(LIBELFBITS,Shdr) *shdr = elf->state.ELFW(elf,LIBELFBITS).shdr = 92 if (elf->state.ELFW(elf,LIBELFBITS).shdr == NULL [all...] |
elf32_updatefile.c | 127 __elfw2(LIBELFBITS,updatemmap) (Elf *elf, int change_bo, size_t shnum) 132 /* We need the ELF header several times. */ 133 ehdr = elf->state.ELFW(elf,LIBELFBITS).ehdr; 135 /* Write out the ELF header. */ 136 if ((elf->state.ELFW(elf,LIBELFBITS).ehdr_flags | elf->flags) & ELF_F_DIRTY) 145 /* Today there is only one version of the ELF header. * [all...] |
/external/elfutils/tests/ |
asm-tst3.c | 69 Elf *elf; local 156 elf = elf_begin (fd, ELF_C_READ, NULL); 157 if (elf == NULL) 159 printf ("cannot create ELF descriptor: %s\n", elf_errmsg (-1)); 163 if (elf_kind (elf) != ELF_K_ELF) 165 puts ("not a valid ELF file"); 170 ehdr = gelf_getehdr (elf, &ehdr_mem); 173 printf ("cannot get ELF header: %s\n", elf_errmsg (-1)); 184 scn = elf_getscn (elf, cnt) [all...] |
asm-tst9.c | 97 Elf *elf; local 183 elf = elf_begin (fd, ELF_C_READ, NULL); 184 if (elf == NULL) 186 printf ("cannot create ELF descriptor: %s\n", elf_errmsg (-1)); 190 if (elf_kind (elf) != ELF_K_ELF) 192 puts ("not a valid ELF file"); 197 ehdr = gelf_getehdr (elf, &ehdr_mem); 200 printf ("cannot get ELF header: %s\n", elf_errmsg (-1)); 207 puts ("ELF header does not match") [all...] |
update4.c | 47 Elf *elf; local 72 elf = elf_begin (fd, ELF_C_WRITE, NULL); 73 if (elf == NULL) 75 printf ("cannot create ELF descriptor: %s\n", elf_errmsg (-1)); 79 /* Create an ELF header. */ 80 ehdr = elf32_newehdr (elf); 83 printf ("cannot create ELF header: %s\n", elf_errmsg (-1)); 87 /* Print the ELF header values. */ 109 elf_flagehdr (elf, ELF_C_SET, ELF_F_DIRTY) [all...] |
/external/linux-tools-perf/util/ |
symbol.c | 22 #include <elf.h> 41 static int elf_read_build_id(Elf *elf, void *bf, size_t size); 565 * the original ELF section names vmlinux have. 845 static Elf_Scn *elf_section_by_name(Elf *elf, GElf_Ehdr *ep, 852 while ((sec = elf_nextscn(elf, sec)) != NULL) { 856 str = elf_strptr(elf, ep->e_shstrndx, shp->sh_name); 899 Elf *elf; local 1082 Elf *elf; local 1398 Elf *elf; local [all...] |
probe-finder.c | 172 char **file_name, Elf **elfp) [all...] |
/external/chromium_org/third_party/usb_ids/ |
usb.ids | [all...] |