| /freebsd-12.1/contrib/elftoolchain/libelf/ |
| H A D | libelf.h | 37 typedef struct _Elf Elf; typedef 182 Elf *elf_begin(int _fd, Elf_Cmd _cmd, Elf *_elf); 184 int elf_end(Elf *_elf); 197 Elf_Arhdr *elf_getarhdr(Elf *_elf); 199 off_t elf_getbase(Elf *_elf); 210 Elf_Kind elf_kind(Elf *_elf); 214 Elf_Scn *elf_newscn(Elf *_elf); 216 Elf_Cmd elf_next(Elf *_elf); 217 Elf *elf_open(int _fd); 227 long elf32_checksum(Elf *_elf); [all …]
|
| H A D | _libelf.h | 95 Elf *e_parent; /* non-NULL for archive members */ 208 Elf *_libelf_allocate_elf(void); 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); 215 long _libelf_checksum(Elf *_e, int _elfclass); 217 int _libelf_elfmachine(Elf *_e); 223 void *_libelf_getphdr(Elf *_e, int _elfclass); 225 void _libelf_init_elf(Elf *_e, Elf_Kind _kind); 226 int _libelf_is_mips64el(Elf *e); [all …]
|
| H A D | gelf.h | 73 long gelf_checksum(Elf *_elf); 74 size_t gelf_fsize(Elf *_elf, Elf_Type _type, size_t _count, 76 int gelf_getclass(Elf *_elf); 78 GElf_Ehdr *gelf_getehdr(Elf *_elf, GElf_Ehdr *_dst); 79 GElf_Phdr *gelf_getphdr(Elf *_elf, int _index, GElf_Phdr *_dst); 86 void * gelf_newehdr(Elf *_elf, int _class); 87 void * gelf_newphdr(Elf *_elf, size_t _phnum); 89 int gelf_update_ehdr(Elf *_elf, GElf_Ehdr *_src); 90 int gelf_update_phdr(Elf *_elf, int _index, GElf_Phdr *_src); 97 Elf_Data *gelf_xlatetof(Elf *_elf, Elf_Data *_dst, const Elf_Data *_src, unsigned int _encode); [all …]
|
| H A D | gelf_ehdr.c | 39 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()
|
| H A D | libelf_allocate.c | 41 Elf * 44 Elf *e; in _libelf_allocate_elf() 70 _libelf_init_elf(Elf *e, Elf_Kind kind) in _libelf_init_elf() 92 Elf * 93 _libelf_release_elf(Elf *e) in _libelf_release_elf() 162 _libelf_allocate_scn(Elf *e, size_t ndx) in _libelf_allocate_scn() 185 Elf *e; in _libelf_release_scn()
|
| H A D | gelf_phdr.c | 37 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()
|
| H A D | elf_shstrndx.c | 35 _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()
|
| H A D | libelf_convert.m4 | 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)) 271 Elf$3_$2 t, *s; 276 s = (Elf$3_$2 *) (uintptr_t) src; 292 Elf$3_$2 t, *d; 402 Elf$5_$2 t; 403 Elf$5_$3 a; 411 Elf$5_Word aux, anext, cnt, vnext; 466 Elf$5_$2 t, *dp; [all …]
|
| H A D | gelf_checksum.c | 35 elf32_checksum(Elf *e) in elf32_checksum() 41 elf64_checksum(Elf *e) in elf64_checksum() 47 gelf_checksum(Elf *e) in gelf_checksum()
|
| H A D | libelf_extended.c | 38 _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()
|
| H A D | elf_shnum.c | 35 _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()
|
| H A D | elf_phnum.c | 35 _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()
|
| H A D | elf_begin.c | 33 Elf * 34 elf_begin(int fd, Elf_Cmd c, Elf *a) in elf_begin() 36 Elf *e; in elf_begin()
|
| H A D | libelf_ar.c | 108 _libelf_ar_gethdr(Elf *e) in _libelf_ar_gethdr() 110 Elf *parent; in _libelf_ar_gethdr() 198 Elf * 199 _libelf_ar_open_member(int fd, Elf_Cmd c, Elf *elf) in _libelf_ar_open_member() 201 Elf *e; in _libelf_ar_open_member() 286 _libelf_ar_process_bsd_symtab(Elf *e, size_t *count) in _libelf_ar_process_bsd_symtab() 399 _libelf_ar_process_svr4_symtab(Elf *e, size_t *count) in _libelf_ar_process_svr4_symtab()
|
| H A D | elf_open.c | 37 Elf * 53 Elf *
|
| H A D | elf_scn.c | 58 _libelf_load_section_headers(Elf *e, void *ehdr) in _libelf_load_section_headers() 144 elf_getscn(Elf *e, size_t index) in elf_getscn() 189 elf_newscn(Elf *e) in elf_newscn() 244 elf_nextscn(Elf *e, Elf_Scn *s) in elf_nextscn()
|
| H A D | elf_next.c | 36 elf_next(Elf *e) in elf_next() 39 Elf *parent; in elf_next()
|
| H A D | elf_end.c | 40 elf_end(Elf *e) in elf_end() 42 Elf *sv; in elf_end()
|
| /freebsd-12.1/contrib/llvm/tools/llvm-objdump/ |
| H A D | ELFDump.cpp | 25 Expected<StringRef> getDynamicStrTab(const ELFFile<ELFT> *Elf) { in getDynamicStrTab() argument 28 auto DynamicEntriesOrError = Elf->dynamicEntries(); in getDynamicStrTab() 34 auto MappedAddrOrError = Elf->toMappedAddr(Dyn.getPtr()); in getDynamicStrTab() 42 auto SectionsOrError = Elf->sections(); in getDynamicStrTab() 48 return Elf->getStringTableForSymtab(Sec); in getDynamicStrTab() 55 void printDynamicSection(const ELFFile<ELFT> *Elf, StringRef Filename) { in printDynamicSection() argument 56 auto ProgramHeaderOrError = Elf->program_headers(); in printDynamicSection() 60 auto DynamicEntriesOrError = Elf->dynamicEntries(); in printDynamicSection() 69 StringRef Str = StringRef(Elf->getDynamicTagAsString(Dyn.d_tag)); in printDynamicSection() 82 Expected<StringRef> StrTabOrErr = getDynamicStrTab(Elf); in printDynamicSection()
|
| /freebsd-12.1/cddl/contrib/opensolaris/tools/ctf/cvt/ |
| H A D | input.c | 50 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()
|
| H A D | ctftools.h | 374 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-12.1/contrib/llvm/lib/ObjectYAML/ |
| H A D | ObjectYAML.cpp | 26 if (ObjectFile.Elf) in mapping() 27 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-12.1/contrib/gcc/ |
| H A D | sys-protos.h | 256 extern Elf32_Ehdr * elf32_getehdr(Elf *); 257 extern Elf32_Phdr * elf32_getphdr(Elf *); 259 extern Elf32_Ehdr * elf32_newehdr(Elf *); 263 extern Elf * elf_begin(int, Elf_Cmd, Elf *); 265 extern int elf_end(Elf *); 275 extern Elf_Arhdr * elf_getarhdr(Elf *); 277 extern off_t elf_getbase(Elf *); 282 extern Elf_Kind elf_kind(Elf *); 285 extern Elf_Scn * elf_newscn(Elf *); 286 extern Elf_Cmd elf_next(Elf *); [all …]
|
| /freebsd-12.1/contrib/elftoolchain/libdwarf/ |
| H A D | dwarf_init.c | 33 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-12.1/contrib/elftoolchain/size/ |
| H A D | size.c | 98 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() 262 handle_core_note(Elf *elf, GElf_Ehdr *elfhdr, GElf_Phdr *phdr, in handle_core_note() 450 handle_phdr(Elf *elf, GElf_Ehdr *elfhdr, GElf_Phdr *phdr, in handle_phdr() 501 handle_core(char const *name, Elf *elf, GElf_Ehdr *elfhdr) in handle_core() 589 Elf *elf, *elf1; in handle_elf() 681 sysv_calc(Elf *elf, GElf_Ehdr *elfhdr, GElf_Shdr *shdr) in sysv_calc()
|