Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F144552224
D31070.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
492 B
Referenced Files
None
Subscribers
None
D31070.diff
View Options
diff --git a/lib/libc/Makefile b/lib/libc/Makefile
--- a/lib/libc/Makefile
+++ b/lib/libc/Makefile
@@ -54,6 +54,13 @@
CFLAGS+=${CANCELPOINTS_CFLAGS}
.endif
+# Use a more efficient TLS model for libc since we can reasonably assume that
+# it will be loaded during program startup.
+.if ${LIBC_ARCH} == "aarch64" || ${LIBC_ARCH} == "amd64" || \
+ ${LIBC_ARCH} == "i386" || ${LIBC_ARCH} == "riscv"
+CFLAGS+= -ftls-model=initial-exec
+.endif
+
#
# Link with static libcompiler_rt.a.
#
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Feb 10, 12:10 PM (13 h, 38 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28623056
Default Alt Text
D31070.diff (492 B)
Attached To
Mode
D31070: libc: Use the initial-exec TLS model for libc on amd64 and arm64
Attached
Detach File
Event Timeline
Log In to Comment