Go to file
Florian Weimer 9ffa50b26b elf: Include libc.so.6 as main program in dependency sort (bug 20972)
_dl_map_object_deps always sorts the initially loaded object first
during dependency sorting.  This means it is relocated last in
dl_open_worker.  This results in crashes in IFUNC resolvers without
lazy bindings if libraries are preloaded that refer to IFUNCs in
libc.so.6: the resolvers are called when libc.so.6 has not been
relocated yet, so references to _rtld_global_ro etc. crash.

The fix is to check against the libc.so.6 link map recorded by the
__libc_early_init framework, and let it participate in the dependency
sort.

This fixes bug 20972.

Reviewed-by: Carlos O'Donell <carlos@redhat.com>
2020-12-11 18:31:04 +01:00
argp
assert
benchtests
bits
catgets
ChangeLog.old
conform hurd: Remove some remnants of cthreads 2020-11-15 13:16:03 +01:00
crypt
csu nptl: Move stack list variables into _rtld_global 2020-11-16 19:33:30 +01:00
ctype
debug
dirent
dlfcn treewide: fix incorrect spelling of indices in comments 2020-12-11 02:00:00 +00:00
elf elf: Include libc.so.6 as main program in dependency sort (bug 20972) 2020-12-11 18:31:04 +01:00
gmon
gnulib
grp nsswitch: use new internal API (callers) 2020-12-04 17:16:32 -05:00
gshadow
hesiod
htl htl: Add hidden def for __pthread_create/detach 2020-12-03 12:21:47 +01:00
hurd htl: Add missing symbols 2020-12-03 10:48:27 +01:00
iconv treewide: fix incorrect spelling of indices in comments 2020-12-11 02:00:00 +00:00
iconvdata treewide: fix incorrect spelling of indices in comments 2020-12-11 02:00:00 +00:00
include Handle out-of-memory case in svc_tcp.c/svc_unix.c:rendezvous_request. 2020-12-10 11:11:20 +01:00
inet nsswitch: use new internal API (callers) 2020-12-04 17:16:32 -05:00
intl
io io: nftw/ftw: Fix stack overflow with large nopenfd [BZ #26353] 2020-11-26 17:35:58 -03:00
libio
locale treewide: fix incorrect spelling of indices in comments 2020-12-11 02:00:00 +00:00
localedata
login
mach hurd: Remove some remnants of cthreads 2020-11-15 13:16:03 +01:00
malloc nsswitch: use new internal API (core) 2020-12-04 17:15:53 -05:00
manual manual: Clarify File Access Modes section and add O_PATH 2020-12-03 10:59:50 +01:00
math
mathvec
misc treewide: fix incorrect spelling of indices in comments 2020-12-11 02:00:00 +00:00
nis
nptl nptl: Fix __futex_clocklock64 return error check [BZ #26964] 2020-12-01 18:26:26 -03:00
nptl_db treewide: fix incorrect spelling of indices in comments 2020-12-11 02:00:00 +00:00
nscd nsswitch: use new internal API (callers) 2020-12-04 17:16:32 -05:00
nss Fix linknamespace errors in nss_database.c if build with -Os. 2020-12-11 09:43:18 +01:00
po
posix nsswitch: use new internal API (callers) 2020-12-04 17:16:32 -05:00
pwd Remove tls.h inclusion from internal errno.h 2020-11-13 12:59:19 -03:00
resolv y2038: Convert gai_suspend to support 64 bit time 2020-12-04 10:04:38 +01:00
resource
rt
scripts Add scripts/move-symbol-to-libc.py 2020-12-04 19:33:36 +01:00
setjmp
shadow
signal Remove tls.h inclusion from internal errno.h 2020-11-13 12:59:19 -03:00
socket
soft-fp
stdio-common tests: Remove NULL check for an array 2020-11-12 13:29:59 +05:30
stdlib Make strtoimax, strtoumax, wcstoimax, wcstoumax into aliases 2020-12-08 18:15:27 +00:00
string treewide: fix incorrect spelling of indices in comments 2020-12-11 02:00:00 +00:00
sunrpc Handle out-of-memory case in svc_tcp.c/svc_unix.c:rendezvous_request. 2020-12-10 11:11:20 +01:00
support support: Add support_slibdir_prefix variable 2020-12-11 18:30:57 +01:00
sysdeps aarch64: Use mmap to add PROT_BTI instead of mprotect [BZ #26831] 2020-12-11 15:46:02 +00:00
sysvipc
termios
time
timezone timezone: Change zdump installation to bin directory 2020-11-25 15:52:50 +01:00
wcsmbs Make strtoimax, strtoumax, wcstoimax, wcstoumax into aliases 2020-12-08 18:15:27 +00:00
wctype
.gitattributes
.gitignore
abi-tags
aclocal.m4
config.h.in
config.make.in
configure
configure.ac
COPYING
COPYING.LIB
extra-lib.mk
gen-locales.mk
INSTALL
libc-abis
libof-iterator.mk
LICENSES
MAINTAINERS
Makeconfig Add {,sysdep-}ld-library-path make variable 2020-11-16 21:15:20 +00:00
Makefile
Makefile.help
Makefile.in
Makerules
NEWS S390: Derive float_t from FLT_EVAL_METHOD 2020-12-09 16:26:46 +01:00
o-iterator.mk
README
Rules
shlib-versions
test-skeleton.c
version.h

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.

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
	m68k-*-linux-gnu
	microblaze*-*-linux-gnu
	mips-*-linux-gnu
	mips64-*-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.