Go to file
Florian Weimer 340097d0b5 elf: Extract glibcelf constants from <elf.h>
The need to maintain elf/elf.h and scripts/glibcelf.py in parallel
results in a backporting hazard: they need to be kept in sync to
avoid elf/tst-glibcelf consistency check failures.  glibcelf (unlike
tst-glibcelf) does not use the C implementation to extract constants.
This applies the additional glibcpp syntax checks to <elf.h>.

This  changereplaces the types derived from Python enum types with
custom types _TypedConstant, _IntConstant, and _FlagConstant.  These
types have fewer safeguards, but this also allows incremental
construction and greater flexibility for grouping constants among
the types.  Architectures-specific named constants are now added
as members into their superclasses (but value-based lookup is
still restricted to generic constants only).

Consequently, check_duplicates in elf/tst-glibcelf has been adjusted
to accept differently-named constants of the same value if their
subtypes are distinct.  The ordering check for named constants
has been dropped because they are no longer strictly ordered.

Further test adjustments: Some of the type names are different.
The new types do not support iteration (because it is unclear
whether iteration should cover the all named values (including
architecture-specific constants), or only the generic named values),
so elf/tst-glibcelf now uses by_name explicit (to get all constants).
PF_HP_SBP and PF_PARISC_SBP are now of distinct types (PfHP and
PfPARISC), so they are how both present on the Python side.  EM_NUM
and PT_NUM are filtered (which was an oversight in the old
conversion).

The new version of glibcelf should also be compatible with earlier
Python versions because it no longer depends on the enum module and its
advanced features.

Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
2022-09-22 12:10:41 +02:00
argp
assert Do not define static_assert or thread_local in headers for C2x 2022-09-07 18:39:28 +00:00
benchtests
bits non-linux: bits/in.h: Add more RFC options 2022-08-15 11:27:04 +02:00
catgets
ChangeLog.old
conform
crypt
csu
ctype
debug debug: test for more required cacellation points (BZ# 29274) 2022-09-05 10:47:34 -03:00
dirent
dlfcn dlfcn: Pass caller pointer to static dlopen implementation (bug 29446) 2022-08-04 17:54:48 +02:00
elf elf: Extract glibcelf constants from <elf.h> 2022-09-22 12:10:41 +02:00
gmon
gnulib
grp
gshadow
hesiod
htl Use C11 atomics instead of atomic_decrement(_val) 2022-09-09 14:22:26 +01:00
hurd hurd: Fix vm_size_t incoherencies 2022-08-29 01:42:47 +02:00
iconv gconv: Use 64-bit interfaces in gconv_parseconfdir (bug 29583) 2022-09-20 12:12:43 +02:00
iconvdata
include hurd: Factorize at/non-at functions 2022-09-17 19:58:30 +00:00
inet Move ip_mreqn structure from Linux to generic 2022-08-15 22:43:15 +02:00
intl
io
libio
locale
localedata localedata: Convert French language locales (fr_*) to UTF-8 2022-08-17 11:07:00 +02:00
login
mach
malloc Use C11 atomics instead of atomic_decrement(_val) 2022-09-09 14:22:26 +01:00
manual Fix BRE typos in check-safety.sh 2022-09-14 00:12:20 -05:00
math
mathvec
misc syslog: Remove extra whitespace between timestamp and message (BZ#29544) 2022-09-05 09:34:39 -03:00
nis
nptl Use relaxed atomics since there is no MO dependence 2022-09-13 11:58:07 +01:00
nptl_db
nscd Use C11 atomics instead of atomic_decrement(_val) 2022-09-09 14:22:26 +01:00
nss nss: Fix tst-nss-files-hosts-long on single-stack hosts (bug 24816) 2022-09-20 13:09:55 +02:00
po
posix Merge getopt patch from Gnulib 2022-08-23 21:58:39 -07:00
pwd
resolv resolv: Fix building tst-resolv-invalid-cname for earlier C standards 2022-08-30 14:04:12 +02:00
resource
rt
scripts elf: Extract glibcelf constants from <elf.h> 2022-09-22 12:10:41 +02:00
setjmp
shadow
signal
socket
soft-fp soft-fp: Add fixhf[uns][di|si] and float[uns][di|si]hf 2022-08-08 11:28:40 -03:00
stdio-common tst-sprintf-errno: Update Hurd message length 2022-09-17 17:42:42 +02:00
stdlib stdlib: Fix macro expansion producing 'defined' has undefined behavior 2022-08-30 08:40:47 -03:00
string
sunrpc
support scripts: Enhance glibcpp to do basic macro processing 2022-09-22 12:10:41 +02:00
sysdeps riscv: Remove RV32 floating point functions 2022-09-21 14:37:43 -04:00
sysvipc
termios
time mktime: improve heuristic for ca-1986 Indiana DST 2022-09-08 22:55:54 -05:00
timezone
wcsmbs Apply asm redirections in wchar.h before first use 2022-08-30 12:50:16 -03:00
wctype
.clang-format
.gitattributes
.gitignore
abi-tags
aclocal.m4
config.h.in
config.make.in Revert "Detect ld.so and libc.so version inconsistency during startup" 2022-08-25 18:46:43 +02:00
configure Revert "Detect ld.so and libc.so version inconsistency during startup" 2022-08-25 18:46:43 +02:00
configure.ac Revert "Detect ld.so and libc.so version inconsistency during startup" 2022-08-25 18:46:43 +02:00
CONTRIBUTED-BY
COPYING
COPYING.LIB
extra-lib.mk
gen-locales.mk
INSTALL Revert "Detect ld.so and libc.so version inconsistency during startup" 2022-08-25 18:46:43 +02:00
libc-abis
libof-iterator.mk
LICENSES
MAINTAINERS
Makeconfig Makerules: fix MAKEFLAGS assignment for upcoming make-4.4 [BZ# 29564] 2022-09-13 13:45:32 -04:00
Makefile
Makefile.help
Makefile.in
Makerules Makerules: fix MAKEFLAGS assignment for upcoming make-4.4 [BZ# 29564] 2022-09-13 13:45:32 -04:00
NEWS nss: Implement --no-addrconfig option for getent 2022-09-20 13:09:25 +02:00
o-iterator.mk
README
Rules
SHARED-FILES
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
	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.