HomeSort by relevance Sort by last modified time
    Searched defs:elf (Results 1 - 25 of 40) sorted by null

1 2

  /external/elfutils/libelf/
gelf_getmove.c 36 Elf *elf; local
59 elf = ((Elf_Data_Scn *) data)->s->elf;
60 rwlock_rdlock (elf->lock);
64 rwlock_unlock (elf->lock);
gelf_getdyn.c 37 Elf *elf; local
48 elf = data_scn->s->elf;
50 rwlock_rdlock (elf->lock);
55 if (elf->class == ELFCLASS32)
96 rwlock_unlock (elf->lock);
gelf_update_shdr.c 32 Elf *elf; local
37 elf = scn->elf;
38 rwlock_wrlock (elf->lock);
40 if (elf->class == ELFCLASS32)
91 rwlock_unlock (elf->lock);
elf32_getshdr.c 42 if (unlikely (scn->elf->state.elf.ehdr == NULL))
48 if (unlikely (scn->elf->class != ELFW(ELFCLASS,LIBELFBITS)))
58 Elf *elf = scn->elf; local
59 ElfW2(LIBELFBITS,Ehdr) *ehdr = elf->state.ELFW(elf,LIBELFBITS).ehdr;
65 rwlock_wrlock (elf->lock);
72 if (INTUSE (elf_getshnum) (elf, &shnum) != 0
    [all...]
elf_getdata.c 28 #include "elf-knowledge.h"
186 Elf *elf = scn->elf; local
188 if (elf->class == ELFCLASS32)
226 entsize = SH_ENTSIZE_HASH (gelf_getehdr (elf, &ehdr_mem));
231 entsize = shtype_map[__libelf_version - 1][elf->class - 1][TYPEIDX (type)].size;
233 entsize = shtype_map[0][elf->class - 1][TYPEIDX (type)].size;
249 if (elf->map_address != NULL)
253 if (offset + size > elf->maximum_size
342 Elf *elf; local
    [all...]
nlist.c 51 Elf *elf; local
69 /* For compatibility reasons (`nlist' existed before ELF and libelf)
70 we don't expect the caller to set the ELF version. Do this here
75 /* Now get an ELF descriptor. */
76 elf = INTUSE(elf_begin) (fd, ELF_C_READ_MMAP, NULL);
77 if (elf == NULL)
82 while ((scn = INTUSE(elf_nextscn) (elf, scn)) != NULL)
117 / INTUSE(gelf_fsize) (elf, ELF_T_SYM, 1, data->d_version));
139 mem.str = INTUSE(elf_strptr) (elf, shdr->sh_link, sym->st_name)
    [all...]
  /external/elfutils/libdw/
dwarf_begin.c 31 Elf *elf; local
54 would break libdwarf since we are using the ELF data structures
58 /* Get an ELF descriptor. */
59 elf = elf_begin (fd, elfcmd, NULL);
60 if (elf == NULL)
74 /* Do the real work now that we have an ELF descriptor. */
75 result = dwarf_begin_elf (elf, cmd, NULL);
79 elf_end (elf);
  /external/elfutils/tests/
newscn.c 24 Elf *elf; local
43 elf = elf_begin (fd, ELF_C_WRITE, NULL);
44 if (elf == NULL)
50 section = elf_newscn (elf);
51 section = elf_nextscn (elf, section);
54 elf_end (elf);
update1.c 32 Elf *elf; local
45 elf = elf_begin (fd, ELF_C_WRITE, NULL);
46 if (elf == NULL)
48 printf ("cannot create ELF descriptor: %s\n", elf_errmsg (-1));
52 /* Create an ELF header. */
53 ehdr = elf32_newehdr (elf);
56 printf ("cannot create ELF header: %s\n", elf_errmsg (-1));
60 /* Print the ELF header values. */
84 if (elf_update (elf, ELF_C_WRITE) < 0
    [all...]
update2.c 32 Elf *elf; local
46 elf = elf_begin (fd, ELF_C_WRITE, NULL);
47 if (elf == NULL)
49 printf ("cannot create ELF descriptor: %s\n", elf_errmsg (-1));
53 /* Create an ELF header. */
54 ehdr = elf32_newehdr (elf);
57 printf ("cannot create ELF header: %s\n", elf_errmsg (-1));
61 /* Print the ELF header values. */
83 elf_flagehdr (elf, ELF_C_SET, ELF_F_DIRTY)
    [all...]
arsymtest.c 28 Elf *elf; local
51 /* Set the ELF version. */
54 /* Create an ELF descriptor. */
55 elf = elf_begin (fd, ELF_C_READ, NULL);
56 if (elf == NULL)
58 printf ("Cannot create ELF descriptor: %s\n", elf_errmsg (-1));
63 if (elf_kind (elf) != ELF_K_AR)
70 arsym = elf_getarsym (elf, &narsym);
83 Elf *subelf
    [all...]
scnnames.c 26 Elf *elf; local
41 elf = elf_begin (fd, ELF_C_READ, NULL);
42 if (elf == NULL)
44 printf ("cannot open ELF file: %s\n", elf_errmsg (-1));
48 if (elf_kind (elf) != ELF_K_ELF)
50 printf ("\"%s\" is not an ELF file\n", argv[1]);
54 if (gelf_getehdr (elf, &ehdr) == NULL)
56 printf ("cannot get the ELF header: %s\n", elf_errmsg (-1));
63 while ((scn = elf_nextscn (elf, scn)) != NULL
    [all...]
arextract.c 31 Elf *elf; local
32 Elf *subelf;
48 /* Set the ELF version. */
51 /* Create an ELF descriptor. */
53 elf = elf_begin (fd, cmd, NULL);
54 if (elf == NULL)
56 printf ("Cannot create ELF descriptor: %s\n", elf_errmsg (-1));
61 if (elf_kind (elf) != ELF_K_AR)
68 while ((subelf = elf_begin (fd, cmd, elf)) != NULL
    [all...]
asm-tst1.c 61 Elf *elf; local
110 elf = elf_begin (fd, ELF_C_READ, NULL);
111 if (elf == NULL)
113 printf ("cannot create ELF descriptor: %s\n", elf_errmsg (-1));
117 if (elf_kind (elf) != ELF_K_ELF)
119 puts ("not a valid ELF file");
124 ehdr = gelf_getehdr (elf, &ehdr_mem);
127 printf ("cannot get ELF header: %s\n", elf_errmsg (-1));
134 puts ("ELF header does not match")
    [all...]
asm-tst2.c 61 Elf *elf; local
126 elf = elf_begin (fd, ELF_C_READ, NULL);
127 if (elf == NULL)
129 printf ("cannot create ELF descriptor: %s\n", elf_errmsg (-1));
133 if (elf_kind (elf) != ELF_K_ELF)
135 puts ("not a valid ELF file");
140 ehdr = gelf_getehdr (elf, &ehdr_mem);
143 printf ("cannot get ELF header: %s\n", elf_errmsg (-1));
150 puts ("ELF header does not match")
    [all...]
asm-tst7.c 31 Elf *elf; local
67 elf = elf_begin (fd, ELF_C_READ, NULL);
68 if (elf == NULL)
70 printf ("cannot create ELF descriptor: %s\n", elf_errmsg (-1));
74 if (elf_kind (elf) != ELF_K_ELF)
76 puts ("not a valid ELF file");
87 scn = elf_getscn (elf, cnt);
108 / gelf_fsize (elf, ELF_T_SYM, 1, EV_CURRENT));
156 elf_end (elf);
    [all...]
asm-tst8.c 31 Elf *elf; local
68 elf = elf_begin (fd, ELF_C_READ, NULL);
69 if (elf == NULL)
71 printf ("cannot create ELF descriptor: %s\n", elf_errmsg (-1));
75 if (elf_kind (elf) != ELF_K_ELF)
77 puts ("not a valid ELF file");
88 scn = elf_getscn (elf, cnt);
109 / gelf_fsize (elf, ELF_T_SYM, 1, EV_CURRENT));
164 elf_end (elf);
    [all...]
newfile.c 51 Elf *elf; local
66 elf = elf_begin (fd, ELF_C_WRITE, NULL);
67 if (elf == NULL)
74 if (elf32_newehdr (elf) == NULL)
81 Elf32_Ehdr *ehdr = elf32_getehdr (elf);
126 if (elf32_newphdr (elf, 10) == NULL)
136 ehdr = elf32_getehdr (elf);
162 (void) elf_end (elf);
saridx.c 87 Elf *elf; local
112 /* Set the ELF version we are using here. */
115 puts ("ELF library too old");
121 elf = elf_begin (fd, cmd, NULL);
122 if (elf == NULL)
129 if (elf_kind (elf) != ELF_K_AR)
138 Elf *subelf;
143 while ((subelf = elf_begin (fd, cmd, elf)) != NULL)
157 fputs ("ELF file:\n", stdout)
    [all...]
showptable.c 26 Elf *elf; local
40 elf = elf_begin (fd, ELF_C_READ, NULL);
41 if (elf == NULL)
43 printf ("cannot open ELF file: %s\n", elf_errmsg (-1));
47 if (elf_kind (elf) != ELF_K_ELF)
49 printf ("\"%s\" is not an ELF file\n", argv[1]);
53 if (gelf_getehdr (elf, &ehdr) == NULL)
55 printf ("cannot get the ELF header: %s\n", elf_errmsg (-1));
60 gelf_getclass (elf) == ELFCLASS32 ? 9 : 17, "offset"
    [all...]
update3.c 34 Elf *elf; local
55 elf = elf_begin (fd, ELF_C_WRITE, NULL);
56 if (elf == NULL)
58 printf ("cannot create ELF descriptor: %s\n", elf_errmsg (-1));
62 /* Create an ELF header. */
63 ehdr = elf32_newehdr (elf);
66 printf ("cannot create ELF header: %s\n", elf_errmsg (-1));
70 /* Print the ELF header values. */
92 elf_flagehdr (elf, ELF_C_SET, ELF_F_DIRTY)
    [all...]
update4.c 35 Elf *elf; local
60 elf = elf_begin (fd, ELF_C_WRITE, NULL);
61 if (elf == NULL)
63 printf ("cannot create ELF descriptor: %s\n", elf_errmsg (-1));
67 /* Create an ELF header. */
68 ehdr = elf32_newehdr (elf);
71 printf ("cannot create ELF header: %s\n", elf_errmsg (-1));
75 /* Print the ELF header values. */
97 elf_flagehdr (elf, ELF_C_SET, ELF_F_DIRTY)
    [all...]
asm-tst9.c 81 Elf *elf; local
160 elf = elf_begin (fd, ELF_C_READ, NULL);
161 if (elf == NULL)
163 printf ("cannot create ELF descriptor: %s\n", elf_errmsg (-1));
167 if (elf_kind (elf) != ELF_K_ELF)
169 puts ("not a valid ELF file");
174 ehdr = gelf_getehdr (elf, &ehdr_mem);
177 printf ("cannot get ELF header: %s\n", elf_errmsg (-1));
184 puts ("ELF header does not match")
    [all...]
sectiondump.c 27 static int handle_section (Elf *elf, Elf_Scn *scn);
29 static void print_symtab (Elf *elf, Elf_Data *data);
35 Elf *elf; local
51 /* Create the ELF descriptor. */
52 elf = elf_begin (fd, ELF_C_READ, NULL);
53 if (elf == NULL)
54 error (EXIT_FAILURE, 0, "cannot create ELF descriptor: %s"
    [all...]
asm-tst3.c 53 Elf *elf; local
133 elf = elf_begin (fd, ELF_C_READ, NULL);
134 if (elf == NULL)
136 printf ("cannot create ELF descriptor: %s\n", elf_errmsg (-1));
140 if (elf_kind (elf) != ELF_K_ELF)
142 puts ("not a valid ELF file");
147 ehdr = gelf_getehdr (elf, &ehdr_mem);
150 printf ("cannot get ELF header: %s\n", elf_errmsg (-1));
161 scn = elf_getscn (elf, cnt)
    [all...]

Completed in 6751 milliseconds

1 2