Searched hist:"982 f1fc2d8ae42cec10044918d1ddf04271f8950" (Results 1 – 2 of 2) sorted by relevance
/freebsd/share/mk/ |
H A D | bsd.prog.mk | diff 982f1fc2d8ae42cec10044918d1ddf04271f8950 Wed Oct 02 19:18:18 CEST 2019 Kyle Evans <kevans@FreeBSD.org> Override the TLS model when building mips64 binaries and static libraries
GCC uses "dynamic" TLS models when -fpic or -fPIC is explicitly specified on the command line (which is only true for shared libraries). It uses "static" (or "exec") TLS models otherwise. In particular, GCC does _not_ use dynamic TLS models when PIC is implicitly enabled (which it is on MIPS), only if a PIC flag is explicitly provided.
llvm uses "dynamic" TLS models if PIC is enabled either via a PIC flag or if it is implicily enabled (as on MIPS64). This means that llvm on MIPS64 always uses "dynamic" TLS models. However, dynamic TLS models do not work for static binaries and libraries as the __tls_get_addr function they invoke is only defined in rtld.
Written by: jhb Reviewed by: arichardson Differential Revision: https://reviews.freebsd.org/D21699
|
H A D | bsd.lib.mk | diff 982f1fc2d8ae42cec10044918d1ddf04271f8950 Wed Oct 02 19:18:18 CEST 2019 Kyle Evans <kevans@FreeBSD.org> Override the TLS model when building mips64 binaries and static libraries
GCC uses "dynamic" TLS models when -fpic or -fPIC is explicitly specified on the command line (which is only true for shared libraries). It uses "static" (or "exec") TLS models otherwise. In particular, GCC does _not_ use dynamic TLS models when PIC is implicitly enabled (which it is on MIPS), only if a PIC flag is explicitly provided.
llvm uses "dynamic" TLS models if PIC is enabled either via a PIC flag or if it is implicily enabled (as on MIPS64). This means that llvm on MIPS64 always uses "dynamic" TLS models. However, dynamic TLS models do not work for static binaries and libraries as the __tls_get_addr function they invoke is only defined in rtld.
Written by: jhb Reviewed by: arichardson Differential Revision: https://reviews.freebsd.org/D21699
|