Date: Fri, 13 Dec 2019 18:18:14 +0000 (UTC) From: Brandon Bergren <bdragon@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r355719 - head/sys/sys Message-ID: <201912131818.xBDIIEcV023615@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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@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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201912131818.xBDIIEcV023615>