]> git.ipfire.org Git - thirdparty/glibc.git/commit
csu: Implement and use _dl_early_allocate during static startup
authorFlorian Weimer <fweimer@redhat.com>
Mon, 16 May 2022 16:41:43 +0000 (18:41 +0200)
committerFlorian Weimer <fweimer@redhat.com>
Tue, 17 May 2022 06:08:52 +0000 (08:08 +0200)
commit72d9dcfd16468ed143a2800288476835f7a8c2a4
treef8afb52c8fc8e1d19c2259815509ed1876e4c3b1
parentb5ddf33c6e63d89658450da4c85362349c7fe522
csu: Implement and use _dl_early_allocate during static startup

This implements mmap fallback for a brk failure during TLS
allocation.

scripts/tls-elf-edit.py is updated to support the new patching method.
The script no longer requires that in the input object is of ET_DYN
type.

Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
(cherry picked from commit f787e138aa0bf677bf74fa2a08595c446292f3d7)
csu/libc-tls.c
elf/Makefile
elf/dl-early_allocate.c [new file with mode: 0644]
elf/tst-tls-allocation-failure-static.c [new file with mode: 0644]
scripts/tst-elf-edit.py
sysdeps/generic/ldsodefs.h
sysdeps/unix/sysv/linux/dl-early_allocate.c [new file with mode: 0644]