Go to file
H.J. Lu 6259ab3941 ld.so: Always use MAP_COPY to map the first segment [BZ #30452]
The first segment in a shared library may be read-only, not executable.
To support LD_PREFER_MAP_32BIT_EXEC on such shared libraries, we also
check MAP_DENYWRITE to decide if MAP_32BIT should be passed to mmap.
Normally the first segment is mapped with MAP_COPY, which is defined
as (MAP_PRIVATE | MAP_DENYWRITE).  But if the segment alignment is
greater than the page size, MAP_COPY isn't used to allocate enough
space to ensure that the segment can be properly aligned.  Map the
first segment with MAP_COPY in this case to fix BZ #30452.
2023-06-30 10:42:42 -07:00
ChangeLog.old
argp tests: fix warn unused result on asprintf calls 2023-06-06 08:23:53 -04:00
assert tests: replace fgets by xfgets 2023-06-13 19:59:08 -04:00
benchtests benchtests: fix warn unused result 2023-06-22 00:21:19 -04:00
bits
catgets Move {read,write}_all functions to a dedicated header 2023-06-06 08:23:53 -04:00
conform
crypt
csu
ctype
debug debug/readlink{, at}_chk.c: Harmonize declaration and definition 2023-06-22 00:21:06 -04:00
dirent tests: replace read by xread 2023-06-19 09:14:56 -04:00
dlfcn
elf ld.so: Always use MAP_COPY to map the first segment [BZ #30452] 2023-06-30 10:42:42 -07:00
gmon
gnulib
grp
gshadow
hesiod
htl
hurd
iconv
iconvdata
include wcsmbs/bits/wchar2{, -decl}.h: Clearly separate declaration from definitions 2023-06-22 00:21:01 -04:00
inet
intl
io
libio tests: replace system by xsystem 2023-06-19 09:15:05 -04:00
locale
localedata
login
mach
malloc malloc: Decrease resource usage for malloc tests 2023-06-12 14:45:24 -03:00
manual Call "CST" a time zone abbreviation, not a name 2023-06-22 13:49:09 -07:00
math
mathvec
misc tests: Replace various function calls with their x variant 2023-06-06 08:23:53 -04:00
nis
nptl tests: replace system by xsystem 2023-06-19 09:15:05 -04:00
nptl_db
nscd
nss tests: replace system by xsystem 2023-06-19 09:15:05 -04:00
po
posix Call "CST" a time zone abbreviation, not a name 2023-06-22 13:49:09 -07:00
pwd
resolv resolv_conf: release lock on allocation failure (bug 30527) 2023-06-07 12:44:25 +02:00
resource
rt rt/tst-mqueue4.c: Fix wrong number of argument for mq_open 2023-06-22 00:21:13 -04:00
scripts Use Linux 6.4 in build-many-glibcs.py 2023-06-27 13:49:38 +00:00
setjmp
shadow
signal
socket
soft-fp
stdio-common stdio-common: tests: Incorrect maxlen parameter for swprintf 2023-06-22 00:20:55 -04:00
stdlib setenv.c: Get rid of alloca. 2023-06-30 14:31:45 +00:00
string string: strerror must not return NULL (bug 30555) 2023-06-15 19:54:09 +02:00
sunrpc
support tests: replace system by xsystem 2023-06-19 09:15:05 -04:00
sysdeps ld.so: Always use MAP_COPY to map the first segment [BZ #30452] 2023-06-30 10:42:42 -07:00
sysvipc
termios
time Add checks for wday, yday and new date formats 2023-06-30 11:25:39 +02:00
timezone Call "CST" a time zone abbreviation, not a name 2023-06-22 13:49:09 -07:00
wcsmbs wcsmbs/bits/wchar2{, -decl}.h: Clearly separate declaration from definitions 2023-06-22 00:21:01 -04:00
wctype
.clang-format
.gitattributes
.gitignore
CONTRIBUTED-BY
COPYING
COPYING.LIB
INSTALL Switch to UTF-8 for INSTALL 2023-06-29 14:08:39 -04:00
LICENSES
MAINTAINERS
Makeconfig
Makefile Switch to UTF-8 for INSTALL 2023-06-29 14:08:39 -04:00
Makefile.help
Makefile.in
Makerules Fix tests-clean Makefile target (bug 30545) 2023-06-26 10:37:25 -03:00
NEWS C2x scanf %b support 2023-06-19 19:40:34 +00:00
README
Rules
SECURITY.md
SHARED-FILES
abi-tags
aclocal.m4
config.h.in
config.make.in
configure
configure.ac
extra-lib.mk
gen-locales.mk
libc-abis
libof-iterator.mk
o-iterator.mk
shlib-versions
test-skeleton.c
version.h

README

This directory contains the sources of the GNU C Library.
See the file "version.h" for what release version you have.

The GNU C Library is the standard system C library for all GNU systems,
and is an important part of what makes up a GNU system.  It provides the
system API for all programs written in C and C-compatible languages such
as C++ and Objective C; the runtime facilities of other programming
languages use the C library to access the underlying operating system.

In GNU/Linux systems, the C library works with the Linux kernel to
implement the operating system behavior seen by user applications.
In GNU/Hurd systems, it works with a microkernel and Hurd servers.

The GNU C Library implements much of the POSIX.1 functionality in the
GNU/Hurd system, using configurations i[4567]86-*-gnu and x86_64-gnu.

When working with Linux kernels, this version of the GNU C Library
requires Linux kernel version 3.2 or later.

Also note that the shared version of the libgcc_s library must be
installed for the pthread library to work correctly.

The GNU C Library supports these configurations for using Linux kernels:

	aarch64*-*-linux-gnu
	alpha*-*-linux-gnu
	arc*-*-linux-gnu
	arm-*-linux-gnueabi
	csky-*-linux-gnuabiv2
	hppa-*-linux-gnu
	i[4567]86-*-linux-gnu
	x86_64-*-linux-gnu	Can build either x86_64 or x32
	ia64-*-linux-gnu
	loongarch64-*-linux-gnu Hardware floating point, LE only.
	m68k-*-linux-gnu
	microblaze*-*-linux-gnu
	mips-*-linux-gnu
	mips64-*-linux-gnu
	or1k-*-linux-gnu
	powerpc-*-linux-gnu	Hardware or software floating point, BE only.
	powerpc64*-*-linux-gnu	Big-endian and little-endian.
	s390-*-linux-gnu
	s390x-*-linux-gnu
	riscv32-*-linux-gnu
	riscv64-*-linux-gnu
	sh[34]-*-linux-gnu
	sparc*-*-linux-gnu
	sparc64*-*-linux-gnu

If you are interested in doing a port, please contact the glibc
maintainers; see https://www.gnu.org/software/libc/ for more
information.

See the file INSTALL to find out how to configure, build, and install
the GNU C Library.  You might also consider reading the WWW pages for
the C library at https://www.gnu.org/software/libc/.

The GNU C Library is (almost) completely documented by the Texinfo manual
found in the `manual/' subdirectory.  The manual is still being updated
and contains some known errors and omissions; we regret that we do not
have the resources to work on the manual as much as we would like.  For
corrections to the manual, please file a bug in the `manual' component,
following the bug-reporting instructions below.  Please be sure to check
the manual in the current development sources to see if your problem has
already been corrected.

Please see https://www.gnu.org/software/libc/bugs.html for bug reporting
information.  We are now using the Bugzilla system to track all bug reports.
This web page gives detailed information on how to report bugs properly.

The GNU C Library is free software.  See the file COPYING.LIB for copying
conditions, and LICENSES for notices about a few contributions that require
these additional notices to be distributed.  License copyright years may be
listed using range notation, e.g., 1996-2015, indicating that every year in
the range, inclusive, is a copyrightable year that would otherwise be listed
individually.