| /openbsd-src/lib/libelf/ |
| H A D | libelf.h | 157 typedef struct _Elf Elf; typedef 302 Elf *elf_begin(int _fd, Elf_Cmd _cmd, Elf *_elf); 303 int elf_cntl(Elf *_elf, Elf_Cmd _cmd); 304 int elf_end(Elf *_elf); 312 unsigned int elf_flagehdr(Elf *_elf, Elf_Cmd _cmd, unsigned int _flags); 313 unsigned int elf_flagelf(Elf *_elf, Elf_Cmd _cmd, unsigned int _flags); 314 unsigned int elf_flagphdr(Elf *_elf, Elf_Cmd _cmd, unsigned int _flags); 317 Elf_Arhdr *elf_getarhdr(Elf *_elf); 318 Elf_Arsym *elf_getarsym(Elf *_elf, size_t *_ptr); 319 off_t elf_getbase(Elf *_elf); [all …]
|
| H A D | _libelf.h | 91 Elf *e_parent; /* non-NULL for archive members */ 204 Elf *_libelf_allocate_elf(void); 205 Elf_Scn *_libelf_allocate_scn(Elf *_e, size_t _ndx); 206 Elf_Arhdr *_libelf_ar_gethdr(Elf *_e); 207 Elf *_libelf_ar_open(Elf *_e, int _reporterror); 208 Elf *_libelf_ar_open_member(int _fd, Elf_Cmd _c, Elf *_ar); 209 Elf_Arsym *_libelf_ar_process_bsd_symtab(Elf *_ar, size_t *_dst); 210 Elf_Arsym *_libelf_ar_process_svr4_symtab(Elf *_ar, size_t *_dst); 211 long _libelf_checksum(Elf *_e, int _elfclass); 212 void *_libelf_ehdr(Elf *_e, int _elfclass, int _allocate); [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 | 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 | libelf_convert.m4 | 41 # file representations of Elf data structures. 70 # `In-memory' representations of an Elf data structure use natural 148 Elf$3_$2 t, *s = (Elf$3_$2 *) (uintptr_t) src; 171 Elf$3_$2 t, *d = (Elf$3_$2 *) (uintptr_t) dst; 174 if (dsz < count * sizeof(Elf$3_$2)) 211 `pushdef(`SZ',$2)/* Swap an Elf$2_$1 */ 212 SWAP_MEMBERS(Elf$2_$1_DEF)popdef(`SZ')') 229 `pushdef(`SZ',$2)/* Write an Elf$2_$1 */ 230 WRITE_MEMBERS(Elf$2_$1_DEF)popdef(`SZ')') 247 `pushdef(`SZ',$2)/* Read an Elf$2_$1 */ [all …]
|
| 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 | 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 | 109 _libelf_ar_gethdr(Elf *e) in _libelf_ar_gethdr() 111 Elf *parent; in _libelf_ar_gethdr() 207 Elf * 208 _libelf_ar_open_member(int fd, Elf_Cmd c, Elf *elf) in _libelf_ar_open_member() 210 Elf *e; in _libelf_ar_open_member() 317 _libelf_ar_process_bsd_symtab(Elf *e, size_t *count) in _libelf_ar_process_bsd_symtab() 431 _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 | 45 _libelf_load_section_headers(Elf *e, void *ehdr) in _libelf_load_section_headers() 132 elf_getscn(Elf *e, size_t index) in elf_getscn() 171 elf_newscn(Elf *e) in elf_newscn() 226 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()
|
| 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()
|
| H A D | gelf_xlate.c | 64 gelf_xlatetom(Elf *e, Elf_Data *dst, const Elf_Data *src, in gelf_xlatetom() 75 gelf_xlatetof(Elf *e, Elf_Data *dst, const Elf_Data *src, in gelf_xlatetof()
|
| H A D | libelf_memory.c | 41 Elf * 44 Elf *e; in _libelf_memory()
|
| /openbsd-src/gnu/llvm/llvm/tools/llvm-objdump/ |
| H A D | ELFDump.cpp | 28 static Expected<StringRef> getDynamicStrTab(const ELFFile<ELFT> &Elf) { in getDynamicStrTab() argument 29 auto DynamicEntriesOrError = Elf.dynamicEntries(); in getDynamicStrTab() 35 auto MappedAddrOrError = Elf.toMappedAddr(Dyn.getPtr()); in getDynamicStrTab() 43 auto SectionsOrError = Elf.sections(); in getDynamicStrTab() 49 return Elf.getStringTableForSymtab(Sec); in getDynamicStrTab() 173 static void printDynamicSection(const ELFFile<ELFT> &Elf, StringRef Filename) { in printDynamicSection() argument 174 auto DynamicEntriesOrErr = Elf.dynamicEntries(); in printDynamicSection() 184 MaxLen = std::max(MaxLen, Elf.getDynamicTagAsString(Dyn.d_tag).size()); in printDynamicSection() 192 std::string Str = Elf.getDynamicTagAsString(Dyn.d_tag); in printDynamicSection() 200 Expected<StringRef> StrTabOrErr = getDynamicStrTab(Elf); in printDynamicSection() [all …]
|
| /openbsd-src/gnu/gcc/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 *); 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 …]
|
| /openbsd-src/gnu/usr.bin/gcc/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 *); 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 …]
|
| /openbsd-src/gnu/llvm/llvm/lib/ObjectYAML/ |
| H A D | ObjectYAML.cpp | 25 if (ObjectFile.Elf) in mapping() 26 MappingTraits<ELFYAML::Object>::mapping(IO, *ObjectFile.Elf); in mapping() 44 ObjectFile.Elf.reset(new ELFYAML::Object()); in mapping() 45 MappingTraits<ELFYAML::Object>::mapping(IO, *ObjectFile.Elf); in mapping()
|