| /src/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); 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 …]
|
| H A D | _libelf.h | 95 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 …]
|
| 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 | libelf_convert.m4 | 40 # 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 …]
|
| 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_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()
|
| /src/contrib/llvm-project/llvm/tools/llvm-objdump/ |
| H A D | ELFDump.cpp | 62 static Expected<StringRef> getDynamicStrTab(const ELFFile<ELFT> &Elf) { in getDynamicStrTab() argument 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() 210 const ELFFile<ELFT> &Elf = getELFFile(); in printDynamicSection() local 211 auto DynamicEntriesOrErr = Elf.dynamicEntries(); in printDynamicSection() 221 MaxLen = std::max(MaxLen, Elf.getDynamicTagAsString(Dyn.d_tag).size()); in printDynamicSection() 229 std::string Str = Elf.getDynamicTagAsString(Dyn.d_tag); in printDynamicSection() 236 Expected<StringRef> StrTabOrErr = getDynamicStrTab(Elf); in printDynamicSection() [all …]
|
| /src/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 *);
|
| /src/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); 95 Elf *elf; in main() 298 edit_file_features(Elf *elf, int phcount, int fd, char *val, bool endian_swap) in edit_file_features() 340 print_file_features(Elf *elf, int phcount, int fd, char *filename, in print_file_features() 365 get_file_features(Elf *elf, int phcount, int fd, uint32_t *features, in get_file_features()
|
| /src/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()
|
| /src/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()
|