Lines Matching defs:op
49 Objinfo *op, *cur, *prev;
55 if ((op = calloc(1, sizeof (Objinfo))) == NULL) {
72 op->o_lpc = lpc;
73 op->o_hpc = hpc;
74 op->o_lmp = lmp;
77 op->o_flags |= FLG_OB_FIXED;
80 *objlist = op;
88 op->o_next = *objlist;
89 *objlist = op;
98 op->o_next = *objlist;
99 *objlist = op;
102 prev->o_next = op;
103 op->o_next = cur;
151 load_syms(Objinfo *op)
158 op->o_flags |= FLG_OB_NOSYMS;
162 if ((fd = open(op->o_lmp->l_name, O_RDONLY)) == -1) {
163 op->o_flags |= FLG_OB_NOSYMS;
168 op->o_flags |= FLG_OB_NOSYMS;
181 op->o_syms = (Elf_Sym *)data->d_buf;
183 op->o_symcnt = (uint_t)(shdr->sh_size / shdr->sh_entsize);
186 op->o_strs = (const char *)data->d_buf;
188 if (!op->o_syms) {
191 op->o_flags |= FLG_OB_NOSYMS;
200 Objinfo *op;
207 for (op = objhead; op; op = op->o_next) {
208 if ((pc >= op->o_lpc) && (pc <= op->o_hpc))
211 if (op && (op->o_syms == NULL))
212 load_syms(op);
214 if (!op || (op->o_flags & FLG_OB_NOSYMS)) {
219 sym = op->o_syms;
220 if ((op->o_flags & FLG_OB_FIXED) == 0)
221 pc = (caddr_t)((uintptr_t)pc - (uintptr_t)op->o_lpc);
222 for (i = 0, _sym = op->o_syms; i < op->o_symcnt; i++, _sym++) {
227 (void) fprintf(stderr, "\t%s:%s+0x%lx\n", op->o_lmp->l_name,
228 sym->st_name + op->o_strs,