| /freebsd-14.2/contrib/elftoolchain/libelf/ |
| H A D | libelf.h | 37 typedef struct _Elf Elf; typedef 185 Elf *elf_begin(int _fd, Elf_Cmd _cmd, Elf *_elf); 187 int elf_end(Elf *_elf); 200 Elf_Arhdr *elf_getarhdr(Elf *_elf); 202 off_t elf_getbase(Elf *_elf); 213 Elf_Kind elf_kind(Elf *_elf); 217 Elf_Scn *elf_newscn(Elf *_elf); 219 Elf_Cmd elf_next(Elf *_elf); 220 Elf *elf_open(int _fd); 230 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); 224 void *_libelf_getphdr(Elf *_e, int _elfclass); 226 void _libelf_init_elf(Elf *_e, Elf_Kind _kind); 227 int _libelf_is_mips64el(Elf *e); [all …]
|
| H A D | gelf.h | 74 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 …]
|
| 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 | 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_allocate.c | 41 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()
|
| 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 | 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_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 | 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 | 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_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() 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()
|
| H A D | elf_open.c | 37 Elf * 53 Elf *
|
| H A D | elf_next.c | 36 elf_next(Elf *e) in elf_next() 39 Elf *parent; in elf_next()
|
| H A D | elf_scn.c | 58 _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()
|
| H A D | elf_end.c | 40 elf_end(Elf *e) in elf_end() 42 Elf *sv; in elf_end()
|
| H A D | elf_flag.c | 81 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-14.2/contrib/llvm-project/llvm/tools/llvm-objdump/ |
| H A D | ELFDump.cpp | 63 auto DynamicEntriesOrError = Elf.dynamicEntries(); in getDynamicStrTab() 69 auto MappedAddrOrError = Elf.toMappedAddr(Dyn.getPtr()); in getDynamicStrTab() 77 auto SectionsOrError = Elf.sections(); in getDynamicStrTab() 83 return Elf.getStringTableForSymtab(Sec); in getDynamicStrTab() 206 const ELFFile<ELFT> &Elf = getELFFile(); in printDynamicSection() local 207 auto DynamicEntriesOrErr = Elf.dynamicEntries(); in printDynamicSection() 225 std::string Str = Elf.getDynamicTagAsString(Dyn.d_tag); in printDynamicSection() 233 Expected<StringRef> StrTabOrErr = getDynamicStrTab(Elf); in printDynamicSection() 410 const ELFFile<ELFT> &Elf = getELFFile(); in printSymbolVersion() local 413 unwrapOrError(Elf.sections(), FileName); in printSymbolVersion() [all …]
|
| /freebsd-14.2/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 | 380 source_types_t built_source_types(Elf *, const char *); 385 symit_data_t *symit_new(Elf *, const char *); 405 int dw_read(tdata_t *, Elf *, char *); 429 int findelfsecidx(Elf *, const char *, const char *); 430 size_t elf_ptrsz(Elf *);
|
| /freebsd-14.2/usr.bin/elfctl/ |
| H A D | elfctl.c | 52 static bool edit_file_features(Elf *, int, int, char *, bool); 53 static bool get_file_features(Elf *, int, int, uint32_t *, uint64_t *, bool); 55 static bool print_file_features(Elf *, int, int, char *, bool); 92 Elf *elf; in main() 295 edit_file_features(Elf *elf, int phcount, int fd, char *val, bool endian_swap) in edit_file_features() 337 print_file_features(Elf *elf, int phcount, int fd, char *filename, in print_file_features() 362 get_file_features(Elf *elf, int phcount, int fd, uint32_t *features, in get_file_features()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/ObjectYAML/ |
| H A D | ObjectYAML.cpp | 25 if (ObjectFile.Elf) in mapping() 26 MappingTraits<ELFYAML::Object>::mapping(IO, *ObjectFile.Elf); in mapping() 46 ObjectFile.Elf.reset(new ELFYAML::Object()); in mapping() 47 MappingTraits<ELFYAML::Object>::mapping(IO, *ObjectFile.Elf); in mapping()
|
| /freebsd-14.2/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()
|