glibc/sysdeps
Tulio Magno Quites Machado Filho 1ef9b6e0bf Do not redirect calls to __GI_* symbols, when redirecting to *ieee128
On platforms where long double has IEEE binary128 format as a third
option (initially, only powerpc64le), many exported functions are
redirected to their __*ieee128 equivalents.  This redirection is
provided by installed headers such as stdio-ldbl.h, and is supposed to
work correctly with user code.

However, during the build of glibc, similar redirections are employed,
in internal headers, such as include/stdio.h, in order to avoid extra
PLT entries.  These redirections conflict with the redirections to
__*ieee128, and must be avoided during the build.  This patch protects
the second redirections with a test for __LONG_DOUBLE_USES_FLOAT128, a
new macro that is defined to 1 when functions that deal with long double
typed values reuses the _Float128 implementation (this is currently only
true for powerpc64le).

Tested for powerpc64le, x86_64, and with build-many-glibcs.py.

Co-authored-by: Gabriel F. T. Gomes <gabrielftg@linux.ibm.com>
Reviewed-by: Florian Weimer <fweimer@redhat.com>
2019-12-27 15:02:10 -03:00
..
aarch64 aarch64: ifunc rename for kunpeng 2019-12-27 11:59:51 -03:00
alpha nptl: Add default pthread-offsets.h 2019-11-26 13:53:36 +00:00
arm elf: Do not run IFUNC resolvers for LD_DEBUG=unused [BZ #24214] 2019-12-02 14:55:22 +01:00
csky nptl: Add default pthread-offsets.h 2019-11-26 13:53:36 +00:00
generic Fix return code for __libc_signal_* functions 2019-12-27 11:18:23 -03:00
gnu Add TCP_TX_DELAY from Linux 5.3 to netinet/tcp.h. 2019-09-27 13:37:36 +00:00
hppa nptl: Add struct_rwlock.h 2019-11-26 13:53:36 +00:00
htl time: Introduce function to check correctness of nanoseconds value 2019-10-27 21:49:25 +01:00
hurd Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
i386 elf: Do not run IFUNC resolvers for LD_DEBUG=unused [BZ #24214] 2019-12-02 14:55:22 +01:00
ia64 nptl: Add default pthread-offsets.h 2019-11-26 13:53:36 +00:00
ieee754 Do not redirect calls to __GI_* symbols, when redirecting to *ieee128 2019-12-27 15:02:10 -03:00
init_array Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
m68k nptl: Add default pthread-offsets.h 2019-11-26 13:53:36 +00:00
mach Implement waitpid in terms of wait4 2019-12-19 16:11:09 -03:00
microblaze nptl: Add default pthread-offsets.h 2019-11-26 13:53:36 +00:00
mips Do not redirect calls to __GI_* symbols, when redirecting to *ieee128 2019-12-27 15:02:10 -03:00
nios2 nptl: Add default pthread-offsets.h 2019-11-26 13:53:36 +00:00
nptl nptl: Fix __PTHREAD_MUTEX_INITIALIZER for !__PTHREAD_MUTEX_HAVE_PREV 2019-11-26 17:00:19 -03:00
posix Consolidate wait3 implementations 2019-12-19 16:11:09 -03:00
powerpc powerpc: Do not run IFUNC resolvers for LD_DEBUG=unused [BZ #24214] 2019-12-19 09:49:57 -03:00
pthread Change most internal uses of __gettimeofday to __clock_gettime. 2019-10-30 17:04:10 -03:00
riscv sysdeps/riscv/start.S: rename .Lload_gp to load_gp (bug 24376) 2019-12-09 12:05:26 +01:00
s390 S390: Use sysdeps/ieee754/dbl-64/wordsize-64 on s390x. 2019-12-11 15:12:26 +01:00
sh nptl: Add default pthread-offsets.h 2019-11-26 13:53:36 +00:00
sparc Always use wordsize-64 version of s_trunc.c. 2019-12-11 15:12:14 +01:00
unix Do not redirect calls to __GI_* symbols, when redirecting to *ieee128 2019-12-27 15:02:10 -03:00
wordsize-32 Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
wordsize-64 Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
x86 nptl: Remove duplicate internal __SIZEOF_PTHREAD_MUTEX_T (BZ#25241) 2019-12-26 17:04:50 -03:00
x86_64 Always use wordsize-64 version of s_trunc.c. 2019-12-11 15:12:14 +01:00