Searched refs:elf (Results 1 - 25 of 216) sorted by relevance

123456789

/illumos-gate/usr/src/man/man3elf/
H A DMakefile19 MANSECT= 3elf
21 MANFILES= elf.3elf \
22 elf32_checksum.3elf \
23 elf32_fsize.3elf \
24 elf32_getehdr.3elf \
25 elf32_getphdr.3elf \
26 elf32_getshdr.3elf \
27 elf32_xlatetof.3elf \
28 elf_begin.3elf \
[all...]
/illumos-gate/usr/src/cmd/sgs/libelf/common/
H A Dgetehdr.c38 getehdr(Elf * elf, int class) argument
41 if (elf == 0)
43 ELFWLOCK(elf);
44 if (elf->ed_class != class) {
46 ELFUNLOCK(elf);
49 if (elf->ed_ehdr == 0)
50 (void) _elf_cook(elf);
52 rc = elf->ed_ehdr;
53 ELFUNLOCK(elf);
60 elf32_getehdr(Elf * elf) argument
67 elf64_getehdr(Elf * elf) argument
[all...]
H A Dgetphdr.c38 getphdr(Elf * elf, int class) argument
41 if (elf == 0)
43 ELFWLOCK(elf);
44 if (elf->ed_class != class) {
46 ELFUNLOCK(elf);
49 if (elf->ed_phdr == 0)
50 (void) _elf_cook(elf);
51 rc = elf->ed_phdr;
52 ELFUNLOCK(elf);
58 elf32_getphdr(Elf * elf) argument
64 elf64_getphdr(Elf * elf) argument
[all...]
H A Dcntl.c37 elf_cntl(Elf * elf, Elf_Cmd cmd) argument
40 if (elf == 0)
42 ELFWLOCK(elf);
48 if ((elf->ed_myflags & EDF_READ) == 0) {
50 ELFUNLOCK(elf);
53 if ((elf->ed_status != ES_FROZEN) &&
54 ((_elf_cook(elf) != OK_YES) ||
55 (_elf_vm(elf, (size_t)0, elf->ed_fsz) != OK_YES)))
57 elf
[all...]
H A Dgetident.c37 elf_getident(Elf *elf, size_t *ptr) argument
42 if (elf != 0) {
43 ELFRLOCK(elf)
44 if (elf->ed_identsz != 0) {
45 if ((elf->ed_vm == 0) || (elf->ed_status !=
51 ELFUNLOCK(elf)
52 ELFWLOCK(elf)
53 if ((_elf_cook(elf) == OK_YES) &&
54 (_elf_vm(elf, (size_
[all...]
H A Drand.c34 elf_rand(Elf * elf, size_t off) argument
36 if (elf == 0)
38 ELFWLOCK(elf)
39 if (elf->ed_kind != ELF_K_AR) {
41 ELFUNLOCK(elf)
44 if ((off == 0) || (elf->ed_fsz < off)) {
46 ELFUNLOCK(elf)
49 elf->ed_nextoff = off;
50 ELFUNLOCK(elf)
60 _elf_getnextoff(Elf *elf) argument
[all...]
H A Dkind.c37 elf_kind(Elf * elf) argument
40 if (elf == 0)
42 ELFRLOCK(elf);
43 rc = elf->ed_kind;
44 ELFUNLOCK(elf);
H A Dnextscn.c37 elf_nextscn(Elf * elf, Elf_Scn * scn) argument
41 if (elf == 0)
44 READLOCKS(elf, scn)
46 READUNLOCKS(elf, scn)
48 ELFWLOCK(elf)
49 if (elf->ed_hdscn == 0) {
50 if (elf->ed_hdscn == 0)
51 (void) _elf_cook(elf);
53 if ((scn = elf->ed_hdscn) != 0)
55 ELFUNLOCK(elf)
[all...]
H A Drawfile.c37 elf_rawfile(Elf *elf, size_t *ptr) argument
42 if (elf == 0) {
48 ELFWLOCK(elf)
49 if ((sz = elf->ed_fsz) == 0) {
52 ELFUNLOCK(elf)
56 if (elf->ed_raw != 0)
57 p = elf->ed_raw;
58 else if (elf->ed_status == ES_COOKED) {
59 if ((p = _elf_read(elf->ed_fd, elf
[all...]
H A Dnext.c37 elf_next(Elf * elf) argument
41 if (elf == 0)
43 ELFRLOCK(elf)
44 if ((parent = elf->ed_parent) == 0) {
45 ELFUNLOCK(elf);
49 if (elf->ed_siboff >= parent->ed_fsz) {
51 ELFUNLOCK(elf);
55 parent->ed_nextoff = elf->ed_siboff;
57 ELFUNLOCK(elf);
H A Dgetbase.c35 elf_getbase(Elf *elf) argument
38 if (elf == NULL)
40 ELFRLOCK(elf)
41 rc = elf->ed_baseoff;
42 ELFUNLOCK(elf)
55 _elf_getarhdrbase(Elf *elf) argument
58 if (elf == NULL)
60 ELFRLOCK(elf)
61 if (elf->ed_parent == NULL) {
63 ELFUNLOCK(elf);
[all...]
H A Dcook.c108 _elf_slide(Elf * elf) argument
110 Elf *par = elf->ed_parent;
113 register char *src = elf->ed_ident;
122 if (elf->ed_ident[EI_CLASS] == ELFCLASS64)
126 if ((sz = (size_t)(src - (char *)elf->ed_image) % szof) == 0)
129 elf->ed_ident -= sz;
130 elf->ed_memoff -= sz;
131 elf->ed_armem->m_slide = sz;
132 if (_elf_vm(par, elf->ed_memoff, sz + elf
158 _elf_cook(Elf * elf) argument
228 Elf * elf = s->s_elf; local
[all...]
H A Dnewscn.c36 elf_newscn(Elf * elf) argument
40 if (elf == 0)
43 ELFWLOCK(elf)
48 if ((elf->ed_hdscn == 0) && (_elf_cook(elf) != OK_YES)) {
49 ELFUNLOCK(elf)
52 if (elf->ed_ehdr == 0) {
54 ELFUNLOCK(elf)
58 if (elf->ed_class == ELFCLASS32) {
61 if (elf
[all...]
H A Dgetarhdr.c40 elf_getarhdr(Elf * elf) argument
45 if (elf == 0)
47 ELFRLOCK(elf)
48 if ((mh = elf->ed_armem) == 0) {
49 ELFUNLOCK(elf)
54 ELFUNLOCK(elf);
59 rc = &elf->ed_armem->m_hdr;
60 ELFUNLOCK(elf)
H A Dnewehdr.c64 elf_newehdr(Elf * elf) argument
68 if (elf == 0)
75 ELFWLOCK(elf)
76 if (elf->ed_myflags & EDF_READ) {
77 ELFUNLOCK(elf)
78 if ((eh = (Ehdr *)getehdr(elf)) != 0) {
79 ELFWLOCK(elf)
80 elf->ed_ehflags |= ELF_F_DIRTY;
81 ELFUNLOCK(elf)
90 if (elf
[all...]
H A Dnewphdr.c67 elf_newphdr(Elf * elf, size_t count) argument
74 if (elf == 0)
76 ELFRLOCK(elf)
77 if (elf->ed_class != ELFCLASS) {
79 ELFUNLOCK(elf)
82 ELFUNLOCK(elf)
83 if (elf_getehdr(elf) == 0) { /* this cooks if necessary */
94 ELFWLOCK(elf)
95 if (elf->ed_myflags & EDF_PHALLOC) {
96 elf
[all...]
H A Dflag.c41 Elf * elf; local
49 elf = scn->s_elf;
51 READLOCKS(elf, scn)
59 READUNLOCKS(elf, scn)
65 elf_flagehdr(Elf * elf, Elf_Cmd cmd, unsigned flags) argument
68 if (elf == 0)
71 ELFWLOCK(elf)
72 rc = elf->ed_ehflags |= flags;
73 ELFUNLOCK(elf)
77 ELFWLOCK(elf)
88 elf_flagelf(Elf * elf, Elf_Cmd cmd, unsigned flags) argument
111 elf_flagphdr(Elf * elf, Elf_Cmd cmd, unsigned flags) argument
137 Elf * elf; local
164 Elf * elf; local
[all...]
H A Dbegin.c51 register Elf *elf; local
77 if ((elf = (Elf *)calloc(1, sizeof (Elf))) == 0) {
82 elf->ed_parent = ref;
83 elf->ed_fd = fd;
84 elf->ed_myflags |= flags;
85 elf->ed_armem = mh;
86 elf->ed_fsz = mh->m_hdr.ar_size;
87 elf->ed_baseoff = ref->ed_baseoff + base;
88 elf->ed_memoff = base - mh->m_slide;
89 elf
111 Elf *elf; local
129 _elf_config(Elf * elf) argument
197 Elf *elf; local
296 register Elf *elf; local
[all...]
H A Dend.c37 elf_end(Elf * elf) argument
44 if (elf == 0)
47 ELFWLOCK(elf)
48 if (--elf->ed_activ != 0) {
49 rc = elf->ed_activ;
50 ELFUNLOCK(elf)
54 while (elf->ed_activ == 0) {
55 for (s = elf->ed_hdscn; s != 0; s = s->s_next) {
90 for (l = elf->ed_memlist; l; l = (Memlist *)trail) {
98 if (elf
[all...]
H A Dgetscn.c36 elf_getscn(Elf * elf, size_t index) argument
43 if (elf == 0)
46 ELFRLOCK(elf)
47 tabsz = elf->ed_scntabsz;
48 if (elf->ed_hdscn == 0) {
49 ELFUNLOCK(elf)
50 ELFWLOCK(elf)
51 if ((elf->ed_hdscn == 0) && (_elf_cook(elf) != OK_YES)) {
52 ELFUNLOCK(elf);
[all...]
H A Dndxscn.c40 Elf * elf; local
44 elf = scn->s_elf;
45 READLOCKS(elf, scn)
47 READUNLOCKS(elf, scn)
/illumos-gate/usr/src/pkg/manifests/
H A Dsystem-library.man3elf.inc17 file path=usr/share/man/man3elf/elf.3elf
18 file path=usr/share/man/man3elf/elf32_checksum.3elf
19 file path=usr/share/man/man3elf/elf32_fsize.3elf
20 file path=usr/share/man/man3elf/elf32_getehdr.3elf
21 file path=usr/share/man/man3elf/elf32_getphdr.3elf
22 file path=usr/share/man/man3elf/elf32_getshdr.3elf
23 file path=usr/share/man/man3elf/elf32_xlatetof.3elf
24 file path=usr/share/man/man3elf/elf_begin.3elf
25 file path=usr/share/man/man3elf/elf_cntl.3elf
[all...]
/illumos-gate/usr/src/boot/sys/amd64/include/
H A Delf.h6 #include <x86/elf.h>
/illumos-gate/usr/src/boot/sys/i386/include/
H A Delf.h6 #include <x86/elf.h>
/illumos-gate/usr/src/head/
H A Delf.h29 #include <sys/elf.h>

Completed in 88 milliseconds

123456789