| /netbsd-src/lib/libexecinfo/ |
| H A D | symtab.c | 62 uintptr_t st_value; member 77 return (int)(intmax_t)(sa->st_value - sb->st_value); in address_compare() 148 (uintmax_t)sym.st_value, ELF_ST_BIND(sym.st_info), in symtab_create() 159 s->st_value = sym.st_value; in symtab_create() 204 if (s[mid].st_value < me) in symtab_find() 206 else if (s[mid].st_value > me) in symtab_find() 217 sd = me - s[mid].st_value; in symtab_find() 219 dli->dli_saddr = (void *)s[mid].st_value; in symtab_find()
|
| /netbsd-src/external/cddl/osnet/dist/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()
|
| /netbsd-src/external/cddl/osnet/dist/lib/libdtrace/i386/ |
| H A D | dt_isadep.c | 71 ftp->ftps_pc = (uintptr_t)symp->st_value; in dt_pid_create_entry_probe() 105 size = dt_instr_size(&text[i], dtp, pid, symp->st_value + i, in dt_pid_has_jump_table() 160 if (Pread(P, text, symp->st_size, symp->st_value) != symp->st_size) { in dt_pid_create_return_probe() 167 ftp->ftps_pc = (uintptr_t)symp->st_value; in dt_pid_create_return_probe() 187 symp->st_value + i, dmodel); in dt_pid_create_return_probe() 220 symp->st_value + i, dmodel); in dt_pid_create_return_probe() 290 ftp->ftps_pc = (uintptr_t)symp->st_value; in dt_pid_create_offset_probe() 313 if (Pread(P, text, symp->st_size, symp->st_value) != in dt_pid_create_offset_probe() 347 symp->st_value + i, dmodel); in dt_pid_create_offset_probe() 388 ftp->ftps_pc = (uintptr_t)symp->st_value; in dt_pid_create_glob_offset_probes() [all …]
|
| /netbsd-src/external/gpl3/binutils/dist/libctf/ |
| H A D | ctf-util.c | 135 swap_thing (tmp.st_value); in ctf_elf32_to_link_sym() 146 dst->st_value = tmp.st_value; in ctf_elf32_to_link_sym() 174 swap_thing (tmp.st_value); in ctf_elf64_to_link_sym() 189 if (_libctf_unlikely_ (tmp.st_value != 0 && ((uint32_t) tmp.st_value == 0))) in ctf_elf64_to_link_sym() 190 dst->st_value = 1; in ctf_elf64_to_link_sym() 192 dst->st_value = (uint32_t) tmp.st_value; in ctf_elf64_to_link_sym()
|
| H A D | elf.h | 44 Elf32_Addr st_value; /* Symbol value */ member 57 Elf64_Addr st_value; /* Symbol value */ member
|
| /netbsd-src/external/gpl3/binutils.old/dist/libctf/ |
| H A D | ctf-util.c | 135 swap_thing (tmp.st_value); in ctf_elf32_to_link_sym() 146 dst->st_value = tmp.st_value; in ctf_elf32_to_link_sym() 174 swap_thing (tmp.st_value); in ctf_elf64_to_link_sym() 189 if (_libctf_unlikely_ (tmp.st_value != 0 && ((uint32_t) tmp.st_value == 0))) in ctf_elf64_to_link_sym() 190 dst->st_value = 1; in ctf_elf64_to_link_sym() 192 dst->st_value = (uint32_t) tmp.st_value; in ctf_elf64_to_link_sym()
|
| H A D | elf.h | 44 Elf32_Addr st_value; /* Symbol value */ member 57 Elf64_Addr st_value; /* Symbol value */ member
|
| /netbsd-src/external/cddl/osnet/dist/lib/libdtrace/arm/ |
| H A D | dt_isadep.c | 65 ftp->ftps_pc = (uintptr_t)symp->st_value; in dt_pid_create_entry_probe() 96 if (Pread(P, text, symp->st_size, symp->st_value) != symp->st_size) { in dt_pid_create_return_probe() 109 ftp->ftps_pc = symp->st_value; in dt_pid_create_return_probe() 136 ftp->ftps_pc = (uintptr_t)symp->st_value; in dt_pid_create_offset_probe() 158 ftp->ftps_pc = (uintptr_t)symp->st_value; in dt_pid_create_glob_offset_probes()
|
| /netbsd-src/libexec/ld.elf_so/arch/mips/ |
| H A D | mips_reloc.c | 198 *got = sym->st_value + relocbase; in _rtld_relocate_nonplt_self() 290 * by not outputting a PLT slot and setting st_value in _rtld_relocate_nonplt_objects() 297 *got = def->st_value + (Elf_Addr)defobj->relocbase; in _rtld_relocate_nonplt_objects() 301 sym->st_value != 0 && sym->st_shndx == SHN_UNDEF) { in _rtld_relocate_nonplt_objects() 304 * st_value should be 0, forcing us to resolve the in _rtld_relocate_nonplt_objects() 317 *got = sym->st_value + (Elf_Addr)obj->relocbase; in _rtld_relocate_nonplt_objects() 321 *got = sym->st_value + in _rtld_relocate_nonplt_objects() 327 *got = def->st_value + (Elf_Addr)defobj->relocbase; in _rtld_relocate_nonplt_objects() 411 val += (Elf_Addr)def->st_value; in _rtld_relocate_nonplt_objects() 450 val += (Elf_Addr)def->st_value in _rtld_relocate_nonplt_objects() [all...] |
| /netbsd-src/libexec/ld.elf_so/arch/sh3/ |
| H A D | mdreloc.c | 102 tmp = (Elf_Addr)(defobj->relocbase + def->st_value + in _rtld_relocate_nonplt_objects() 112 tmp = (Elf_Addr)(defobj->relocbase + def->st_value + in _rtld_relocate_nonplt_objects() 123 tmp = (Elf_Addr)(defobj->relocbase + def->st_value + in _rtld_relocate_nonplt_objects() 133 tmp = (Elf_Addr)(defobj->relocbase + def->st_value) + in _rtld_relocate_nonplt_objects() 168 *where = (Elf_Addr)(def->st_value); in _rtld_relocate_nonplt_objects() 189 *where = (Elf_Addr)def->st_value + in _rtld_relocate_nonplt_objects() 288 new_value = (Elf_Addr)(defobj->relocbase + def->st_value); in _rtld_relocate_plt_object()
|
| /netbsd-src/libexec/ld.elf_so/arch/x86_64/ |
| H A D | mdreloc.c | 181 def->st_value + rela->r_addend); in _rtld_relocate_nonplt_objects() 191 tmp64 = (Elf64_Addr)(defobj->relocbase + def->st_value + in _rtld_relocate_nonplt_objects() 202 def->st_value + rela->r_addend - in _rtld_relocate_nonplt_objects() 212 tmp64 = (Elf64_Addr)(defobj->relocbase + def->st_value); in _rtld_relocate_nonplt_objects() 233 *where64 = (Elf64_Addr)(def->st_value - in _rtld_relocate_nonplt_objects() 252 *where64 = (Elf64_Addr)(def->st_value + rela->r_addend); in _rtld_relocate_nonplt_objects() 335 new_value = (Elf_Addr)(defobj->relocbase + def->st_value + in _rtld_relocate_plt_object()
|
| /netbsd-src/external/cddl/osnet/dist/lib/libdtrace/common/ |
| H A D | dt_module.c | 116 if (sym->st_value != 0 && in dt_module_syminit32() 121 sym->st_value += (Elf_Addr) dmp->dm_reloc_offset; in dt_module_syminit32() 124 sym->st_value += in dt_module_syminit32() 128 sym->st_value += (uintptr_t) dmp->dm_reloc_offset; in dt_module_syminit32() 169 if (sym->st_value != 0 && in dt_module_syminit64() 173 sym->st_value += (Elf_Addr) dmp->dm_reloc_offset; in dt_module_syminit64() 176 sym->st_value += in dt_module_syminit64() 180 sym->st_value += (uintptr_t) dmp->dm_reloc_offset; in dt_module_syminit64() 201 if (lhs->st_value != rhs->st_value) in dt_module_symcomp32() 202 return (lhs->st_value > rhs->st_value ? 1 : -1); in dt_module_symcomp32() [all …]
|
| /netbsd-src/lib/libc/gen/ |
| H A D | nlist_elf32.c | 185 && (intptr_t)sym.st_value == (intmax_t)sym.st_value in ELFNAMEEND() 187 && (uintptr_t)sym.st_value == sym.st_value in ELFNAMEEND() 191 p->n_value = (uintptr_t)sym.st_value; in ELFNAMEEND() 303 p->n_value = (uintptr_t)symp[i].st_value; in ELFNAMEEND()
|
| /netbsd-src/external/cddl/osnet/dist/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()
|
| /netbsd-src/external/bsd/elftosb/dist/common/ |
| H A D | StELFFile.cpp | 390 symbol->st_value = ENDIAN_LITTLE_TO_HOST_U32(symbol->st_value); in byteSwapSymbolTable() 425 …if (symbol.st_value == symbolAddress && (strict && ELF32_ST_TYPE(symbol.st_info) == STT_FUNC && sy… in getIndexOfSymbolAtAddress() 462 mappingSymCount = mappingSymCountSym.st_value; in getTypeOfSymbolAtIndex() 485 if (symbol.st_value >= lastMappingSymAddress && symbol.st_value < mappingSym.st_value) in getTypeOfSymbolAtIndex() 489 lastMappingSymAddress = mappingSym.st_value; in getTypeOfSymbolAtIndex() 526 …(symbol.st_info)], symbolBinding[ELF32_ST_BIND(symbol.st_info)], symbol.st_value, symbol.st_size, … in dumpSymbolTable()
|
| /netbsd-src/libexec/ld.elf_so/arch/i386/ |
| H A D | mdreloc.c | 99 target = (Elf_Addr)(defobj->relocbase + def->st_value); in _rtld_relocate_nonplt_objects() 111 target = (Elf_Addr)(defobj->relocbase + def->st_value); in _rtld_relocate_nonplt_objects() 157 *where += (Elf_Addr)(def->st_value - defobj->tlsoffset); in _rtld_relocate_nonplt_objects() 169 *where += (Elf_Addr)(defobj->tlsoffset - def->st_value); in _rtld_relocate_nonplt_objects() 184 *where = (Elf_Addr)(def->st_value); in _rtld_relocate_nonplt_objects() 256 target = (Elf_Addr)(defobj->relocbase + def->st_value); in _rtld_relocate_plt_object()
|
| /netbsd-src/external/bsd/libproc/dist/tests/ |
| H A D | proc_test.c | 151 ATF_CHECK_EQ_MSG(addr, sym->st_value, in verify_bkpt() 153 addr, (uintmax_t)sym->st_value); in verify_bkpt() 307 set_bkpt(phdl, (uintptr_t)r_debug_state_sym.st_value, &saved); in ATF_TC_BODY() 310 remove_bkpt(phdl, (uintptr_t)r_debug_state_sym.st_value, &saved); in ATF_TC_BODY() 312 set_bkpt(phdl, (uintptr_t)main_sym.st_value, &saved); in ATF_TC_BODY() 315 remove_bkpt(phdl, (uintptr_t)main_sym.st_value, &saved); in ATF_TC_BODY()
|
| /netbsd-src/libexec/ld.elf_so/arch/arm/ |
| H A D | mdreloc.c | 132 tmp = (Elf_Addr)obj->relocbase + def->st_value in _rtld_relocate_nonplt_objects() 159 def->st_value; in _rtld_relocate_nonplt_objects() 167 def->st_value; in _rtld_relocate_nonplt_objects() 215 tmp = (Elf_Addr)(def->st_value); in _rtld_relocate_nonplt_objects() 248 tmp += (Elf_Addr)def->st_value + defobj->tlsoffset + sizeof(struct tls_tcb); in _rtld_relocate_nonplt_objects() 318 new_value = (Elf_Addr)(defobj->relocbase + def->st_value); in _rtld_relocate_plt_object()
|
| /netbsd-src/libexec/ld.elf_so/arch/m68k/ |
| H A D | mdreloc.c | 95 tmp = (Elf_Addr)(defobj->relocbase + def->st_value + in _rtld_relocate_nonplt_objects() 108 tmp = (Elf_Addr)(defobj->relocbase + def->st_value + in _rtld_relocate_nonplt_objects() 147 *where = (Elf_Addr)(def->st_value + rela->r_addend in _rtld_relocate_nonplt_objects() 159 *where = (Elf_Addr)(def->st_value + rela->r_addend in _rtld_relocate_nonplt_objects() 228 new_value = (Elf_Addr)(defobj->relocbase + def->st_value + in _rtld_relocate_plt_object()
|
| /netbsd-src/libexec/ld.elf_so/arch/hppa/ |
| H A D | hppa_reloc.c | 239 relocbase + rela->r_addend + sym->st_value); in _rtld_relocate_nonplt_self() 276 (relocbase + sym->st_value + rela->r_addend); in _rtld_relocate_nonplt_self() 311 (void *)sym->st_value, 350 func_pc = (Elf_Addr)(defobj->relocbase + def->st_value + in _rtld_function_descriptor_alloc() 533 def->st_value + rela->r_addend); in _rtld_relocate_nonplt_objects() 577 *where = (Elf_Addr)(defobj->tlsoffset + def->st_value + in _rtld_relocate_nonplt_objects() 595 *where = (Elf_Addr)(def->st_value); in _rtld_relocate_nonplt_objects() 706 func_pc = (Elf_Addr)(defobj->relocbase + def->st_value + in _rtld_relocate_plt_object()
|
| /netbsd-src/external/cddl/osnet/dist/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()
|
| /netbsd-src/external/cddl/osnet/dist/lib/libdtrace/aarch64/ |
| H A D | dt_isadep.c | 54 ftp->ftps_pc = (uintptr_t)symp->st_value; in dt_pid_create_entry_probe() 88 ftp->ftps_pc = (uintptr_t)symp->st_value; in dt_pid_create_offset_probe() 110 ftp->ftps_pc = (uintptr_t)symp->st_value; in dt_pid_create_glob_offset_probes()
|
| /netbsd-src/sys/ddb/ |
| H A D | db_elf.c | 293 if (off >= symp->st_value) { in db_elf_search_symbol() 294 if (off - symp->st_value < diff) { in db_elf_search_symbol() 295 diff = off - symp->st_value; in db_elf_search_symbol() 309 } else if (off - symp->st_value == diff) { in db_elf_search_symbol() 352 *valuep = symp->st_value; in db_elf_symbol_values()
|
| /netbsd-src/libexec/ld.elf_so/arch/aarch64/ |
| H A D | mdreloc.c | 169 offs = def->st_value; in _rtld_tlsdesc_fill() 257 tmp = (Elf_Addr)defobj->relocbase + def->st_value + in _rtld_relocate_nonplt_objects() 301 *where = (Elf_Addr)(def->st_value + rela->r_addend); in _rtld_relocate_nonplt_objects() 321 *where = (Elf_Addr)(def->st_value + defobj->tlsoffset + in _rtld_relocate_nonplt_objects() 422 def->st_value); in _rtld_relocate_plt_object()
|
| /netbsd-src/libexec/ld.elf_so/arch/powerpc/ |
| H A D | ppc_reloc.c | 248 tmp = (Elf_Addr)(defobj->relocbase + def->st_value + in _rtld_relocate_nonplt_objects() 263 tmp = (Elf_Addr)(defobj->relocbase + def->st_value + in _rtld_relocate_nonplt_objects() 279 tmp = (Elf_Addr)(defobj->relocbase + def->st_value + in _rtld_relocate_nonplt_objects() 331 *where = (Elf_Addr)(def->st_value + rela->r_addend in _rtld_relocate_nonplt_objects() 343 *where = (Elf_Addr)(def->st_value + rela->r_addend in _rtld_relocate_nonplt_objects() 458 value = (Elf_Addr)(defobj->relocbase + def->st_value); in _rtld_relocate_plt_object()
|