mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-29 11:41:21 +03:00
ld.so: Remove __libc_memalign
It is no longer needed since commit 6c444ad6e9
(elf: Do not use memalign for TCB/TLS blocks allocation [BZ #17730]).
Applications do not link against ld.so and will use the definition in
libc.so, so there is no ABI impact.
This commit is contained in:
@ -5,17 +5,8 @@ libc.so: malloc
|
||||
libc.so: memalign
|
||||
libc.so: realloc
|
||||
libm.so: matherr
|
||||
# The dynamic loader uses __libc_memalign internally to allocate aligned
|
||||
# TLS storage. The other malloc family of functions are expected to allow
|
||||
# user symbol interposition.
|
||||
# It is also allowed to call __libc_memalign via function-pointer loaded from
|
||||
# GOT instead of calling via a plt-stub. In this case there is a R_390_GLOB_DAT
|
||||
# relocation in section .rela.dyn instead of R_390_JMP_SLOT in .rela.plt.
|
||||
# After commit "elf: Do not use memalign for TCB/TLS blocks allocation
|
||||
# [BZ #17730]" __libc_memalign is only called in elf/dl-minimal.c: malloc() in
|
||||
# ld.so and gcc -O2/-O3 leads to R_390_GLOB_DAT. If build with
|
||||
# -fno-optimize-sibling-calls an R_390_JMP_SLOT is generated.
|
||||
ld.so: __libc_memalign + RELA R_390_GLOB_DAT
|
||||
# The main malloc is interposed into the dynamic linker, for
|
||||
# allocations after the initial link (when dlopen is used).
|
||||
ld.so: malloc
|
||||
ld.so: calloc
|
||||
ld.so: realloc
|
||||
|
Reference in New Issue
Block a user