/sysdeps/unix/sysv/linux/powerpc/powerpc64/ |
A D | ldsodefs.h | 29 _dl_ppc64_is_opd_sym (const struct link_map *l, const ElfW(Sym) *sym) in _dl_ppc64_is_opd_sym() argument 31 return (ELFW(ST_TYPE) (sym->st_info) == STT_FUNC in _dl_ppc64_is_opd_sym() 32 && l->l_addr + sym->st_value >= (ElfW(Addr)) l->l_ld in _dl_ppc64_is_opd_sym() 33 && l->l_addr + sym->st_value < l->l_map_end in _dl_ppc64_is_opd_sym() 34 && sym->st_size != 0); in _dl_ppc64_is_opd_sym() 38 _dl_ppc64_addr_sym_match (const struct link_map *l, const ElfW(Sym) *sym, in _dl_ppc64_addr_sym_match() argument 41 ElfW(Addr) value = l->l_addr + sym->st_value; in _dl_ppc64_addr_sym_match() 42 if (_dl_ppc64_is_opd_sym (l, sym)) in _dl_ppc64_addr_sym_match() 47 if (addr < value || addr >= value + sym->st_size) in _dl_ppc64_addr_sym_match() 51 else if (sym->st_shndx == SHN_UNDEF || sym->st_size == 0) in _dl_ppc64_addr_sym_match() [all …]
|
/sysdeps/unix/mips/ |
A D | sysdep.h | 45 #define PSEUDO_END(sym) cfi_endproc; .end sym; .size sym,.-sym argument 56 #define PSEUDO_END_NOERRNO(sym) cfi_endproc; .end sym; .size sym,.-sym argument 69 #define PSEUDO_END_ERRVAL(sym) cfi_endproc; .end sym; .size sym,.-sym argument
|
/sysdeps/nptl/ |
A D | dl-mutex.c | 39 const ElfW(Sym) *sym in __rtld_mutex_init() 44 assert (sym != NULL); in __rtld_mutex_init() 45 ___rtld_mutex_lock = DL_SYMBOL_ADDRESS (libc_map, sym); in __rtld_mutex_init() 47 sym = _dl_lookup_direct (libc_map, "pthread_mutex_unlock", in __rtld_mutex_init() 51 assert (sym != NULL); in __rtld_mutex_init() 52 ___rtld_mutex_unlock = DL_SYMBOL_ADDRESS (libc_map, sym); in __rtld_mutex_init()
|
/sysdeps/i386/ |
A D | dl-machine.h | 300 if (sym != NULL in elf_machine_rel() 359 if (sym != NULL) in elf_machine_rel() 369 if (! sym) in elf_machine_rel() 404 if (sym != NULL) in elf_machine_rel() 419 if (sym != NULL) in elf_machine_rel() 435 if (sym == NULL) in elf_machine_rel() 521 *reloc_addr = (sym == NULL ? 0 : sym->st_value) + reloc->r_addend; in elf_machine_rela() 529 if (!sym) in elf_machine_rela() 564 if (sym != NULL) in elf_machine_rela() 576 if (sym != NULL) in elf_machine_rela() [all …]
|
A D | tst-auditmod3b.c | 120 la_symbind32 (Elf32_Sym *sym, unsigned int ndx, uintptr_t *refcook, in la_symbind32() argument 124 symname, (long int) sym->st_value, ndx, *flags); in la_symbind32() 126 return sym->st_value; in la_symbind32() 132 pltenter (ElfW(Sym) *sym, unsigned int ndx, uintptr_t *refcook, in pltenter() argument 137 symname, (long int) sym->st_value, ndx, *flags); in pltenter() 150 return sym->st_value; in pltenter() 154 pltexit (ElfW(Sym) *sym, unsigned int ndx, uintptr_t *refcook, in pltexit() argument 159 symname, (long int) sym->st_value, ndx, in pltexit()
|
/sysdeps/mips/ |
A D | dl-machine.h | 191 ElfW(Sym) *sym; \ 219 if (sym->st_shndx == SHN_UNDEF || sym->st_shndx == SHN_COMMON) \ 226 if (sym->st_other == 0) \ 233 sym++; \ 521 if (sym) in elf_machine_reloc() 531 if (sym) in elf_machine_reloc() 682 sym->st_size < refsym->st_size in elf_machine_reloc() 775 ElfW(Sym) *sym; in elf_machine_got_rel() 826 if (ELFW(ST_TYPE) (sym->st_info) == STT_FUNC && sym->st_value in elf_machine_got_rel() 853 if (sym->st_other == 0) in elf_machine_got_rel() [all …]
|
A D | dl-tls.h | 35 #define TLS_TPREL_VALUE(sym_map, sym) \ argument 36 ((sym_map)->l_tls_offset + (sym)->st_value - TLS_TP_OFFSET) 39 #define TLS_DTPREL_VALUE(sym) \ argument 40 ((sym)->st_value - TLS_DTV_OFFSET)
|
A D | elf_machine_sym_no_match.h | 38 elf_machine_sym_no_match (const ElfW(Sym) *sym) in elf_machine_sym_no_match() argument 40 return sym->st_shndx == SHN_UNDEF && !(sym->st_other & STO_MIPS_PLT); in elf_machine_sym_no_match()
|
A D | sotruss-lib.c | 27 la_mips_o32_gnu_pltenter (ElfW(Sym) *sym __attribute__ ((unused)), in la_mips_o32_gnu_pltenter() argument 40 return sym->st_value; in la_mips_o32_gnu_pltenter() 44 la_mips_o32_gnu_pltexit (ElfW(Sym) *sym, unsigned int ndx, uintptr_t *refcook, in la_mips_o32_gnu_pltexit() argument 58 la_mips_n32_gnu_pltenter (ElfW(Sym) *sym __attribute__ ((unused)), in la_mips_n32_gnu_pltenter() argument 71 return sym->st_value; in la_mips_n32_gnu_pltenter() 75 la_mips_n32_gnu_pltexit (ElfW(Sym) *sym, unsigned int ndx, uintptr_t *refcook, in la_mips_n32_gnu_pltexit() argument 89 la_mips_n64_gnu_pltenter (ElfW(Sym) *sym __attribute__ ((unused)), in la_mips_n64_gnu_pltenter() argument 102 return sym->st_value; in la_mips_n64_gnu_pltenter() 106 la_mips_n64_gnu_pltexit (ElfW(Sym) *sym, unsigned int ndx, uintptr_t *refcook, in la_mips_n64_gnu_pltexit() argument
|
/sysdeps/arm/ |
A D | dl-machine.h | 367 if (sym != NULL in elf_machine_rel() 376 if (sym == NULL) in elf_machine_rel() 397 if (sym != NULL && sym->st_value == 0) in elf_machine_rel() 436 if (! sym) in elf_machine_rel() 444 value = sym->st_value; in elf_machine_rel() 482 if (sym != NULL) in elf_machine_rel() 487 if (sym != NULL) in elf_machine_rel() 530 if (sym != NULL in elf_machine_rela() 541 if (sym == NULL) in elf_machine_rela() 576 *reloc_addr = (sym == NULL ? 0 : sym->st_value) + reloc->r_addend; in elf_machine_rela() [all …]
|
/sysdeps/x86_64/ |
A D | tst-auditmod3b.c | 91 la_symbind32 (Elf32_Sym *sym, unsigned int ndx, uintptr_t *refcook, in la_symbind32() argument 95 symname, (long int) sym->st_value, ndx, *flags); in la_symbind32() 97 return sym->st_value; in la_symbind32() 101 la_symbind64 (Elf64_Sym *sym, unsigned int ndx, uintptr_t *refcook, in la_symbind64() argument 105 symname, (long int) sym->st_value, ndx, *flags); in la_symbind64() 107 return sym->st_value; in la_symbind64() 113 pltenter (ElfW(Sym) *sym, unsigned int ndx, uintptr_t *refcook, in pltenter() argument 118 symname, (long int) sym->st_value, ndx, *flags); in pltenter() 130 return sym->st_value; in pltenter() 134 pltexit (ElfW(Sym) *sym, unsigned int ndx, uintptr_t *refcook, in pltexit() argument [all …]
|
A D | tst-auditmod5b.c | 91 la_symbind32 (Elf32_Sym *sym, unsigned int ndx, uintptr_t *refcook, in la_symbind32() argument 95 symname, (long int) sym->st_value, ndx, *flags); in la_symbind32() 97 return sym->st_value; in la_symbind32() 101 la_symbind64 (Elf64_Sym *sym, unsigned int ndx, uintptr_t *refcook, in la_symbind64() argument 105 symname, (long int) sym->st_value, ndx, *flags); in la_symbind64() 107 return sym->st_value; in la_symbind64() 113 pltenter (ElfW(Sym) *sym, unsigned int ndx, uintptr_t *refcook, in pltenter() argument 118 symname, (long int) sym->st_value, ndx, *flags); in pltenter() 150 return sym->st_value; in pltenter() 154 pltexit (ElfW(Sym) *sym, unsigned int ndx, uintptr_t *refcook, in pltexit() argument [all …]
|
A D | dl-machine.h | 292 const ElfW(Sym) *const refsym = sym; in elf_machine_rela() 298 if (sym != NULL in elf_machine_rela() 341 value = sym->st_size; in elf_machine_rela() 368 if (sym != NULL) in elf_machine_rela() 370 value = sym->st_value + reloc->r_addend; in elf_machine_rela() 390 if (! sym) in elf_machine_rela() 422 if (sym != NULL) in elf_machine_rela() 455 value = sym->st_size; in elf_machine_rela() 490 if (sym == NULL) in elf_machine_rela() 495 MIN (sym->st_size, refsym->st_size)); in elf_machine_rela() [all …]
|
A D | tst-auditmod4b.c | 90 la_symbind32 (Elf32_Sym *sym, unsigned int ndx, uintptr_t *refcook, in la_symbind32() argument 94 symname, (long int) sym->st_value, ndx, *flags); in la_symbind32() 96 return sym->st_value; in la_symbind32() 100 la_symbind64 (Elf64_Sym *sym, unsigned int ndx, uintptr_t *refcook, in la_symbind64() argument 104 symname, (long int) sym->st_value, ndx, *flags); in la_symbind64() 106 return sym->st_value; in la_symbind64() 138 pltenter (ElfW(Sym) *sym, unsigned int ndx, uintptr_t *refcook, in pltenter() argument 143 symname, (long int) sym->st_value, ndx, *flags); in pltenter() 177 return sym->st_value; in pltenter() 181 pltexit (ElfW(Sym) *sym, unsigned int ndx, uintptr_t *refcook, in pltexit() argument [all …]
|
A D | tst-auditmod10b.c | 107 la_symbind32 (Elf32_Sym *sym, unsigned int ndx, uintptr_t *refcook, in la_symbind32() argument 111 symname, (long int) sym->st_value, ndx, *flags); in la_symbind32() 113 return sym->st_value; in la_symbind32() 117 la_symbind64 (Elf64_Sym *sym, unsigned int ndx, uintptr_t *refcook, in la_symbind64() argument 121 symname, (long int) sym->st_value, ndx, *flags); in la_symbind64() 123 return sym->st_value; in la_symbind64() 156 pltenter (ElfW(Sym) *sym, unsigned int ndx, uintptr_t *refcook, in pltenter() argument 161 symname, (long int) sym->st_value, ndx, *flags); in pltenter() 195 return sym->st_value; in pltenter() 199 pltexit (ElfW(Sym) *sym, unsigned int ndx, uintptr_t *refcook, in pltexit() argument [all …]
|
/sysdeps/nios2/ |
A D | dl-tls.h | 35 #define TLS_TPREL_VALUE(sym_map, sym) \ argument 36 ((sym_map)->l_tls_offset + (sym)->st_value - TLS_TP_OFFSET) 39 #define TLS_DTPREL_VALUE(sym) \ argument 40 ((sym)->st_value - TLS_DTV_OFFSET)
|
A D | dl-machine.h | 209 const ElfW(Sym) *refsym, const ElfW(Sym) *sym, in elf_machine_fixup_plt() 238 const ElfW(Rela) *reloc, const ElfW(Sym) *sym, in elf_machine_rela() 251 const Elf32_Sym *const refsym = sym; in elf_machine_rela() 254 Elf32_Addr value = SYMBOL_ADDRESS (sym_map, sym, true); in elf_machine_rela() 259 if (sym == NULL) in elf_machine_rela() 263 if (sym->st_size > refsym->st_size in elf_machine_rela() 264 || (sym->st_size < refsym->st_size && GLRO(dl_verbose))) in elf_machine_rela() 275 MIN (sym->st_size, refsym->st_size)); in elf_machine_rela() 281 if (sym != NULL && sym->st_value == 0) in elf_machine_rela() 296 *reloc_addr = reloc->r_addend + TLS_DTPREL_VALUE(sym); in elf_machine_rela() [all …]
|
/sysdeps/riscv/ |
A D | dl-tls.h | 35 #define TLS_TPREL_VALUE(sym_map, sym) \ argument 36 ((sym_map)->l_tls_offset + (sym)->st_value - TLS_TP_OFFSET) 39 #define TLS_DTPREL_VALUE(sym) \ argument 40 ((sym)->st_value - TLS_DTV_OFFSET)
|
A D | dl-machine.h | 154 const ElfW(Sym) *refsym, const ElfW(Sym) *sym, in elf_machine_fixup_plt() 172 const ElfW(Rela) *reloc, const ElfW(Sym) *sym, in elf_machine_rela() 185 if (sym != NULL in elf_machine_rela() 187 && __glibc_likely (sym->st_shndx != SHN_UNDEF) in elf_machine_rela() 201 if (sym != NULL) in elf_machine_rela() 202 *addr_field = TLS_DTPREL_VALUE (sym) + reloc->r_addend; in elf_machine_rela() 206 if (sym != NULL) in elf_machine_rela() 215 if (__glibc_unlikely (sym == NULL)) in elf_machine_rela() 229 size_t size = sym->st_size; in elf_machine_rela() 230 if (__glibc_unlikely (sym->st_size != refsym->st_size)) in elf_machine_rela() [all …]
|
/sysdeps/m68k/ |
A D | dl-tls.h | 35 #define TLS_TPREL_VALUE(sym_map, sym, reloc) \ argument 36 ((sym_map)->l_tls_offset + (sym)->st_value + (reloc)->r_addend \ 40 #define TLS_DTPREL_VALUE(sym, reloc) \ argument 41 ((sym)->st_value + (reloc)->r_addend - TLS_DTV_OFFSET)
|
A D | dl-machine.h | 190 const ElfW(Sym) *refsym, const ElfW(Sym) *sym, in elf_machine_fixup_plt() 219 const Elf32_Rela *reloc, const Elf32_Sym *sym, in elf_machine_rela() argument 230 const Elf32_Sym *const refsym = sym; in elf_machine_rela() 233 Elf32_Addr value = SYMBOL_ADDRESS (sym_map, sym, true); in elf_machine_rela() 238 if (sym == NULL) in elf_machine_rela() 242 if (sym->st_size > refsym->st_size in elf_machine_rela() 253 MIN (sym->st_size, refsym->st_size)); in elf_machine_rela() 287 if (sym != NULL) in elf_machine_rela() 288 *reloc_addr = TLS_DTPREL_VALUE (sym, reloc); in elf_machine_rela() 291 if (sym != NULL) in elf_machine_rela() [all …]
|
/sysdeps/powerpc/ |
A D | dl-tls.h | 37 #define TLS_TPREL_VALUE(sym_map, sym, reloc) \ argument 38 ((sym_map)->l_tls_offset + (sym)->st_value + (reloc)->r_addend \ 42 #define TLS_DTPREL_VALUE(sym, reloc) \ argument 43 ((sym)->st_value + (reloc)->r_addend - TLS_DTV_OFFSET)
|
/sysdeps/microblaze/ |
A D | dl-machine.h | 176 const ElfW(Sym) *refsym, const ElfW(Sym) *sym, in elf_machine_fixup_plt() 211 const Elf32_Rela *reloc, const Elf32_Sym *sym, in elf_machine_rela() argument 224 const Elf32_Sym *const refsym = sym; in elf_machine_rela() 225 struct link_map *sym_map = RESOLVE_MAP (map, scope, &sym, version, in elf_machine_rela() 227 Elf32_Addr value = SYMBOL_ADDRESS (sym_map, sym, true); in elf_machine_rela() 238 if (sym != NULL && (sym->st_size > refsym->st_size in elf_machine_rela() 239 || (sym->st_size < refsym->st_size && GLRO (dl_verbose))) ) in elf_machine_rela() 249 MIN (sym->st_size, refsym->st_size)); in elf_machine_rela() 262 if (sym != NULL) in elf_machine_rela() 263 *reloc_addr = sym->st_value + reloc->r_addend; in elf_machine_rela() [all …]
|
/sysdeps/aarch64/ |
A D | dl-machine.h | 255 const ElfW(Sym) *const refsym = sym; in elf_machine_rela() 260 if (sym != NULL in elf_machine_rela() 269 if (sym == NULL) in elf_machine_rela() 272 if (sym->st_size > refsym->st_size in elf_machine_rela() 283 sym->st_size < refsym->st_size in elf_machine_rela() 284 ? sym->st_size : refsym->st_size); in elf_machine_rela() 302 if (! sym) in elf_machine_rela() 344 if (sym) in elf_machine_rela() 349 if (sym) in elf_machine_rela() 399 const ElfW (Sym) *sym = &symtab[symndx]; in elf_machine_lazy_rel() [all …]
|
/sysdeps/arc/ |
A D | dl-machine.h | 212 const ElfW(Sym) *refsym, const ElfW(Sym) *sym, in elf_machine_fixup_plt() 233 const ElfW(Rela) *reloc, const ElfW(Sym) *sym, in elf_machine_rela() 247 const ElfW(Sym) *const refsym = sym; in elf_machine_rela() 250 ElfW(Addr) value = SYMBOL_ADDRESS (sym_map, sym, true); in elf_machine_rela() 255 if (__glibc_unlikely (sym == NULL)) in elf_machine_rela() 260 size_t size = sym->st_size; in elf_machine_rela() 264 if (sym->st_size > refsym->st_size) in elf_machine_rela() 266 if (sym->st_size > refsym->st_size || GLRO(dl_verbose)) in elf_machine_rela() 289 if (sym != NULL) in elf_machine_rela() 293 *reloc_addr += sym->st_value; in elf_machine_rela() [all …]
|