Home
last modified time | relevance | path

Searched refs:sym_map (Results 1 – 25 of 37) sorted by relevance

12

/glibc-2.36/sysdeps/powerpc/powerpc64/
Ddl-machine.h441 ppc64_local_entry_offset (struct link_map *map, lookup_t sym_map, in ppc64_local_entry_offset() argument
446 if (sym_map != map) in ppc64_local_entry_offset()
480 elf_machine_fixup_plt (struct link_map *map, lookup_t sym_map, in elf_machine_fixup_plt() argument
497 if (sym_map == NULL) in elf_machine_fixup_plt()
514 if (finaladdr != 0 && map != sym_map && !sym_map->l_relocated in elf_machine_fixup_plt()
517 && sym_map != &GL(dl_rtld_map) in elf_machine_fixup_plt()
520 offset = sym_map->l_addr; in elf_machine_fixup_plt()
537 finaladdr += ppc64_local_entry_offset (map, sym_map, refsym, sym); in elf_machine_fixup_plt()
615 struct link_map *sym_map, in elf_machine_tprel() argument
620 if (sym_map) in elf_machine_tprel()
[all …]
/glibc-2.36/sysdeps/powerpc/powerpc32/
Ddl-machine.h267 struct link_map *sym_map,
295 struct link_map *sym_map = NULL; in elf_machine_rela() local
311 sym_map = map; in elf_machine_rela()
316 sym_map = RESOLVE_MAP (map, scope, &sym, version, r_type); in elf_machine_rela()
317 value = SYMBOL_ADDRESS (sym_map, sym, true); in elf_machine_rela()
353 reloc_addr[1] = (sym_map->l_tls_offset - TLS_TP_OFFSET in elf_machine_rela()
357 else if (sym_map != NULL) in elf_machine_rela()
360 CHECK_STATIC_TLS (map, sym_map); in elf_machine_rela()
362 if (TRY_STATIC_TLS (map, sym_map)) in elf_machine_rela()
367 reloc_addr[1] = (sym_map->l_tls_offset - TLS_TP_OFFSET in elf_machine_rela()
[all …]
/glibc-2.36/elf/
Ddl-static-tls.h31 #define HAVE_STATIC_TLS(map, sym_map) \ argument
32 (__builtin_expect ((sym_map)->l_tls_offset != NO_TLS_OFFSET \
33 && ((sym_map)->l_tls_offset \
36 #define CHECK_STATIC_TLS(map, sym_map) \ argument
38 if (!HAVE_STATIC_TLS (map, sym_map)) \
39 _dl_allocate_static_tls (sym_map); \
42 #define TRY_STATIC_TLS(map, sym_map) \ argument
43 (__builtin_expect ((sym_map)->l_tls_offset \
45 && (__builtin_expect ((sym_map)->l_tls_offset != NO_TLS_OFFSET, 1) \
46 || _dl_try_allocate_static_tls (sym_map, true) == 0))
Ddo-rel.h153 struct link_map *sym_map variable
157 _dl_audit_symbind (map, NULL, sym, r_addr_arg, sym_map);
198 struct link_map *sym_map variable
203 _dl_audit_symbind (map, NULL , sym,r_addr_arg, sym_map);
/glibc-2.36/sysdeps/i386/
Ddl-machine.h269 struct link_map *sym_map = RESOLVE_MAP (map, scope, &sym, version, in elf_machine_rel() local
271 Elf32_Addr value = SYMBOL_ADDRESS (sym_map, sym, true); in elf_machine_rel()
279 if (sym_map != map in elf_machine_rel()
280 && !sym_map->l_relocated) in elf_machine_rel()
284 if (sym_map->l_type == lt_executable) in elf_machine_rel()
294 sym_map->l_name, in elf_machine_rel()
324 if (sym_map != NULL) in elf_machine_rel()
325 *reloc_addr = sym_map->l_tls_modid; in elf_machine_rel()
349 CHECK_STATIC_TLS (map, sym_map); in elf_machine_rel()
351 if (!TRY_STATIC_TLS (map, sym_map)) in elf_machine_rel()
[all …]
/glibc-2.36/sysdeps/hppa/
Ddl-machine.h549 struct link_map *sym_map; in elf_machine_rela() local
559 sym_map = map; in elf_machine_rela()
561 sym_map = RESOLVE_MAP (map, scope, &sym, version, r_type); in elf_machine_rela()
564 if (sym_map) in elf_machine_rela()
566 value = SYMBOL_ADDRESS (sym_map, sym, true); in elf_machine_rela()
590 value = (SYMBOL_ADDRESS (sym_map, sym, true) in elf_machine_rela()
601 value = ((SYMBOL_ADDRESS (sym_map, sym, true) & 0x7ff) in elf_machine_rela()
614 || sym_map == NULL in elf_machine_rela()
623 value = (Elf32_Addr)((unsigned int)_dl_make_fptr (sym_map, sym, value) | 2); in elf_machine_rela()
634 value = (Elf32_Addr)((unsigned int)_dl_make_fptr (sym_map, sym, value) | 2); in elf_machine_rela()
[all …]
/glibc-2.36/sysdeps/arm/
Ddl-machine.h306 struct link_map *sym_map = RESOLVE_MAP (map, scope, &sym, version, in elf_machine_rel() local
308 Elf32_Addr value = SYMBOL_ADDRESS (sym_map, sym, true); in elf_machine_rel()
391 CHECK_STATIC_TLS (map, sym_map); in elf_machine_rel()
393 if (!TRY_STATIC_TLS (map, sym_map)) in elf_machine_rel()
396 = _dl_make_tlsdesc_dynamic (sym_map, value); in elf_machine_rel()
403 td->argument.value = value + sym_map->l_tls_offset; in elf_machine_rel()
420 if (sym_map != NULL) in elf_machine_rel()
421 *reloc_addr = sym_map->l_tls_modid; in elf_machine_rel()
432 CHECK_STATIC_TLS (map, sym_map); in elf_machine_rel()
433 *reloc_addr += sym->st_value + sym_map->l_tls_offset; in elf_machine_rel()
[all …]
/glibc-2.36/sysdeps/x86_64/
Ddl-machine.h271 struct link_map *sym_map = RESOLVE_MAP (map, scope, &sym, version, in elf_machine_rela() local
273 ElfW(Addr) value = SYMBOL_ADDRESS (sym_map, sym, true); in elf_machine_rela()
281 if (sym_map != map in elf_machine_rela()
282 && !sym_map->l_relocated) in elf_machine_rela()
286 if (sym_map->l_type == lt_executable) in elf_machine_rela()
296 sym_map->l_name, in elf_machine_rela()
330 if (sym_map != NULL) in elf_machine_rela()
331 *reloc_addr = sym_map->l_tls_modid; in elf_machine_rela()
364 CHECK_STATIC_TLS (map, sym_map); in elf_machine_rela()
366 if (!TRY_STATIC_TLS (map, sym_map)) in elf_machine_rela()
[all …]
/glibc-2.36/sysdeps/ia64/
Ddl-machine.h360 struct link_map *sym_map = RESOLVE_MAP (map, scope, &sym, version, in elf_machine_rela() local
364 if (sym_map != NULL) in elf_machine_rela()
366 value = SYMBOL_ADDRESS (sym_map, sym, true) + reloc->r_addend; in elf_machine_rela()
373 DL_FIXUP_MAKE_VALUE (sym_map, value)); in elf_machine_rela()
377 value = _dl_make_fptr (sym_map, sym, value); in elf_machine_rela()
387 value = sym_map->l_tls_modid; in elf_machine_rela()
389 value -= sym_map->l_addr; in elf_machine_rela()
394 CHECK_STATIC_TLS (map, sym_map); in elf_machine_rela()
396 value += sym_map->l_tls_offset - sym_map->l_addr; in elf_machine_rela()
/glibc-2.36/sysdeps/riscv/
Ddl-machine.h181 struct link_map *sym_map = RESOLVE_MAP (map, scope, &sym, version, r_type); in elf_machine_rela() local
183 if (sym_map != NULL) in elf_machine_rela()
184 value = SYMBOL_ADDRESS (sym_map, sym, true) + reloc->r_addend; in elf_machine_rela()
205 if (sym_map) in elf_machine_rela()
206 *addr_field = sym_map->l_tls_modid; in elf_machine_rela()
217 CHECK_STATIC_TLS (map, sym_map); in elf_machine_rela()
218 *addr_field = TLS_TPREL_VALUE (sym_map, sym) + reloc->r_addend; in elf_machine_rela()
233 if (__glibc_likely (sym->st_value >= sym_map->l_tls_initimage_size)) in elf_machine_rela()
235 value += (ElfW(Addr)) sym_map->l_tls_initimage - sym_map->l_addr; in elf_machine_rela()
/glibc-2.36/sysdeps/sparc/sparc32/
Ddl-machine.h265 struct link_map *sym_map = NULL; in elf_machine_rela() local
287 sym_map = map; in elf_machine_rela()
292 sym_map = RESOLVE_MAP (map, scope, &sym, version, r_type); in elf_machine_rela()
293 value = SYMBOL_ADDRESS (sym_map, sym, true); in elf_machine_rela()
361 if (sym_map != NULL) in elf_machine_rela()
362 *reloc_addr = sym_map->l_tls_modid; in elf_machine_rela()
376 CHECK_STATIC_TLS (map, sym_map); in elf_machine_rela()
377 *reloc_addr = sym->st_value - sym_map->l_tls_offset in elf_machine_rela()
386 CHECK_STATIC_TLS (map, sym_map); in elf_machine_rela()
387 value = sym->st_value - sym_map->l_tls_offset in elf_machine_rela()
/glibc-2.36/sysdeps/aarch64/
Ddl-machine.h184 struct link_map *sym_map = RESOLVE_MAP (map, scope, &sym, version, in elf_machine_rela() local
186 ElfW(Addr) value = SYMBOL_ADDRESS (sym_map, sym, true); in elf_machine_rela()
239 CHECK_STATIC_TLS (map, sym_map); in elf_machine_rela()
241 if (!TRY_STATIC_TLS (map, sym_map)) in elf_machine_rela()
244 (sym_map, sym->st_value + reloc->r_addend); in elf_machine_rela()
250 td->arg = (void*)(sym->st_value + sym_map->l_tls_offset in elf_machine_rela()
259 if (sym_map != NULL) in elf_machine_rela()
261 *reloc_addr = sym_map->l_tls_modid; in elf_machine_rela()
273 CHECK_STATIC_TLS (map, sym_map); in elf_machine_rela()
275 sym->st_value + reloc->r_addend + sym_map->l_tls_offset; in elf_machine_rela()
/glibc-2.36/sysdeps/alpha/
Ddl-machine.h356 struct link_map *sym_map = RESOLVE_MAP (map, scope, &sym, version, in elf_machine_rela() local
362 if (sym_map) in elf_machine_rela()
365 sym_value += SYMBOL_ADDRESS (sym_map, sym, true); in elf_machine_rela()
387 if (sym_map != NULL) in elf_machine_rela()
388 *reloc_addr = sym_map->l_tls_modid; in elf_machine_rela()
404 if (sym_map) in elf_machine_rela()
406 CHECK_STATIC_TLS (map, sym_map); in elf_machine_rela()
407 *reloc_addr = sym_raw_value + sym_map->l_tls_offset; in elf_machine_rela()
/glibc-2.36/sysdeps/sparc/sparc64/
Ddl-machine.h289 struct link_map *sym_map = NULL; in elf_machine_rela() local
311 sym_map = map; in elf_machine_rela()
316 sym_map = RESOLVE_MAP (map, scope, &sym, version, r_type); in elf_machine_rela()
317 value = SYMBOL_ADDRESS (sym_map, sym, true); in elf_machine_rela()
372 if (sym_map != NULL) in elf_machine_rela()
373 *reloc_addr = sym_map->l_tls_modid; in elf_machine_rela()
387 CHECK_STATIC_TLS (map, sym_map); in elf_machine_rela()
388 *reloc_addr = sym->st_value - sym_map->l_tls_offset in elf_machine_rela()
397 CHECK_STATIC_TLS (map, sym_map); in elf_machine_rela()
398 value = sym->st_value - sym_map->l_tls_offset in elf_machine_rela()
/glibc-2.36/sysdeps/mips/
Ddl-machine.h462 struct link_map *sym_map = RESOLVE_MAP (map, scope, &sym, version, in elf_machine_reloc() local
469 if (sym_map) in elf_machine_reloc()
470 *addr_field = sym_map->l_tls_modid; in elf_machine_reloc()
487 CHECK_STATIC_TLS (map, sym_map); in elf_machine_reloc()
490 *addr_field = r_addend + TLS_TPREL_VALUE (sym_map, sym); in elf_machine_reloc()
593 struct link_map *sym_map; in elf_machine_reloc() local
603 sym_map = RESOLVE_MAP (map, scope, &sym, version, r_type); in elf_machine_reloc()
604 value = SYMBOL_ADDRESS (sym_map, sym, true); in elf_machine_reloc()
613 struct link_map *sym_map; in elf_machine_reloc() local
617 sym_map = RESOLVE_MAP (map, scope, &sym, version, r_type); in elf_machine_reloc()
[all …]
/glibc-2.36/sysdeps/or1k/
Ddl-machine.h193 struct link_map *sym_map = RESOLVE_MAP (map, scope, &sym, version, in elf_machine_rela() local
195 Elf32_Addr value = SYMBOL_ADDRESS (sym_map, sym, true); in elf_machine_rela()
240 if (sym_map != NULL) in elf_machine_rela()
241 *reloc_addr = sym_map->l_tls_modid; in elf_machine_rela()
255 if (sym_map != NULL) in elf_machine_rela()
257 CHECK_STATIC_TLS (map, sym_map); in elf_machine_rela()
259 sym_map->l_tls_offset - TLS_TCB_SIZE; in elf_machine_rela()
/glibc-2.36/sysdeps/nios2/
Ddl-machine.h221 struct link_map *sym_map = RESOLVE_MAP (map, scope, &sym, version, in elf_machine_rela() local
223 Elf32_Addr value = SYMBOL_ADDRESS (sym_map, sym, true); in elf_machine_rela()
260 if (sym_map != NULL) in elf_machine_rela()
261 *reloc_addr = sym_map->l_tls_modid; in elf_machine_rela()
271 CHECK_STATIC_TLS (map, sym_map); in elf_machine_rela()
272 *reloc_addr = reloc->r_addend + TLS_TPREL_VALUE(sym_map, sym); in elf_machine_rela()
/glibc-2.36/sysdeps/microblaze/
Ddl-machine.h220 struct link_map *sym_map = RESOLVE_MAP (map, scope, &sym, version, in elf_machine_rela() local
222 Elf32_Addr value = SYMBOL_ADDRESS (sym_map, sym, true); in elf_machine_rela()
252 if (sym_map != NULL) in elf_machine_rela()
253 *reloc_addr = sym_map->l_tls_modid; in elf_machine_rela()
264 CHECK_STATIC_TLS (map, sym_map); in elf_machine_rela()
265 *reloc_addr = sym->st_value + sym_map->l_tls_offset + reloc->r_addend; in elf_machine_rela()
/glibc-2.36/sysdeps/m68k/
Ddl-machine.h222 struct link_map *sym_map = RESOLVE_MAP (map, scope, &sym, version, in elf_machine_rela() local
224 Elf32_Addr value = SYMBOL_ADDRESS (sym_map, sym, true); in elf_machine_rela()
274 if (sym_map != NULL) in elf_machine_rela()
275 *reloc_addr = sym_map->l_tls_modid; in elf_machine_rela()
284 CHECK_STATIC_TLS (map, sym_map); in elf_machine_rela()
285 *reloc_addr = TLS_TPREL_VALUE (sym_map, sym, reloc); in elf_machine_rela()
/glibc-2.36/sysdeps/arc/
Ddl-machine.h235 struct link_map *sym_map = RESOLVE_MAP (map, scope, &sym, version, in elf_machine_rela() local
237 ElfW(Addr) value = SYMBOL_ADDRESS (sym_map, sym, true); in elf_machine_rela()
269 if (sym_map != NULL) in elf_machine_rela()
272 *reloc_addr = sym_map->l_tls_modid; in elf_machine_rela()
286 CHECK_STATIC_TLS (map, sym_map); in elf_machine_rela()
287 *reloc_addr = sym_map->l_tls_offset + sym->st_value + reloc->r_addend; in elf_machine_rela()
/glibc-2.36/sysdeps/loongarch/
Ddl-machine.h154 struct link_map *sym_map = RESOLVE_MAP (map, scope, &sym, version, r_type); in elf_machine_rela() local
156 if (sym_map != NULL) in elf_machine_rela()
157 value = SYMBOL_ADDRESS (sym_map, sym, true) + reloc->r_addend; in elf_machine_rela()
180 *addr_field = sym_map->l_tls_modid; in elf_machine_rela()
190 CHECK_STATIC_TLS (map, sym_map); in elf_machine_rela()
191 *addr_field = TLS_TPREL_VALUE (sym_map, sym) + reloc->r_addend; in elf_machine_rela()
/glibc-2.36/sysdeps/csky/
Ddl-machine.h216 struct link_map *sym_map = RESOLVE_MAP (map, scope, &sym, version, in elf_machine_rela() local
218 ElfW(Addr) value = SYMBOL_ADDRESS (sym_map, sym, true); in elf_machine_rela()
294 if (sym_map != NULL) in elf_machine_rela()
295 *reloc_addr = sym_map->l_tls_modid; in elf_machine_rela()
304 CHECK_STATIC_TLS (map, sym_map); in elf_machine_rela()
305 *reloc_addr = (sym->st_value + sym_map->l_tls_offset in elf_machine_rela()
/glibc-2.36/sysdeps/sh/
Ddl-machine.h307 struct link_map *sym_map = RESOLVE_MAP (map, scope, &sym, version, in elf_machine_rela() local
310 value = SYMBOL_ADDRESS (sym_map, sym, true); in elf_machine_rela()
349 if (sym_map != NULL) in elf_machine_rela()
350 *reloc_addr = sym_map->l_tls_modid; in elf_machine_rela()
372 CHECK_STATIC_TLS (map, sym_map); in elf_machine_rela()
373 *reloc_addr = sym_map->l_tls_offset + sym->st_value in elf_machine_rela()
/glibc-2.36/sysdeps/s390/s390-32/
Ddl-machine.h299 struct link_map *sym_map = RESOLVE_MAP (map, scope, &sym, version, in elf_machine_rela() local
301 Elf32_Addr value = SYMBOL_ADDRESS (sym_map, sym, true); in elf_machine_rela()
333 if (sym_map != NULL) in elf_machine_rela()
334 *reloc_addr = sym_map->l_tls_modid; in elf_machine_rela()
355 CHECK_STATIC_TLS (map, sym_map); in elf_machine_rela()
357 - sym_map->l_tls_offset); in elf_machine_rela()
/glibc-2.36/sysdeps/s390/s390-64/
Ddl-machine.h276 struct link_map *sym_map = RESOLVE_MAP (map, scope, &sym, version, in elf_machine_rela() local
278 Elf64_Addr value = SYMBOL_ADDRESS (sym_map, sym, true); in elf_machine_rela()
310 if (sym_map != NULL) in elf_machine_rela()
311 *reloc_addr = sym_map->l_tls_modid; in elf_machine_rela()
332 CHECK_STATIC_TLS (map, sym_map); in elf_machine_rela()
334 - sym_map->l_tls_offset); in elf_machine_rela()

12