/freebsd/contrib/libexecinfo/ |
H A D | symtab.c | 55 uintptr_t st_value; member 70 return (int)(intmax_t)(sa->st_value - sb->st_value); in address_compare() 142 (uintmax_t)sym.st_value, ELF_ST_BIND(sym.st_info), in symtab_create() 154 s->st_value = sym.st_value; in symtab_create() 197 if (s[mid].st_value < me) in symtab_find() 199 else if (s[mid].st_value > me) in symtab_find() 210 sd = me - s[mid].st_value; in symtab_find() 212 dli->dli_saddr = (void *)s[mid].st_value; in symtab_find()
|
/freebsd/cddl/contrib/opensolaris/lib/libdtrace/powerpc/ |
H A D | dt_isadep.c | 46 ftp->ftps_pc = (uintptr_t)symp->st_value; in dt_pid_create_entry_probe() 75 if (Pread(P, text, symp->st_size, symp->st_value) != symp->st_size) { in dt_pid_create_return_probe() 88 ftp->ftps_pc = symp->st_value; in dt_pid_create_return_probe() 106 temp += symp->st_value + i * 4; in dt_pid_create_return_probe() 114 if (temp >= symp->st_value && in dt_pid_create_return_probe() 115 temp <= (symp->st_value + symp->st_size)) in dt_pid_create_return_probe() 144 ftp->ftps_pc = (uintptr_t)symp->st_value; in dt_pid_create_offset_probe() 166 ftp->ftps_pc = (uintptr_t)symp->st_value; in dt_pid_create_glob_offset_probes()
|
/freebsd/cddl/contrib/opensolaris/lib/libdtrace/i386/ |
H A D | dt_isadep.c | 70 ftp->ftps_pc = (uintptr_t)symp->st_value; in dt_pid_create_entry_probe() 104 size = dt_instr_size(&text[i], dtp, pid, symp->st_value + i, in dt_pid_has_jump_table() 159 if (Pread(P, text, symp->st_size, symp->st_value) != symp->st_size) { in dt_pid_create_return_probe() 166 ftp->ftps_pc = (uintptr_t)symp->st_value; in dt_pid_create_return_probe() 186 symp->st_value + i, dmodel); in dt_pid_create_return_probe() 219 symp->st_value + i, dmodel); in dt_pid_create_return_probe() 289 ftp->ftps_pc = (uintptr_t)symp->st_value; in dt_pid_create_offset_probe() 312 if (Pread(P, text, symp->st_size, symp->st_value) != in dt_pid_create_offset_probe() 346 symp->st_value + i, dmodel); in dt_pid_create_offset_probe() 387 ftp->ftps_pc = (uintptr_t)symp->st_value; in dt_pid_create_glob_offset_probes() [all …]
|
/freebsd/cddl/contrib/opensolaris/lib/libdtrace/arm/ |
H A D | dt_isadep.c | 64 ftp->ftps_pc = (uintptr_t)symp->st_value; in dt_pid_create_entry_probe() 95 if (Pread(P, text, symp->st_size, symp->st_value) != symp->st_size) { in dt_pid_create_return_probe() 108 ftp->ftps_pc = symp->st_value; in dt_pid_create_return_probe() 135 ftp->ftps_pc = (uintptr_t)symp->st_value; in dt_pid_create_offset_probe() 157 ftp->ftps_pc = (uintptr_t)symp->st_value; in dt_pid_create_glob_offset_probes()
|
/freebsd/lib/libproc/tests/ |
H A D | proc_test.c | 125 ATF_CHECK_EQ_MSG(addr, sym->st_value, in verify_bkpt() 127 addr, (uintmax_t)sym->st_value); in verify_bkpt() 279 set_bkpt(phdl, r_debug_state_sym.st_value, &saved); in ATF_TC_BODY() 282 remove_bkpt(phdl, r_debug_state_sym.st_value, saved); in ATF_TC_BODY() 284 set_bkpt(phdl, main_sym.st_value, &saved); in ATF_TC_BODY() 287 remove_bkpt(phdl, main_sym.st_value, saved); in ATF_TC_BODY() 393 error = proc_addr2sym(phdl, bar_sym.st_value, symname, sizeof(symname), in ATF_TC_BODY() 424 error = proc_addr2sym(phdl, qux_sym.st_value, symname, sizeof(symname), in ATF_TC_BODY() 455 error = proc_addr2sym(phdl, foo_sym.st_value, symname, sizeof(symname), in ATF_TC_BODY()
|
/freebsd/cddl/contrib/opensolaris/lib/libdtrace/sparc/ |
H A D | dt_isadep.c | 57 ftp->ftps_pc = (uintptr_t)symp->st_value; in dt_pid_create_entry_probe() 85 if (Pread(P, text, symp->st_size, symp->st_value) != symp->st_size) { in dt_pid_create_return_probe() 98 ftp->ftps_pc = symp->st_value; in dt_pid_create_return_probe() 112 instr.ftiq_pc = symp->st_value + i * 4; in dt_pid_create_return_probe() 285 ftp->ftps_pc = (uintptr_t)symp->st_value; in dt_pid_create_offset_probe() 307 ftp->ftps_pc = (uintptr_t)symp->st_value; in dt_pid_create_glob_offset_probes()
|
/freebsd/cddl/contrib/opensolaris/lib/libdtrace/common/ |
H A D | dt_module.c | 112 if (sym->st_value != 0 && in dt_module_syminit32() 117 sym->st_value += (Elf_Addr) dmp->dm_reloc_offset; in dt_module_syminit32() 120 sym->st_value += in dt_module_syminit32() 162 if (sym->st_value != 0 && in dt_module_syminit64() 166 sym->st_value += (Elf_Addr) dmp->dm_reloc_offset; in dt_module_syminit64() 169 sym->st_value += in dt_module_syminit64() 191 if (lhs->st_value != rhs->st_value) in dt_module_symcomp32() 192 return (lhs->st_value > rhs->st_value in dt_module_symcomp32() [all...] |
H A D | dt_pid.c | 245 symp->st_value != pp->dpp_last.st_value || in dt_pid_sym_filt() 290 pp->dpp_stret[0] = sym.st_value; in dt_pid_per_mod() 296 pp->dpp_stret[1] = sym.st_value; in dt_pid_per_mod() 302 pp->dpp_stret[2] = sym.st_value; in dt_pid_per_mod() 308 pp->dpp_stret[3] = sym.st_value; in dt_pid_per_mod() 344 sym.st_value = 0; in dt_pid_per_mod() 374 if (Ppltdest(pp->dpp_pr, sym.st_value) != NULL) in dt_pid_per_mod() 378 (void) Plookup_by_addr(pp->dpp_pr, sym.st_value, pp->dpp_func, in dt_pid_per_mod() 603 dh.dofhp_dof = sym.st_value; in dt_pid_usdt_mapping()
|
/freebsd/lib/libproc/ |
H A D | proc_sym.c | 120 if (sym1.st_value != sym2.st_value) in symvalcmp() 121 return (sym1.st_value < sym2.st_value ? -1 : 1); in symvalcmp() 470 if (addr >= sym.st_value && addr < sym.st_value + sym.st_size) in lookup_symbol_by_addr() 473 if (addr < sym.st_value) in lookup_symbol_by_addr() 486 if (addr < sym.st_value || addr >= sym.st_value + sym.st_size) in lookup_symbol_by_addr() 529 symcopy->st_value += off; in proc_addr2sym() 631 symcopy->st_value += off; in proc_name2sym() 709 sym.st_value += mapping->map.pr_vaddr; in proc_iter_symbyaddr()
|
/freebsd/sys/ddb/ |
H A D | db_main.c | 128 if (stoffs < sym->st_value) in X_db_search_symbol() 134 if ((stoffs - sym->st_value) > diff) in X_db_search_symbol() 136 if ((stoffs - sym->st_value) < diff) { in X_db_search_symbol() 137 diff = stoffs - sym->st_value; in X_db_search_symbol() 185 *valp = (db_expr_t)((const Elf_Sym *)sym)->st_value + in X_db_symbol_values()
|
/freebsd/cddl/contrib/opensolaris/lib/libdtrace/riscv/ |
H A D | dt_isadep.c | 52 ftp->ftps_pc = (uintptr_t)symp->st_value; in dt_pid_create_entry_probe() 86 ftp->ftps_pc = (uintptr_t)symp->st_value; in dt_pid_create_offset_probe() 108 ftp->ftps_pc = (uintptr_t)symp->st_value; in dt_pid_create_glob_offset_probes()
|
/freebsd/cddl/contrib/opensolaris/lib/libdtrace/aarch64/ |
H A D | dt_isadep.c | 52 ftp->ftps_pc = (uintptr_t)symp->st_value; in dt_pid_create_entry_probe() 86 ftp->ftps_pc = (uintptr_t)symp->st_value; in dt_pid_create_offset_probe() 108 ftp->ftps_pc = (uintptr_t)symp->st_value; in dt_pid_create_glob_offset_probes()
|
/freebsd/libexec/rtld-elf/arm/ |
H A D | reloc.c | 76 srcsym->st_value); in do_copy_relocations() 166 tmp = (Elf_Addr)obj->relocbase + def->st_value in reloc_nonplt_object() 195 def->st_value; in reloc_nonplt_object() 200 def->st_value; in reloc_nonplt_object() 243 tmp = (Elf_Addr)(def->st_value); in reloc_nonplt_object() 281 tmp = (Elf_Addr)def->st_value + defobj->tlsoffset; in reloc_nonplt_object() 394 target = (Elf_Addr)(defobj->relocbase + def->st_value); in reloc_jmpslots()
|
/freebsd/libexec/rtld-elf/amd64/ |
H A D | reloc.c | 112 srcsym->st_value); in do_copy_relocations() 213 def->st_value; in reloc_non_plt() 276 *where = (Elf_Addr)(def->st_value - defobj->tlsoffset + in reloc_non_plt() 297 *where32 = (Elf32_Addr)(def->st_value - in reloc_non_plt() 304 *where += (Elf_Addr)(def->st_value + rela->r_addend); in reloc_non_plt() 307 *where32 += (Elf32_Addr)(def->st_value + in reloc_non_plt() 394 target = (Elf_Addr)(defobj->relocbase + def->st_value + in reloc_jmpslots()
|
/freebsd/libexec/rtld-elf/riscv/ |
H A D | reloc.c | 66 gp = req.sym_out->st_value; in set_gp() 134 srcaddr = (const void *)(defobj->relocbase + srcsym->st_value); in do_copy_relocations() 205 *where = (Elf_Addr)(defobj->relocbase + def->st_value); in reloc_jmpslots() 376 def->st_value); in reloc_non_plt() 425 *where += (Elf_Addr)(def->st_value + rela->r_addend in reloc_non_plt() 452 *where = (def->st_value + rela->r_addend + in reloc_non_plt()
|
/freebsd/libexec/rtld-elf/aarch64/ |
H A D | reloc.c | 172 srcaddr = (const void *)(defobj->relocbase + srcsym->st_value); in do_copy_relocations() 221 offs = def->st_value; in reloc_tlsdesc() 290 def->st_value); in reloc_plt() 347 target = (Elf_Addr)(defobj->relocbase + def->st_value); in reloc_jmpslots() 530 def->st_value; in reloc_non_plt() 580 *where = def->st_value + rela->r_addend + in reloc_non_plt() 594 *where += (Elf_Addr)(def->st_value + rela->r_addend); in reloc_non_plt()
|
/freebsd/contrib/elftoolchain/libelf/ |
H A D | gelf_sym.c | 84 dst->st_value = (Elf64_Addr) sym32->st_value; in gelf_getsym() 150 LIBELF_COPY_U32(sym32, gs, st_value); in gelf_update_sym()
|
/freebsd/contrib/elftoolchain/nm/ |
H A D | nm.c | 387 if (l->sym->st_value == r->sym->st_value) in cmp_value() 389 return (l->sym->st_value > r->sym->st_value ? 1 : -1); in cmp_value() 399 return (l->sym->st_value - r->sym->st_value); in cmp_value() 1594 ep->sym->st_value >= func->lowpc && in print_lineno() 1595 ep->sym->st_value < func->highpc) { in print_lineno() 1606 ep->sym->st_value == var->addr) { in print_lineno() 1616 if (ep->sym->st_value == lie->addr) { in print_lineno() 1823 if (sym->st_value == 0 && (sym->st_info & 0xf) == STT_FILE) in sym_elem_nondebug() 1900 e->sym->st_value = sym->st_size; in sym_list_insert() 2068 printf("%016" PRIo64, sym->st_value); in sym_value_oct_print() [all …]
|
/freebsd/libexec/rtld-elf/i386/ |
H A D | reloc.c | 110 srcsym->st_value); in do_copy_relocations() 195 def->st_value; in reloc_non_plt() 259 add = (Elf_Addr)(def->st_value - defobj->tlsoffset); in reloc_non_plt() 269 *where += (Elf_Addr)def->st_value; in reloc_non_plt() 344 target = (Elf_Addr)(defobj->relocbase + def->st_value); in reloc_jmpslots()
|
/freebsd/sys/kern/ |
H A D | link_elf_obj.c | 582 es->st_value += (Elf_Addr)ef->progtab[pb].addr; in link_elf_link_preload() 1160 es->st_value += (Elf_Addr)ef->progtab[pb].addr; in link_elf_load_file() 1523 val = (caddr_t)es->st_value; in link_elf_symbol_values1() 1528 val = (caddr_t)es->st_value; in link_elf_symbol_values1() 1560 u_long st_value; in link_elf_search_symbol() local 1568 st_value = es->st_value; in link_elf_search_symbol() 1569 if (off >= st_value) { in link_elf_search_symbol() 1570 if (off - st_value < diff) { in link_elf_search_symbol() 1571 diff = off - st_value; in link_elf_search_symbol() 1575 } else if (off - st_value == diff) { in link_elf_search_symbol() [all …]
|
H A D | link_elf.c | 1548 (symp->st_value != 0 && in link_elf_lookup_symbol1() 1590 (symp->st_value != 0 && in link_elf_lookup_debug_symbol() 1616 (symp->st_value != 0 && in link_elf_lookup_debug_symbol_ctf() 1645 val = (caddr_t)ef->address + es->st_value; in link_elf_symbol_values1() 1679 val = (caddr_t)ef->address + es->st_value; in link_elf_debug_symbol_values() 1696 u_long st_value; in link_elf_search_symbol() local 1704 st_value = es->st_value + (uintptr_t) (void *) ef->address; in link_elf_search_symbol() 1705 if (off >= st_value) { in link_elf_search_symbol() 1706 if (off - st_value < diff) { in link_elf_search_symbol() 1707 diff = off - st_value; in link_elf_search_symbol() [all …]
|
/freebsd/libexec/rtld-elf/ |
H A D | debug.c | 118 (u_long)sym->st_value, (int)sym->st_size, in dump_Elf_Rel() 140 (u_long)sym->st_value, (int)sym->st_size, in dump_Elf_Rela()
|
/freebsd/libexec/rtld-elf/powerpc64/ |
H A D | reloc.c | 122 srcaddr = (const void *)(defobj->relocbase+srcsym->st_value); in do_copy_relocations() 226 def->st_value; in reloc_nonplt_object() 269 + (Elf_Addr *)(def->st_value + rela->r_addend in reloc_nonplt_object() 273 *where += (Elf_Addr)(def->st_value + rela->r_addend in reloc_nonplt_object() 472 target = (Elf_Addr)(defobj->relocbase + def->st_value); in reloc_jmpslots()
|
/freebsd/contrib/elftoolchain/libdwarf/ |
H A D | libdwarf_elf_init.c | 88 _dwarf_write_msb(buf, &offset, sym.st_value + addend, in _dwarf_elf_apply_rel_reloc() 91 _dwarf_write_lsb(buf, &offset, sym.st_value + addend, in _dwarf_elf_apply_rel_reloc() 124 sym.st_value + rela.r_addend, size); in _dwarf_elf_apply_rela_reloc() 127 sym.st_value + rela.r_addend, size); in _dwarf_elf_apply_rela_reloc()
|
/freebsd/lib/libkldelf/ |
H A D | ef.c | 157 (symp->st_value != 0 && in ef_lookup_symbol() 192 *startp = sym->st_value; in ef_lookup_set() 199 *stopp = sym->st_value; in ef_lookup_set() 219 sym->st_shndx != SHN_UNDEF && sym->st_value != 0) in ef_symaddr() 220 return (sym->st_value); in ef_symaddr()
|