Home
last modified time | relevance | path

Searched refs:elf (Results 76 – 100 of 170) sorted by relevance

1234567

/illumos-gate/usr/src/cmd/sgs/ld/common/
H A Dld.c209 archive(int fd, Elf *elf, uchar_t *class_ret, Half *mach_ret) in archive() argument
220 (nelf = elf_begin(fd, cmd, elf)) != NULL; in archive()
467 Elf *elf; in process_args() local
470 if ((elf = elf_begin(fd, ELF_C_READ, NULL)) == NULL) { in process_args()
474 if (elf_kind(elf) == ELF_K_AR) in process_args()
476 archive(fd, elf, &ar_class, &ar_mach); in process_args()
477 (void) elf_end(elf); in process_args()
/illumos-gate/usr/src/cmd/amt/
H A Damt.c711 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/dis/
H A Ddis_target.c437 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, &current->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/abi/appcert/static_prof/
H A Dstatic_prof.c372 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 …]
/illumos-gate/usr/src/cmd/sgs/dump/common/
H A Dfcns.c46 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/link_audit/common/
H A Dwho.c154 Elf *elf; in load_syms() local
167 if ((elf = elf_begin(fd, ELF_C_READ, 0)) == NULL) { in load_syms()
173 while ((scn = elf_nextscn(elf, scn)) != NULL) { in load_syms()
184 scn = elf_getscn(elf, shdr->sh_link); in load_syms()
189 (void) elf_end(elf); in load_syms()
/illumos-gate/usr/src/cmd/sgs/pvs/common/
H A Dpvs.c1007 Elf *elf; in main() local
1099 if ((elf = elf_begin(var, ELF_C_READ, NULL)) == NULL) { in main()
1106 if (elf_kind(elf) != ELF_K_ELF) { in main()
1111 (void) elf_end(elf); in main()
1114 if (gelf_getehdr(elf, &ehdr) == NULL) { in main()
1119 (void) elf_end(elf); in main()
1127 if ((scn = elf_getscn(elf, ehdr.e_shstrndx)) == NULL) { in main()
1132 (void) elf_end(elf); in main()
1140 (void) elf_end(elf); in main()
1154 if (elf_getshdrnum(elf, &shnum) == -1) { in main()
[all …]
/illumos-gate/usr/src/cmd/sgs/libld/common/
H A Dfiles.c106 ifl->ifl_elf = elf; in ifl_setup()
2598 ld_sup_file(ofl, ifl->ifl_name, elf_kind(elf), ifl->ifl_flags, elf); in process_elf()
2619 elf) == S_ERROR) in process_elf()
2673 elf) == S_ERROR) in process_elf()
3002 isp->is_indata, elf); in process_elf()
3129 switch (elf_kind(elf)) { in ld_process_ifl()
3169 (void) elf_end(elf); in ld_process_ifl()
3290 (void) elf_end(elf); in ld_process_ifl()
3456 Elf *elf; in ld_process_open() local
3479 elf_kind(elf)); in ld_process_open()
[all …]
/illumos-gate/usr/src/tools/find_elf/
H A Dfind_elf.c460 Elf *elf = NULL; in get_elfinfo() local
465 if ((elf = elf_begin(fd, ELF_C_READ, NULL)) == NULL) in get_elfinfo()
468 if ((eip->ei_class = gelf_getclass(elf)) == ELFCLASSNONE) { in get_elfinfo()
469 VERIFY0(elf_end(elf)); in get_elfinfo()
473 if (gelf_getehdr(elf, &ehdr) == NULL) in get_elfinfo()
479 while ((scn = elf_nextscn(elf, scn)) != NULL) { in get_elfinfo()
508 VERIFY0(elf_end(elf)); in get_elfinfo()
512 VERIFY0(elf_end(elf)); in get_elfinfo()
/illumos-gate/usr/src/cmd/sgs/libelf/common/
H A Ddecl.h378 extern size_t _elf32_entsz(Elf *elf, Elf32_Word, unsigned);
379 extern size_t _elf64_entsz(Elf *elf, Elf64_Word, unsigned);
409 extern off_t _elf64_update(Elf * elf, Elf_Cmd cmd);
410 extern int _elf64_swap_wrimage(Elf *elf);
/illumos-gate/usr/src/cmd/sgs/elfedit/common/
H A Delfedit_machelf.c103 elfedit64_init_obj_state(const char *file, int fd, Elf *elf) in elfedit64_init_obj_state() argument
106 elfedit32_init_obj_state(const char *file, int fd, Elf *elf) in elfedit64_init_obj_state()
143 tstate.os_elf = elf; in elfedit64_init_obj_state()
429 state.elf.obj_state.s64 = obj_state; in elfedit64_init_obj_state()
431 state.elf.obj_state.s32 = obj_state; in elfedit64_init_obj_state()
H A Delfedit.c1225 Elf *elf; in init_obj_state() local
1247 elf = elf_begin(fd, ELF_C_RDWR, NULL); in init_obj_state()
1248 if (elf == NULL) { in init_obj_state()
1255 switch (elf_kind(elf)) { in init_obj_state()
1280 state.elf.elfclass = gelf_getclass(elf); in init_obj_state()
1281 switch (state.elf.elfclass) { in init_obj_state()
1283 elfedit32_init_obj_state(file, fd, elf); in init_obj_state()
1805 if (state.elf.elfclass == ELFCLASS32) { in elfedit_load_module()
2204 state.elf.elfconst_ehdr_change = 1; in dispatch_user_cmds()
3362 if (state.elf.elfclass == ELFCLASS32) { in cmd_match_fcn()
[all …]
/illumos-gate/usr/src/cmd/make/lib/makestate/
H A Dld_file.c142 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/sgs/demo_rdb/common/
H A Dmaps.c205 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/modload/
H A Dadd_drv.c873 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/elfdump/common/
H A Delfdump.c517 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 …]
/illumos-gate/usr/src/cmd/sgs/ar/common/
H A Dar.msg74 @ 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 \
/illumos-gate/usr/src/lib/libdwarf/common/
H A Ddwarf_elf_access.h35 dwarf_elf_object_access_init(dwarf_elf_handle elf ,
/illumos-gate/usr/src/test/elf-tests/doc/
H A DMakefile21 ROOTOPTPKG = $(ROOT)/opt/elf-tests
/illumos-gate/usr/src/test/
H A DMakefile25 elf-tests \
/illumos-gate/usr/src/test/elf-tests/runfiles/
H A DMakefile22 ROOTOPTPKG = $(ROOT)/opt/elf-tests
/illumos-gate/usr/src/test/elf-tests/cmd/
H A DMakefile20 ROOTOPTPKG = $(ROOT)/opt/elf-tests
/illumos-gate/usr/src/test/elf-tests/tests/capabilities/
H A DMakefile19 ROOTOPTPKG = $(ROOT)/opt/elf-tests
/illumos-gate/usr/src/test/elf-tests/tests/groups/
H A DMakefile23 ROOTOPTPKG = $(ROOT)/opt/elf-tests
/illumos-gate/usr/src/test/elf-tests/tests/assert-deflib/
H A DMakefile21 ROOTOPTPKG = $(ROOT)/opt/elf-tests

1234567