Home
last modified time | relevance | path

Searched refs:Elf (Results 1 – 25 of 131) sorted by relevance

123456

/external/elfutils/libelf/
Dlibelf.h140 typedef struct Elf Elf; typedef
151 extern Elf *elf_begin (int __fildes, Elf_Cmd __cmd, Elf *__ref);
154 extern Elf *elf_clone (Elf *__elf, Elf_Cmd __cmd);
157 extern Elf *elf_memory (char *__image, size_t __size);
160 extern Elf_Cmd elf_next (Elf *__elf);
163 extern int elf_end (Elf *__elf);
166 extern off_t elf_update (Elf *__elf, Elf_Cmd __cmd);
169 extern Elf_Kind elf_kind (Elf *__elf) __attribute__ ((__pure__));
172 extern off_t elf_getbase (Elf *__elf);
176 extern char *elf_getident (Elf *__elf, size_t *__ptr);
[all …]
DlibelfP.h32 #define ElfW2_(Bits, Name) Elf##Bits##_##Name
195 struct Elf *elf; /* The underlying ELF file. */
225 struct Elf struct
256 Elf *parent; argument
264 struct Elf *next; /* Used in list of archive descriptors. */ argument
354 struct Elf *children; /* List of all descriptors for this archive. */
405 extern Elf *__libelf_read_mmaped_file (int fildes, void *map_address,
407 Elf_Cmd cmd, Elf *parent)
414 extern int __libelf_next_arhdr (Elf *elf) internal_function;
417 extern char *__libelf_readall (Elf *elf) internal_function;
[all …]
Dcommon.h55 static inline Elf *
57 Elf_Cmd cmd, Elf *parent, Elf_Kind kind, size_t extra) in allocate_elf()
59 Elf *result = (Elf *) calloc (1, sizeof (Elf) + extra); in allocate_elf()
82 libelf_acquire_all (Elf *elf) in libelf_acquire_all()
88 Elf *child = elf->state.ar.children; in libelf_acquire_all()
101 libelf_release_all (Elf *elf) in libelf_release_all()
105 Elf *child = elf->state.ar.children; in libelf_release_all()
Delf_end.c32 Elf *elf; in elf_end()
34 Elf *parent;
83 struct Elf *child = parent->state.ar.children;
105 || (offsetof (struct Elf, state.elf32.scns)
106 == offsetof (struct Elf, state.elf64.scns))
156 || (offsetof (struct Elf, state.elf32.scns)
157 == offsetof (struct Elf, state.elf64.scns))
168 || (offsetof (struct Elf, state.elf32.shdr)
169 == offsetof (struct Elf, state.elf64.shdr))
176 || (offsetof (struct Elf, state.elf32.phdr)
[all …]
Dgelf.h138 extern int gelf_getclass (Elf *__elf);
144 extern size_t gelf_fsize (Elf *__elf, Elf_Type __type, size_t __count,
148 extern GElf_Ehdr *gelf_getehdr (Elf *__elf, GElf_Ehdr *__dest);
151 extern int gelf_update_ehdr (Elf *__elf, GElf_Ehdr *__src);
154 extern unsigned long int gelf_newehdr (Elf *__elf, int __class);
163 extern GElf_Phdr *gelf_getphdr (Elf *__elf, int __ndx, GElf_Phdr *__dst);
166 extern int gelf_update_phdr (Elf *__elf, int __ndx, GElf_Phdr *__src);
169 extern unsigned long int gelf_newphdr (Elf *__elf, size_t __phnum);
174 extern Elf_Data *gelf_xlatetom (Elf *__elf, Elf_Data *__dest,
179 extern Elf_Data *gelf_xlatetof (Elf *__elf, Elf_Data *__dest,
[all …]
Delf_newscn.c33 Elf *elf; in elf_newscn()
43 assert (offsetof (Elf, state.elf.scns_last)
44 == offsetof (Elf, state.elf32.scns_last));
45 assert (offsetof (Elf, state.elf.scns_last)
46 == offsetof (Elf, state.elf64.scns_last));
47 assert (offsetof (Elf, state.elf32.scns)
48 == offsetof (Elf, state.elf64.scns));
60 || (offsetof (Elf, state.elf32.scns)
61 == offsetof (Elf, state.elf64.scns))
Delf_clone.c28 Elf *
29 elf_clone (Elf *elf, Elf_Cmd cmd) in elf_clone()
31 Elf *retval = NULL; in elf_clone()
56 assert (offsetof (struct Elf, state.elf32.scns) in elf_clone()
57 == offsetof (struct Elf, state.elf64.scns)); in elf_clone()
Delf_begin.c39 static inline Elf *
41 Elf_Cmd cmd, Elf *parent) in file_read_ar()
43 Elf *elf; in file_read_ar()
185 static Elf *
187 Elf_Cmd cmd, Elf *parent) in file_read_elf()
192 Elf *elf; in file_read_elf()
417 Elf *
420 size_t maxsize, Elf_Cmd cmd, Elf *parent) in __libelf_read_mmaped_file()
450 static Elf *
452 Elf *parent) in read_unmmaped_file()
[all …]
Delf_getshstrndx.c33 Elf *elf; in elf_getshstrndx()
51 assert (offsetof (struct Elf, state.elf.ehdr)
52 == offsetof (struct Elf, state.elf32.ehdr));
55 assert (offsetof (struct Elf, state.elf.ehdr)
56 == offsetof (struct Elf, state.elf64.ehdr));
Delf_getident.c29 Elf *elf; in elf_getident()
47 || (offsetof (struct Elf, state.elf32.ehdr)
48 == offsetof (struct Elf, state.elf64.ehdr))
Delf_getshnum.c31 Elf *elf; in elf_getshnum()
52 || (offsetof (Elf, state.elf32.scns)
53 == offsetof (Elf, state.elf64.scns))
Delf_getscn.c31 Elf *elf; in elf_getscn()
49 || (offsetof (struct Elf, state.elf32.scns)
50 == offsetof (struct Elf, state.elf64.scns))
Delf_nextscn.c31 Elf *elf; in elf_nextscn()
45 || (offsetof (Elf, state.elf32.scns)
46 == offsetof (Elf, state.elf64.scns)))
Delf_readall.c29 set_address (Elf *elf, size_t offset) in set_address()
33 Elf *child = elf->state.ar.children; in set_address()
55 Elf *elf; in __libelf_readall()
Delf_strptr.c30 Elf *elf; in elf_strptr()
50 || (offsetof (struct Elf, state.elf32.scns)
51 == offsetof (struct Elf, state.elf64.scns))
Delf_getarhdr.c31 Elf *elf; in elf_getarhdr()
33 Elf *parent = elf->parent;
/external/elfcopy/
Dcommon.h12 typedef int (*section_match_fn_t)(Elf *, Elf_Scn *, void *);
13 void map_over_sections(Elf *, section_match_fn_t, void *);
15 typedef int (*segment_match_fn_t)(Elf *, Elf32_Phdr *, void *);
16 void map_over_segments(Elf *, segment_match_fn_t, void *);
Delfcopy.c37 static void update_relocations_section_symbol_references(Elf *newelf, Elf *elf,
42 static void update_relocations_section_offsets(Elf *newelf, Elf *elf, Ebl *ebl,
49 static void update_hash_table(Elf *newelf, Elf *elf,
56 static Elf64_Off section_to_header_mapping(Elf *elf,
63 static void build_dynamic_segment_strings(Elf *elf, Ebl *oldebl,
70 static void print_dynamic_segment_strings(Elf *elf, Ebl *oldebl,
77 static void adjust_dynamic_segment_offsets(Elf *elf, Ebl *oldebl,
78 Elf *newelf,
83 static void update_symbol_values(Elf *elf, GElf_Ehdr *ehdr,
84 Elf *newelf,
[all …]
Dfixdwarf.h9 Elf *elf, GElf_Ehdr *ehdr, Elf *newelf,
/external/elfutils/tests/
Dsectiondump.c27 static int handle_section (Elf *elf, Elf_Scn *scn);
29 static void print_symtab (Elf *elf, Elf_Data *data);
35 Elf *elf; in main()
74 handle_section (Elf *elf, Elf_Scn *scn) in handle_section()
159 print_symtab (Elf *elf, Elf_Data *data) in print_symtab()
/external/elfutils/src/
Dsize.c91 static int handle_ar (int fd, Elf *elf, const char *prefix, const char *fname);
94 static void handle_elf (Elf *elf, const char *fullname, const char *fname);
302 Elf *elf; in process_file()
344 print_header (Elf *elf) in print_header()
367 handle_ar (int fd, Elf *elf, const char *prefix, const char *fname) in handle_ar()
369 Elf *subelf; in handle_ar()
415 show_sysv (Elf *elf, const char *prefix, const char *fname, in show_sysv()
491 show_sysv_one_line (Elf *elf, const char *prefix, const char *fname, in show_sysv_one_line()
549 show_bsd (Elf *elf, const char *prefix, const char *fname, in show_bsd()
620 show_segments (Elf *elf, const char *prefix, const char *fname, in show_segments()
[all …]
/external/elfutils/libebl/
Dlibebl_i386.h21 extern int i386_init (Elf *elf, GElf_Half machine, Ebl *eh, size_t ehlen);
34 extern bool i386_reloc_valid_use (Elf *elf, int type);
37 extern bool i386_gotpc_reloc_check (Elf *elf, int type);
Deblopenbackend.c125 static bool default_reloc_valid_use (Elf *elf, int ignore);
126 static bool default_gotpc_reloc_check (Elf *elf, int ignore);
159 Elf *elf; in openbackend()
287 Elf *elf; in ebl_openbackend()
342 default_reloc_valid_use (Elf *elf, int ignore) in default_reloc_valid_use()
348 default_gotpc_reloc_check (Elf *elf, int ignore) in default_gotpc_reloc_check()
Dlibebl.h35 Elf *elf;
47 bool (*reloc_valid_use) (Elf *, int);
50 bool (*gotpc_reloc_check) (Elf *, int);
109 extern Ebl *ebl_openbackend (Elf *elf);
Dlibebl_ppc.h21 extern int ppc_init (Elf *elf, GElf_Half machine, Ebl *eh, size_t ehlen);
34 extern bool ppc_reloc_valid_use (Elf *elf, int type);

123456