Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F167889370
D21699.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D21699.diff
View Options
Index: head/share/mk/bsd.lib.mk
===================================================================
--- head/share/mk/bsd.lib.mk
+++ head/share/mk/bsd.lib.mk
@@ -92,6 +92,12 @@
CTFFLAGS+= -g
.endif
+# clang currently defaults to dynamic TLS for mips64 object files without -fPIC
+.if ${MACHINE_ARCH:Mmips64*} && ${COMPILER_TYPE} == "clang"
+STATIC_CFLAGS+= -ftls-model=initial-exec
+STATIC_CXXFLAGS+= -ftls-model=initial-exec
+.endif
+
.include <bsd.libnames.mk>
# prefer .s to a .c, add .po, remove stuff not used in the BSD libraries
Index: head/share/mk/bsd.prog.mk
===================================================================
--- head/share/mk/bsd.prog.mk
+++ head/share/mk/bsd.prog.mk
@@ -82,6 +82,11 @@
LDFLAGS+= -static
.endif
+# clang currently defaults to dynamic TLS for mips64 binaries
+.if ${MACHINE_ARCH:Mmips64*} && ${COMPILER_TYPE} == "clang"
+CFLAGS+= -ftls-model=initial-exec
+.endif
+
.if ${MK_DEBUG_FILES} != "no"
PROG_FULL=${PROG}.full
# Use ${DEBUGDIR} for base system debug files, else .debug subdirectory
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Aug 26, 6:51 AM (1 h, 47 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
37273728
Default Alt Text
D21699.diff (1 KB)
Attached To
Mode
D21699: Hack around incorrect TLS defaults for mips64
Attached
Detach File
Event Timeline
Log In to Comment