]> git.ipfire.org Git - thirdparty/glibc.git/commit
elf: Add initial flag argument to __libc_early_init
authorFlorian Weimer <fweimer@redhat.com>
Wed, 29 Apr 2020 13:44:03 +0000 (15:44 +0200)
committerFlorian Weimer <fweimer@redhat.com>
Wed, 29 Apr 2020 13:44:03 +0000 (15:44 +0200)
commit03e187a41d91069543cfcf33469a05912e555447
treea2f3afcc3e41af612e40fc9cab1ba9b3a811ce38
parent2ad5d0845d80589d0adf86593bd36a7c71a521f8
elf: Add initial flag argument to __libc_early_init

The rseq initialization should happen only for the libc in the base
namespace (in the dynamic case) or the statically linked libc.  The
__libc_multiple_libcs flag does not quite cover this case at present,
so this commit introduces a flag argument to __libc_early_init,
indicating whether the libc being libc is the primary one (of the main
program).

Reviewed-by: Carlos O'Donell <carlos@redhat.com>
csu/libc-start.c
elf/dl-call-libc-early-init.c
elf/dl-open.c
elf/libc-early-init.h
elf/libc_early_init.c
elf/rtld.c