Home
last modified time | relevance | path

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

12345

/freebsd-11-stable/contrib/elftoolchain/libelf/
HDlibelf.h37 typedef struct _Elf Elf; typedef
185 Elf *elf_begin(int _fd, Elf_Cmd _cmd, Elf *_elf);
186 int elf_cntl(Elf *_elf, Elf_Cmd _cmd);
187 int elf_end(Elf *_elf);
195 unsigned int elf_flagehdr(Elf *_elf, Elf_Cmd _cmd, unsigned int _flags);
196 unsigned int elf_flagelf(Elf *_elf, Elf_Cmd _cmd, unsigned int _flags);
197 unsigned int elf_flagphdr(Elf *_elf, Elf_Cmd _cmd, unsigned int _flags);
200 Elf_Arhdr *elf_getarhdr(Elf *_elf);
201 Elf_Arsym *elf_getarsym(Elf *_elf, size_t *_ptr);
202 off_t elf_getbase(Elf *_elf);
[all …]
HD_libelf.h95 Elf *e_parent; /* non-NULL for archive members */
208 Elf *_libelf_allocate_elf(void);
209 Elf_Scn *_libelf_allocate_scn(Elf *_e, size_t _ndx);
210 Elf_Arhdr *_libelf_ar_gethdr(Elf *_e);
211 Elf *_libelf_ar_open(Elf *_e, int _reporterror);
212 Elf *_libelf_ar_open_member(int _fd, Elf_Cmd _c, Elf *_ar);
213 Elf_Arsym *_libelf_ar_process_bsd_symtab(Elf *_ar, size_t *_dst);
214 Elf_Arsym *_libelf_ar_process_svr4_symtab(Elf *_ar, size_t *_dst);
215 long _libelf_checksum(Elf *_e, int _elfclass);
216 void *_libelf_ehdr(Elf *_e, int _elfclass, int _allocate);
[all …]
HDgelf.h74 long gelf_checksum(Elf *_elf);
75 size_t gelf_fsize(Elf *_elf, Elf_Type _type, size_t _count,
78 int gelf_getclass(Elf *_elf);
80 GElf_Ehdr *gelf_getehdr(Elf *_elf, GElf_Ehdr *_dst);
81 GElf_Phdr *gelf_getphdr(Elf *_elf, int _index, GElf_Phdr *_dst);
88 void * gelf_newehdr(Elf *_elf, int _class);
89 void * gelf_newphdr(Elf *_elf, size_t _phnum);
91 int gelf_update_ehdr(Elf *_elf, GElf_Ehdr *_src);
92 int gelf_update_phdr(Elf *_elf, int _index, GElf_Phdr *_src);
99 Elf_Data *gelf_xlatetof(Elf *_elf, Elf_Data *_dst, const Elf_Data *_src, unsigned int _encode);
[all …]
HDgelf_ehdr.c39 elf32_getehdr(Elf *e) in elf32_getehdr()
45 elf64_getehdr(Elf *e) in elf64_getehdr()
51 gelf_getehdr(Elf *e, GElf_Ehdr *d) in gelf_getehdr()
96 elf32_newehdr(Elf *e) in elf32_newehdr()
102 elf64_newehdr(Elf *e) in elf64_newehdr()
108 gelf_newehdr(Elf *e, int ec) in gelf_newehdr()
119 gelf_update_ehdr(Elf *e, GElf_Ehdr *s) in gelf_update_ehdr()
HDgelf_phdr.c37 elf32_getphdr(Elf *e) in elf32_getphdr()
43 elf64_getphdr(Elf *e) in elf64_getphdr()
49 gelf_getphdr(Elf *e, int index, GElf_Phdr *d) in gelf_getphdr()
101 elf32_newphdr(Elf *e, size_t count) in elf32_newphdr()
107 elf64_newphdr(Elf *e, size_t count) in elf64_newphdr()
113 gelf_newphdr(Elf *e, size_t count) in gelf_newphdr()
123 gelf_update_phdr(Elf *e, int ndx, GElf_Phdr *s) in gelf_update_phdr()
HDlibelf_allocate.c41 Elf *
44 Elf *e; in _libelf_allocate_elf()
63 _libelf_init_elf(Elf *e, Elf_Kind kind) in _libelf_init_elf()
80 _libelf_release_elf(Elf *e) in _libelf_release_elf()
147 _libelf_allocate_scn(Elf *e, size_t ndx) in _libelf_allocate_scn()
170 Elf *e; in _libelf_release_scn()
HDelf_shstrndx.c35 _libelf_getshdrstrndx(Elf *e, size_t *strndx) in _libelf_getshdrstrndx()
55 elf_getshdrstrndx(Elf *e, size_t *strndx) in elf_getshdrstrndx()
61 elf_getshstrndx(Elf *e, size_t *strndx) /* Deprecated API. */ in elf_getshstrndx()
67 elf_setshstrndx(Elf *e, size_t strndx) in elf_setshstrndx()
HDlibelf_convert.m440 # file representations of Elf data structures.
69 # `In-memory' representations of an Elf data structure use natural
147 Elf$3_$2 t, *s = (Elf$3_$2 *) (uintptr_t) src;
170 Elf$3_$2 t, *d = (Elf$3_$2 *) (uintptr_t) dst;
173 if (dsz < count * sizeof(Elf$3_$2))
210 `pushdef(`SZ',$2)/* Swap an Elf$2_$1 */
211 SWAP_MEMBERS(Elf$2_$1_DEF)popdef(`SZ')')
228 `pushdef(`SZ',$2)/* Write an Elf$2_$1 */
229 WRITE_MEMBERS(Elf$2_$1_DEF)popdef(`SZ')')
246 `pushdef(`SZ',$2)/* Read an Elf$2_$1 */
[all …]
HDgelf_checksum.c35 elf32_checksum(Elf *e) in elf32_checksum()
41 elf64_checksum(Elf *e) in elf64_checksum()
47 gelf_checksum(Elf *e) in gelf_checksum()
HDlibelf_extended.c38 _libelf_getscn0(Elf *e) in _libelf_getscn0()
49 _libelf_setshnum(Elf *e, void *eh, int ec, size_t shnum) in _libelf_setshnum()
79 _libelf_setshstrndx(Elf *e, void *eh, int ec, size_t shstrndx) in _libelf_setshstrndx()
108 _libelf_setphnum(Elf *e, void *eh, int ec, size_t phnum) in _libelf_setphnum()
HDelf_shnum.c35 _libelf_getshdrnum(Elf *e, size_t *shnum) in _libelf_getshdrnum()
55 elf_getshdrnum(Elf *e, size_t *shnum) in elf_getshdrnum()
62 elf_getshnum(Elf *e, size_t *shnum) in elf_getshnum()
HDelf_phnum.c35 _libelf_getphdrnum(Elf *e, size_t *phnum) in _libelf_getphdrnum()
55 elf_getphdrnum(Elf *e, size_t *phnum) in elf_getphdrnum()
62 elf_getphnum(Elf *e, size_t *phnum) in elf_getphnum()
HDlibelf_ar.c108 _libelf_ar_gethdr(Elf *e) in _libelf_ar_gethdr()
110 Elf *parent; in _libelf_ar_gethdr()
206 Elf *
207 _libelf_ar_open_member(int fd, Elf_Cmd c, Elf *elf) in _libelf_ar_open_member()
209 Elf *e; in _libelf_ar_open_member()
316 _libelf_ar_process_bsd_symtab(Elf *e, size_t *count) in _libelf_ar_process_bsd_symtab()
430 _libelf_ar_process_svr4_symtab(Elf *e, size_t *count) in _libelf_ar_process_svr4_symtab()
HDelf_begin.c33 Elf *
34 elf_begin(int fd, Elf_Cmd c, Elf *a) in elf_begin()
36 Elf *e; in elf_begin()
HDelf_open.c37 Elf *
53 Elf *
HDelf_scn.c58 _libelf_load_section_headers(Elf *e, void *ehdr) in _libelf_load_section_headers()
145 elf_getscn(Elf *e, size_t index) in elf_getscn()
190 elf_newscn(Elf *e) in elf_newscn()
245 elf_nextscn(Elf *e, Elf_Scn *s) in elf_nextscn()
HDelf_next.c36 elf_next(Elf *e) in elf_next()
39 Elf *parent; in elf_next()
HDelf_flag.c81 elf_flagehdr(Elf *e, Elf_Cmd c, unsigned int flags) in elf_flagehdr()
110 elf_flagelf(Elf *e, Elf_Cmd c, unsigned int flags) in elf_flagelf()
143 elf_flagphdr(Elf *e, Elf_Cmd c, unsigned int flags) in elf_flagphdr()
/freebsd-11-stable/contrib/llvm-project/llvm/tools/llvm-objdump/
HDELFDump.cpp25 static Expected<StringRef> getDynamicStrTab(const ELFFile<ELFT> *Elf) { in getDynamicStrTab() argument
26 auto DynamicEntriesOrError = Elf->dynamicEntries(); in getDynamicStrTab()
32 auto MappedAddrOrError = Elf->toMappedAddr(Dyn.getPtr()); in getDynamicStrTab()
40 auto SectionsOrError = Elf->sections(); in getDynamicStrTab()
46 return Elf->getStringTableForSymtab(Sec); in getDynamicStrTab()
162 void printDynamicSection(const ELFFile<ELFT> *Elf, StringRef Filename) { in printDynamicSection() argument
164 unwrapOrError(Elf->dynamicEntries(), Filename); in printDynamicSection()
170 std::string Str = Elf->getDynamicTagAsString(Dyn.d_tag); in printDynamicSection()
178 Expected<StringRef> StrTabOrErr = getDynamicStrTab(Elf); in printDynamicSection()
315 void printSymbolVersionInfo(const ELFFile<ELFT> *Elf, StringRef FileName) { in printSymbolVersionInfo() argument
[all …]
/freebsd-11-stable/cddl/contrib/opensolaris/tools/ctf/cvt/
HDinput.c50 built_source_types(Elf *elf, char const *file) in built_source_types()
87 read_file(Elf *elf, char *file, char *label, read_cb_f *func, void *arg, in read_file()
130 read_archive(int fd, Elf *elf, char *file, char *label, read_cb_f *func, in read_archive()
133 Elf *melf; in read_archive()
188 Elf *elf; in read_ctf_common()
251 count_archive(int fd, Elf *elf, char *file) in count_archive()
253 Elf *melf; in count_archive()
282 Elf *elf; in count_files()
343 symit_new(Elf *elf, const char *file) in symit_new()
HDctftools.h374 source_types_t built_source_types(Elf *, const char *);
379 symit_data_t *symit_new(Elf *, const char *);
408 int stabs_read(tdata_t *, Elf *, char *);
411 int dw_read(tdata_t *, Elf *, char *);
435 int findelfsecidx(Elf *, const char *, const char *);
436 size_t elf_ptrsz(Elf *);
/freebsd-11-stable/contrib/gcc/
HDsys-protos.h256 extern Elf32_Ehdr * elf32_getehdr(Elf *);
257 extern Elf32_Phdr * elf32_getphdr(Elf *);
259 extern Elf32_Ehdr * elf32_newehdr(Elf *);
260 extern Elf32_Phdr * elf32_newphdr(Elf *, size_t);
263 extern Elf * elf_begin(int, Elf_Cmd, Elf *);
264 extern int elf_cntl(Elf *, Elf_Cmd);
265 extern int elf_end(Elf *);
270 extern unsigned int elf_flagehdr(Elf *, Elf_Cmd, unsigned int);
271 extern unsigned int elf_flagelf(Elf *, Elf_Cmd, unsigned int);
272 extern unsigned int elf_flagphdr(Elf *, Elf_Cmd, unsigned int);
[all …]
/freebsd-11-stable/contrib/llvm-project/llvm/lib/ObjectYAML/
HDObjectYAML.cpp25 if (ObjectFile.Elf) in mapping()
26 MappingTraits<ELFYAML::Object>::mapping(IO, *ObjectFile.Elf); in mapping()
37 ObjectFile.Elf.reset(new ELFYAML::Object()); in mapping()
38 MappingTraits<ELFYAML::Object>::mapping(IO, *ObjectFile.Elf); in mapping()
/freebsd-11-stable/contrib/elftoolchain/libdwarf/
HDdwarf_init.c33 dwarf_elf_init(Elf *elf, int mode, Dwarf_Handler errhand, Dwarf_Ptr errarg, in dwarf_elf_init()
73 dwarf_get_elf(Dwarf_Debug dbg, Elf **elf, Dwarf_Error *error) in dwarf_get_elf()
93 Elf *elf; in dwarf_init()
/freebsd-11-stable/contrib/elftoolchain/size/
HDsize.c98 static int handle_core(char const *, Elf *elf, GElf_Ehdr *);
99 static void handle_core_note(Elf *, GElf_Ehdr *, GElf_Phdr *, char **);
101 static void handle_phdr(Elf *, GElf_Ehdr *, GElf_Phdr *, uint32_t,
106 static void sysv_calc(Elf *, GElf_Ehdr *, GElf_Shdr *);
215 xlatetom(Elf *elf, GElf_Ehdr *elfhdr, void *_src, void *_dst, in xlatetom()
263 handle_core_note(Elf *elf, GElf_Ehdr *elfhdr, GElf_Phdr *phdr, in handle_core_note()
451 handle_phdr(Elf *elf, GElf_Ehdr *elfhdr, GElf_Phdr *phdr, in handle_phdr()
502 handle_core(char const *name, Elf *elf, GElf_Ehdr *elfhdr) in handle_core()
590 Elf *elf, *elf1; in handle_elf()
682 sysv_calc(Elf *elf, GElf_Ehdr *elfhdr, GElf_Shdr *shdr) in sysv_calc()

12345