| /trueos/lib/libelf/ |
| HD | libelf.h | 38 typedef struct _Elf Elf; typedef 179 Elf *elf_begin(int _fd, Elf_Cmd _cmd, Elf *_elf); 180 int elf_cntl(Elf *_elf, Elf_Cmd _cmd); 181 int elf_end(Elf *_elf); 186 unsigned int elf_flagehdr(Elf *_elf, Elf_Cmd _cmd, unsigned int _flags); 187 unsigned int elf_flagelf(Elf *_elf, Elf_Cmd _cmd, unsigned int _flags); 188 unsigned int elf_flagphdr(Elf *_elf, Elf_Cmd _cmd, unsigned int _flags); 191 Elf_Arhdr *elf_getarhdr(Elf *_elf); 192 Elf_Arsym *elf_getarsym(Elf *_elf, size_t *_ptr); 193 off_t elf_getbase(Elf *_elf); [all …]
|
| HD | _libelf.h | 85 Elf *e_parent; /* non-NULL for archive members */ 163 Elf *_libelf_allocate_elf(void); 164 Elf_Scn *_libelf_allocate_scn(Elf *_e, size_t _ndx); 165 Elf_Arhdr *_libelf_ar_gethdr(Elf *_e); 166 Elf *_libelf_ar_open(Elf *_e); 167 Elf *_libelf_ar_open_member(int _fd, Elf_Cmd _c, Elf *_ar); 170 char *_libelf_ar_get_name(char *_buf, size_t _sz, Elf *_e); 172 Elf_Arsym *_libelf_ar_process_symtab(Elf *_ar, size_t *_dst); 173 unsigned long _libelf_checksum(Elf *_e, int _elfclass); 174 void *_libelf_ehdr(Elf *_e, int _elfclass, int _allocate); [all …]
|
| HD | gelf.h | 76 long gelf_checksum(Elf *_elf); 77 size_t gelf_fsize(Elf *_elf, Elf_Type _type, size_t _count, 79 int gelf_getclass(Elf *_elf); 81 GElf_Ehdr *gelf_getehdr(Elf *_elf, GElf_Ehdr *_dst); 82 GElf_Phdr *gelf_getphdr(Elf *_elf, int _index, GElf_Phdr *_dst); 89 void * gelf_newehdr(Elf *_elf, int _class); 90 void * gelf_newphdr(Elf *_elf, size_t _phnum); 92 int gelf_update_ehdr(Elf *_elf, GElf_Ehdr *_src); 93 int gelf_update_phdr(Elf *_elf, int _index, GElf_Phdr *_src); 100 Elf_Data *gelf_xlatetof(Elf *_elf, Elf_Data *_dst, const Elf_Data *_src, unsigned int _encode); [all …]
|
| HD | gelf_ehdr.c | 40 elf32_getehdr(Elf *e) in elf32_getehdr() 46 elf64_getehdr(Elf *e) in elf64_getehdr() 52 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()
|
| HD | libelf_allocate.c | 43 Elf * 46 Elf *e; in _libelf_allocate_elf() 72 _libelf_init_elf(Elf *e, Elf_Kind kind) in _libelf_init_elf() 94 Elf * 95 _libelf_release_elf(Elf *e) in _libelf_release_elf() 161 _libelf_allocate_scn(Elf *e, size_t ndx) in _libelf_allocate_scn() 184 Elf *e; in _libelf_release_scn()
|
| HD | gelf_phdr.c | 38 elf32_getphdr(Elf *e) in elf32_getphdr() 44 elf64_getphdr(Elf *e) in elf64_getphdr() 50 gelf_getphdr(Elf *e, int index, GElf_Phdr *d) in gelf_getphdr() 105 elf32_newphdr(Elf *e, size_t count) in elf32_newphdr() 111 elf64_newphdr(Elf *e, size_t count) in elf64_newphdr() 117 gelf_newphdr(Elf *e, size_t count) in gelf_newphdr() 127 gelf_update_phdr(Elf *e, int ndx, GElf_Phdr *s) in gelf_update_phdr()
|
| HD | elf_begin.c | 42 static Elf * 45 Elf *e; in _libelf_open_object() 85 Elf * 86 elf_begin(int fd, Elf_Cmd c, Elf *a) in elf_begin() 88 Elf *e; in elf_begin()
|
| HD | elf_shstrndx.c | 36 _libelf_getshdrstrndx(Elf *e, size_t *strndx) in _libelf_getshdrstrndx() 56 elf_getshdrstrndx(Elf *e, size_t *strndx) in elf_getshdrstrndx() 62 elf_getshstrndx(Elf *e, size_t *strndx) /* Deprecated API. */ in elf_getshstrndx() 68 elf_setshstrndx(Elf *e, size_t strndx) in elf_setshstrndx()
|
| HD | libelf_ar.c | 78 _libelf_ar_gethdr(Elf *e) in _libelf_ar_gethdr() 80 Elf *parent; in _libelf_ar_gethdr() 143 Elf * 144 _libelf_ar_open_member(int fd, Elf_Cmd c, Elf *elf) in _libelf_ar_open_member() 146 Elf *e; in _libelf_ar_open_member() 209 _libelf_ar_process_symtab(Elf *e, size_t *count) in _libelf_ar_process_symtab()
|
| HD | gelf_checksum.c | 36 elf32_checksum(Elf *e) in elf32_checksum() 42 elf64_checksum(Elf *e) in elf64_checksum() 48 gelf_checksum(Elf *e) in gelf_checksum()
|
| HD | elf_shnum.c | 36 _libelf_getshdrnum(Elf *e, size_t *shnum) in _libelf_getshdrnum() 56 elf_getshdrnum(Elf *e, size_t *shnum) in elf_getshdrnum() 63 elf_getshnum(Elf *e, size_t *shnum) in elf_getshnum()
|
| HD | elf_phnum.c | 36 _libelf_getphdrnum(Elf *e, size_t *phnum) in _libelf_getphdrnum() 56 elf_getphdrnum(Elf *e, size_t *phnum) in elf_getphdrnum() 63 elf_getphnum(Elf *e, size_t *phnum) in elf_getphnum()
|
| HD | libelf_extended.c | 39 _libelf_getscn0(Elf *e) in _libelf_getscn0() 50 _libelf_setshnum(Elf *e, void *eh, int ec, size_t shnum) in _libelf_setshnum() 80 _libelf_setshstrndx(Elf *e, void *eh, int ec, size_t shstrndx) in _libelf_setshstrndx() 109 _libelf_setphnum(Elf *e, void *eh, int ec, size_t phnum) in _libelf_setphnum()
|
| HD | elf_flag.c | 37 Elf *e; in elf_flagdata() 60 elf_flagehdr(Elf *e, Elf_Cmd c, unsigned int flags) in elf_flagehdr() 89 elf_flagelf(Elf *e, Elf_Cmd c, unsigned int flags) in elf_flagelf() 111 elf_flagphdr(Elf *e, Elf_Cmd c, unsigned int flags) in elf_flagphdr()
|
| HD | libelf.c | 51 _libelf_get_elf_class(Elf *elf) in _libelf_get_elf_class() 57 _libelf_set_elf_class(Elf *elf, int c) in _libelf_set_elf_class()
|
| HD | elf_scn.c | 43 _libelf_load_scn(Elf *e, void *ehdr) in _libelf_load_scn() 128 elf_getscn(Elf *e, size_t index) in elf_getscn() 167 elf_newscn(Elf *e) in elf_newscn() 222 elf_nextscn(Elf *e, Elf_Scn *s) in elf_nextscn()
|
| HD | libelf_convert.m4 | 206 * file representations of Elf data structures. 208 * `In-memory' representations of an Elf data structure use natural 283 Elf$4_$2 t, *s = (Elf$4_$2 *) (uintptr_t) src; 308 Elf$4_$2 t, *d = (Elf$4_$2 *) (uintptr_t) dst; 311 if (dsz < count * sizeof(Elf$4_$2)) 343 `pushdef(`SZ',$2)/* Swap an Elf$2_$1 */ 344 SWAP_MEMBERS(Elf$2_$1_DEF)popdef(`SZ')') 360 `pushdef(`SZ',$2)/* Write an Elf$2_$1 */ 361 WRITE_MEMBERS(Elf$2_$1_DEF)popdef(`SZ')') 378 `pushdef(`SZ',$2)/* Read an Elf$2_$1 */ [all …]
|
| HD | elf_next.c | 37 elf_next(Elf *e) in elf_next() 40 Elf *parent; in elf_next()
|
| HD | elf_end.c | 39 elf_end(Elf *e) in elf_end() 41 Elf *sv; in elf_end()
|
| HD | gelf_xlate.c | 62 gelf_xlatetom(Elf *e, Elf_Data *dst, const Elf_Data *src, unsigned int encoding) in gelf_xlatetom() 72 gelf_xlatetof(Elf *e, Elf_Data *dst, const Elf_Data *src, unsigned int encoding) in gelf_xlatetof()
|
| HD | libelf_ar_util.c | 129 _libelf_ar_get_name(char *buf, size_t bufsize, Elf *e) in _libelf_ar_get_name() 181 Elf * 182 _libelf_ar_open(Elf *e) in _libelf_ar_open()
|
| HD | elf_memory.c | 36 Elf * 39 Elf *e; in elf_memory()
|
| /trueos/cddl/contrib/opensolaris/tools/ctf/cvt/ |
| HD | 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()
|
| HD | 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 *);
|
| /trueos/contrib/gcc/ |
| HD | 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 …]
|