mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-24 02:03:35 +08:00
efedd1ed3d
The kernel ABI is not finalized, and there are now various proposals to change the size of struct rseq, which would make the glibc ABI dependent on the version of the kernels used for building glibc. This is of course not acceptable. This reverts commit48699da1c4
("elf: Support at least 32-byte alignment in static dlopen"), commit8f4632deb3
("Linux: rseq registration tests"), commit6e29cb3f61
("Linux: Use rseq in sched_getcpu if available"), and commit0c76fc3c2b
("Linux: Perform rseq registration at C startup and thread creation"), resolving the conflicts introduced by the ARC port and the TLS static surplus changes. Reviewed-by: Carlos O'Donell <carlos@redhat.com>
32 lines
1.1 KiB
C
32 lines
1.1 KiB
C
/* Early initialization of libc.so, libc.so side.
|
|
Copyright (C) 2020 Free Software Foundation, Inc.
|
|
This file is part of the GNU C Library.
|
|
|
|
The GNU C Library is free software; you can redistribute it and/or
|
|
modify it under the terms of the GNU Lesser General Public
|
|
License as published by the Free Software Foundation; either
|
|
version 2.1 of the License, or (at your option) any later version.
|
|
|
|
The GNU C Library is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Lesser General Public License for more details.
|
|
|
|
You should have received a copy of the GNU Lesser General Public
|
|
License along with the GNU C Library; if not, see
|
|
<https://www.gnu.org/licenses/>. */
|
|
|
|
#include <ctype.h>
|
|
#include <libc-early-init.h>
|
|
#include <sys/single_threaded.h>
|
|
|
|
void
|
|
__libc_early_init (_Bool initial)
|
|
{
|
|
/* Initialize ctype data. */
|
|
__ctype_init ();
|
|
|
|
/* Only the outer namespace is marked as single-threaded. */
|
|
__libc_single_threaded = initial;
|
|
}
|