/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);
|
/external/elfutils/libelf/ |
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);
|
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_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);
|
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...] |
/external/elfutils/tests/ |
early-offscn.c | 42 /* Set the ELF version. */ 50 Elf *elf = elf_begin (fd, ELF_C_READ, NULL); local 51 if (elf == NULL) 54 Elf_Scn *scn = gelf_offscn (elf, strtoull (argv[2], NULL, 0)); 58 elf_end (elf);
|
rdwrmmap.c | 18 Elf *elf = elf_begin (fd, ELF_C_RDWR_MMAP, NULL); local 19 if (elf == NULL) 22 if (elf_update (elf, ELF_C_WRITE) < 0) 25 elf_end (elf);
|
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);
|
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...] |
update2.c | 44 Elf *elf; local 58 elf = elf_begin (fd, ELF_C_WRITE, NULL); 59 if (elf == NULL) 61 printf ("cannot create ELF descriptor: %s\n", elf_errmsg (-1)); 65 /* Create an ELF header. */ 66 ehdr = elf32_newehdr (elf); 69 printf ("cannot create ELF header: %s\n", elf_errmsg (-1)); 73 /* Print the ELF header values. */ 95 elf_flagehdr (elf, ELF_C_SET, ELF_F_DIRTY) [all...] |
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);
|
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...] |
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...] |
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...] |
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...] |
asm-tst8.c | 47 Elf *elf; local 91 elf = elf_begin (fd, ELF_C_READ, NULL); 92 if (elf == NULL) 94 printf ("cannot create ELF descriptor: %s\n", elf_errmsg (-1)); 98 if (elf_kind (elf) != ELF_K_ELF) 100 puts ("not a valid ELF file"); 111 scn = elf_getscn (elf, cnt); 132 / gelf_fsize (elf, ELF_T_SYM, 1, EV_CURRENT)); 187 elf_end (elf); [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)
|
newfile.c | 63 Elf *elf; local 78 elf = elf_begin (fd, ELF_C_WRITE, NULL); 79 if (elf == NULL) 86 if (elf32_newehdr (elf) == NULL) 93 Elf32_Ehdr *ehdr = elf32_getehdr (elf); 138 if (elf32_newphdr (elf, 10) == NULL) 148 ehdr = elf32_getehdr (elf); 174 (void) elf_end (elf);
|
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...] |
showptable.c | 38 Elf *elf; local 58 elf = elf_begin (fd, ELF_C_READ, NULL); 59 if (elf == NULL) 61 printf ("cannot open ELF file: %s\n", elf_errmsg (-1)); 65 if (elf_kind (elf) != ELF_K_ELF) 67 printf ("\"%s\" is not an ELF file\n", argv[1]); 71 if (gelf_getehdr (elf, &ehdr) == NULL) 73 printf ("cannot get the ELF header: %s\n", elf_errmsg (-1)); 78 gelf_getclass (elf) == ELFCLASS32 ? 9 : 17, "offset" [all...] |
update3.c | 46 Elf *elf; local 67 elf = elf_begin (fd, ELF_C_WRITE, NULL); 68 if (elf == NULL) 70 printf ("cannot create ELF descriptor: %s\n", elf_errmsg (-1)); 74 /* Create an ELF header. */ 75 ehdr = elf32_newehdr (elf); 78 printf ("cannot create ELF header: %s\n", elf_errmsg (-1)); 82 /* Print the ELF header values. */ 104 elf_flagehdr (elf, ELF_C_SET, ELF_F_DIRTY) [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/elfutils/libebl/ |
libeblP.h | 67 /* ELF machine, class, and data encoding. */ 73 Elf *elf; member in struct:ebl 89 typedef const char *(*ebl_bhinit_t) (Elf *, GElf_Half, Ebl *, size_t);
|
/external/elfutils/libdwfl/ |
offline.c | 73 if (mod->debug.elf == NULL) 81 Elf_Scn *ourscn = elf_getscn (mod->debug.elf, shndx); 84 while ((scn = elf_nextscn (mod->debug.elf, scn)) != ourscn) 96 while ((scn = elf_nextscn (mod->main.elf, scn)) != NULL) 117 const char *file_name, int fd, Elf *elf); 119 const char *file_name, int fd, Elf *elf, 123 /* Report one module for an ELF file, or many for an archive. 124 Always consumes ELF and FD. * 291 Elf *elf = elf_begin (fd, ELF_C_READ_MMAP_PRIVATE, NULL); local [all...] |