diff options
author | Florian Weimer <fweimer@redhat.com> | 2020-12-16 15:09:52 +0100 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2020-12-16 15:13:40 +0100 |
commit | 29a4db291b1282f4088e549391d86b6b470f22be (patch) | |
tree | 7aeec66b84cf95b0402816617a8f9b9c0418d2d3 /manual | |
parent | e7570f4131a6af9405af7b4fd1c31de807e7cf68 (diff) | |
download | glibc-29a4db291b1282f4088e549391d86b6b470f22be.zip glibc-29a4db291b1282f4088e549391d86b6b470f22be.tar.gz glibc-29a4db291b1282f4088e549391d86b6b470f22be.tar.bz2 |
malloc: Use __libc_initial to detect an inner libc
The secondary/non-primary/inner libc (loaded via dlmopen, LD_AUDIT,
static dlopen) must not use sbrk to allocate member because that would
interfere with allocations in the outer libc. On Linux, this does not
matter because sbrk itself was changed to fail in secondary libcs.
_dl_addr occasionally shows up in profiles, but had to be used before
because __libc_multiple_libs was unreliable. So this change achieves
a slight reduction in startup time.
Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Diffstat (limited to 'manual')
0 files changed, 0 insertions, 0 deletions