/illumos-gate/exception_lists/ |
H A D | mapfilechk | 49 usr/src/test/elf-tests/
|
/illumos-gate/usr/src/boot/sys/sys/ |
H A D | elf_generic.h | 53 #define __elfN(x) __CONCAT(__CONCAT(__CONCAT(elf,__ELF_WORD_SIZE),_),x)
|
/illumos-gate/usr/src/cmd/abi/appcert/static_prof/ |
H A D | static_prof.c | 372 if (elf_kind(c->obj->elf) == ELF_K_COFF) { in obj_init() 380 if (elf_kind(c->obj->elf) != ELF_K_AR && in obj_init() 381 elf_kind(c->obj->elf) != ELF_K_ELF) { in obj_init() 633 while ((scn = elf_nextscn(c->obj->elf, scn)) != 0) { in find_dynamic_sect() 654 scn = elf_getscn(c->obj->elf, index); in find_dynamic_sect() 710 while ((scn = elf_nextscn(c->obj->elf, scn)) != 0) { in find_symtabs() 752 scn2 = elf_getscn(c->obj->elf, shdr->sh_link); in find_symtabs() 832 if (c->obj->elf != (Elf *) 0) in obj_finis() 833 (void) elf_end(c->obj->elf); in obj_finis() 1011 c->obj->elf, c->obj->ehdr)) in scan_symbols() [all …]
|
H A D | static_prof.h | 99 Elf *elf; /* elf descriptor for current file */ member
|
/illumos-gate/usr/src/cmd/amt/ |
H A D | amt.c | 711 Elf *elf; in memory_type() local 729 elf = elf_begin(d, ELF_C_READ, (Elf *)0); in memory_type() 730 if (elf_kind(elf) != ELF_K_ELF) { in memory_type() 731 (void) elf_end(elf); in memory_type() 736 idarray = elf_getident(elf, 0); in memory_type() 744 (void) elf_end(elf); in memory_type()
|
/illumos-gate/usr/src/cmd/boot/bootadm/ |
H A D | bootadm.c | 2207 _elfhdr elf; in update_dircache() local 2222 if (read(fd, (void *)&elf, sizeof (_elfhdr)) < 0) { in update_dircache() 2232 if (memcmp(elf.e_ident, ELFMAG, 4) != 0) { in update_dircache() 2237 switch (elf.e_ident[EI_CLASS]) { in update_dircache()
|
/illumos-gate/usr/src/cmd/ctfmerge/ |
H A D | ctfmerge.c | 70 ctfmerge_check_for_c(const char *name, Elf *elf, uint_t flags) in ctfmerge_check_for_c() argument 77 switch (ctf_has_c_source(elf, errmsg, sizeof (errmsg))) { in ctfmerge_check_for_c() 97 ctfmerge_elfopen(const char *name, Elf *elf, ctf_merge_t *cmh, uint_t flags) in ctfmerge_elfopen() argument 107 if (gelf_getehdr(elf, &ehdr) == NULL) in ctfmerge_elfopen() 116 while ((scn = elf_nextscn(elf, scn)) != NULL) { in ctfmerge_elfopen() 123 sname = elf_strptr(elf, ehdr.e_shstrndx, shdr.sh_name); in ctfmerge_elfopen() 150 if ((strscn = elf_getscn(elf, shdr.sh_link)) == NULL || in ctfmerge_elfopen() 156 strsect.cts_name = elf_strptr(elf, ehdr.e_shstrndx, in ctfmerge_elfopen() 181 ctfmerge_check_for_c(name, elf, flags); in ctfmerge_elfopen() 206 ctfmerge_read_archive(const char *name, int fd, Elf *elf, in ctfmerge_read_archive() argument [all …]
|
/illumos-gate/usr/src/cmd/dis/ |
H A D | dis_target.c | 437 Elf *elf; in dis_tgt_create() local 463 while ((elf = elf_begin(tgt->dt_fd, cmd, tgt->dt_elf_root)) != NULL) { in dis_tgt_create() 467 (arhdr = elf_getarhdr(elf)) == NULL) { in dis_tgt_create() 476 if (gelf_getehdr(elf, &ehdr) == NULL) { in dis_tgt_create() 487 cmd = elf_next(elf); in dis_tgt_create() 488 (void) elf_end(elf); in dis_tgt_create() 510 current->dt_elf = elf; in dis_tgt_create() 513 if (elf_getshdrstrndx(elf, ¤t->dt_shstrndx) == -1) { in dis_tgt_create() 520 if (elf_getshdrnum(elf, &shnum) == -1) { in dis_tgt_create() 539 cmd = elf_next(elf); in dis_tgt_create()
|
/illumos-gate/usr/src/cmd/dtrace/ |
H A D | dtrace.c | 1294 Elf *elf; in main() local 1301 if ((elf = elf_begin(fd, ELF_C_READ, NULL)) == NULL) { in main() 1306 if (elf_kind(elf) != ELF_K_ELF || in main() 1307 gelf_getehdr(elf, &ehdr) == NULL) { in main() 1309 (void) elf_end(elf); in main() 1314 (void) elf_end(elf); in main()
|
/illumos-gate/usr/src/cmd/file/ |
H A D | file.c | 929 Elf *elf; in ar_coff_or_aout() local 936 elf = elf_begin(elffd, ELF_C_READ, (Elf *)0); in ar_coff_or_aout() 937 switch (elf_kind(elf)) { in ar_coff_or_aout() 954 (void) elf_end(elf); in ar_coff_or_aout()
|
H A D | magic | 38 # The entries for ELF are not needed anymore, as file(1) now uses the elf(3ELF)
|
/illumos-gate/usr/src/cmd/lockstat/ |
H A D | sym.c | 139 Elf *elf; in symtab_init() local 153 elf = elf_begin(fd, ELF_C_READ, NULL); in symtab_init() 155 for (cnt = 1; (scn = elf_nextscn(elf, scn)) != NULL; cnt++) { in symtab_init() 164 for (cnt = 1; (scn = elf_nextscn(elf, scn)) != NULL; cnt++) { in symtab_init()
|
/illumos-gate/usr/src/cmd/make/lib/makestate/ |
H A D | ld_file.c | 142 ld_file(const char *file, const Elf_Kind ekind, int flags, Elf *elf) in ld_file() argument 165 ld_file64(const char *file, const Elf_Kind ekind, int flags, Elf *elf) in ld_file64() argument
|
/illumos-gate/usr/src/cmd/mdb/tools/common/ |
H A D | findscn.c | 34 findelfsecidx(Elf *elf, char *tofind) in findelfsecidx() argument 40 if (gelf_getehdr(elf, &ehdr) == NULL) in findelfsecidx() 43 while ((scn = elf_nextscn(elf, scn)) != NULL) { in findelfsecidx() 47 (name = elf_strptr(elf, ehdr.e_shstrndx, in findelfsecidx()
|
/illumos-gate/usr/src/cmd/mdb/tools/setdynflag/common/ |
H A D | setdynflag.c | 85 Elf *elf; in set_flag() local 97 if ((elf = elf_begin(fd, ELF_C_RDWR, NULL)) == NULL) in set_flag() 100 if ((secidx = findelfsecidx(elf, ".dynamic")) == -1) in set_flag() 103 if ((scn = elf_getscn(elf, secidx)) == NULL) in set_flag() 132 if (elf_update(elf, ELF_C_WRITE) == -1) in set_flag() 135 (void) elf_end(elf); in set_flag()
|
/illumos-gate/usr/src/cmd/modload/ |
H A D | add_drv.c | 873 Elf *elf; in elf_type() local 887 elf = elf_begin(fd, ELF_C_READ, NULL); in elf_type() 888 if (elf_kind(elf) != ELF_K_ELF) { in elf_type() 890 (void) elf_end(elf); in elf_type() 894 ident = elf_getident(elf, 0); in elf_type() 905 (void) elf_end(elf); in elf_type()
|
/illumos-gate/usr/src/cmd/sgs/ar/common/ |
H A D | ar.msg | 74 @ MSG_ELF_GETDATA_FILE "ar: %s has bad elf format: %s\n" 75 @ MSG_ELF_GETDATA_AR "ar: %s(%s) has bad elf format: %s\n" 76 @ MSG_ELF_GETSCN_FILE "ar: %s has no section header or bad elf format: %s\n" 77 @ MSG_ELF_GETSCN_AR "ar: %s(%s) has no section header or bad elf \
|
H A D | file.c | 314 Elf *elf; in getfile() local 334 (void) elf_next(elf); in getfile() 335 (void) elf_end(elf); in getfile() 393 file->ar_elf = elf; in getfile() 398 (void) elf_next(elf); in getfile() 478 Elf *elf; in mksymtab() local 494 elf = fptr->ar_elf; in mksymtab() 552 (void) elf_end(elf); in mksymtab() 582 (void) elf_end(elf); in mksymtab() 602 (void) elf_end(elf); in mksymtab() [all …]
|
/illumos-gate/usr/src/cmd/sgs/crle/common/ |
H A D | inspect.c | 658 Elf *elf; in inspect_file() local 718 if ((elf_kind(elf) != ELF_K_ELF) || in inspect_file() 727 (void) elf_end(elf); in inspect_file() 739 dyflags = _gelf_getdyndtflags_1(elf); in inspect_file() 751 (void) elf_end(elf); in inspect_file() 762 (void) elf_end(elf); in inspect_file() 775 (void) elf_end(elf); in inspect_file() 784 (void) elf_end(elf); in inspect_file() 800 (void) elf_end(elf); in inspect_file() 836 (void) elf_end(elf); in inspect_file() [all …]
|
/illumos-gate/usr/src/cmd/sgs/demo_rdb/common/ |
H A D | maps.c | 205 Elf *elf; in load_map() local 248 if ((elf = elf_begin(filefd, ELF_C_READ, 0)) == NULL) { in load_map() 253 if (elf_kind(elf) != ELF_K_ELF) { in load_map() 255 (void) elf_end(elf); in load_map() 259 mp->mi_elf = elf; in load_map()
|
/illumos-gate/usr/src/cmd/sgs/dump/common/ |
H A D | fcns.c | 46 ar_sym_read(Elf *elf, char *filename) in ar_sym_read() argument 52 if ((arsym = elf_getarsym(elf, &ptr)) == NULL) { in ar_sym_read() 58 is64 = (_elf_getarsymwordsize(elf) == 8); in ar_sym_read()
|
/illumos-gate/usr/src/cmd/sgs/elfdump/common/ |
H A D | elfdump.c | 517 if ((phdr = elf_getphdr(elf)) == NULL) { in getphdr() 1754 uchar_t osabi, Elf *elf, uint_t flags) in cap() argument 1768 if ((phdr = elf_getphdr(elf)) == NULL) { in cap() 2978 Word phnum, Elf *elf) in dynamic() argument 4579 checksum(Elf *elf) in checksum() argument 4983 if ((ehdr = elf_getehdr(elf)) == NULL) { in regular() 4988 if (elf_getshdrnum(elf, &shnum) == -1) { in regular() 4998 if (elf_getphdrnum(elf, &phnum) == -1) { in regular() 5013 if ((scn = elf_getscn(elf, 0)) != NULL) { in regular() 5121 if ((phdr = elf_getphdr(elf)) == NULL) { in regular() [all …]
|
H A D | elfdump.msg | 43 @ MSG_USAGE_DETAIL4 "\t[-e]\t\tdump the elf header\n" 51 @ MSG_USAGE_DETAIL12 "\t[-k]\t\tcalculate elf checksum\n" 267 @ MSG_STR_CHECKSUM "elf checksum: 0x%lx"
|
H A D | fake_shdr.c | 1067 fake_shdr_cache(const char *file, int fd, Elf *elf, Ehdr *ehdr, in fake_shdr_cache() argument 1137 if (elf_getphdrnum(elf, &fstate.phnum) == -1) { in fake_shdr_cache() 1141 if ((fstate.phdr = elf_getphdr(elf)) == NULL) { in fake_shdr_cache()
|
H A D | main.c | 547 decide(const char *file, int fd, Elf *elf, uint_t flags, in decide() argument 552 if (gelf_getclass(elf) == ELFCLASS64) in decide() 607 if (_elf_getarsymwordsize(elf) == 8) { in archive() 634 if (elf_rand(elf, arsym->as_off) != in archive() 639 ELF_C_READ, elf)) == 0) { in archive() 683 (void) elf_rand(elf, offset); in archive() 689 while ((_elf = elf_begin(fd, cmd, elf)) != NULL) { in archive() 729 Elf *elf; in main() local 953 if ((elf = elf_begin(fd, ELF_C_READ, NULL)) == NULL) { in main() 962 switch (elf_kind(elf)) { in main() [all …]
|