svn commit: r355719 - head/sys/sys
Brandon Bergren
bdragon at FreeBSD.org
Fri Dec 13 18:18:15 UTC 2019
Author: bdragon
Date: Fri Dec 13 18:18:14 2019
New Revision: 355719
URL: https://svnweb.freebsd.org/changeset/base/355719
Log:
[PowerPC] Enable TLS usage in system libraries on ELFv2.
Currently, __NO_TLS is defined to 1 on powerpc64. TLS usage works much
better on ELFv2 due to the modern tooling, so take the opportunity to
reenable TLS on ELFv2.
If you are using a self-built ELFv2 environment on powerpc64, you will
have to run installworld twice due to RuneLocale changes. This is the only
known regression, and if you are using the ELFv2 isos, you likely already
have the updated libraries installed, as this change is part of the
patchset that the isos integrate.
(No UPDATING note about this because ELFv2 is still an unofficial build.)
Reviewed by: luporl, Alfredo Dal'Ava Junior <alfredo.junior at eldorado.org.br>
Differential Revision: https://reviews.freebsd.org/D22524
Modified:
head/sys/sys/cdefs.h
Modified: head/sys/sys/cdefs.h
==============================================================================
--- head/sys/sys/cdefs.h Fri Dec 13 17:52:09 2019 (r355718)
+++ head/sys/sys/cdefs.h Fri Dec 13 18:18:14 2019 (r355719)
@@ -774,7 +774,8 @@
#endif
#endif /* __STDC_WANT_LIB_EXT1__ */
-#if defined(__mips) || defined(__powerpc64__) || defined(__riscv)
+#if defined(__mips) || defined(__riscv) || \
+ (defined(__powerpc64__) && (!defined(_CALL_ELF) || _CALL_ELF == 1))
#define __NO_TLS 1
#endif
More information about the svn-src-all
mailing list