diff options
author | Florian Weimer <fweimer@redhat.com> | 2020-04-29 15:44:03 +0200 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2020-04-29 15:44:03 +0200 |
commit | 03e187a41d91069543cfcf33469a05912e555447 (patch) | |
tree | a2f3afcc3e41af612e40fc9cab1ba9b3a811ce38 /elf/dl-call-libc-early-init.c | |
parent | 2ad5d0845d80589d0adf86593bd36a7c71a521f8 (diff) | |
download | glibc-03e187a41d91069543cfcf33469a05912e555447.tar glibc-03e187a41d91069543cfcf33469a05912e555447.tar.gz glibc-03e187a41d91069543cfcf33469a05912e555447.tar.bz2 glibc-03e187a41d91069543cfcf33469a05912e555447.zip |
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>
Diffstat (limited to 'elf/dl-call-libc-early-init.c')
-rw-r--r-- | elf/dl-call-libc-early-init.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/elf/dl-call-libc-early-init.c b/elf/dl-call-libc-early-init.c index 41e9ad9aad..9a84680a1c 100644 --- a/elf/dl-call-libc-early-init.c +++ b/elf/dl-call-libc-early-init.c @@ -23,7 +23,7 @@ #include <stddef.h> void -_dl_call_libc_early_init (struct link_map *libc_map) +_dl_call_libc_early_init (struct link_map *libc_map, _Bool initial) { /* There is nothing to do if we did not actually load libc.so. */ if (libc_map == NULL) @@ -37,5 +37,5 @@ _dl_call_libc_early_init (struct link_map *libc_map) assert (sym != NULL); __typeof (__libc_early_init) *early_init = DL_SYMBOL_ADDRESS (libc_map, sym); - early_init (); + early_init (initial); } |