git: f424c4a907e1 - stable/14 - libc: enable initial-exec (IE) as default thread-local storage model on arm

From: R. Christian McDonald <rcm_at_FreeBSD.org>
Date: Fri, 22 Nov 2024 15:38:07 UTC
The branch stable/14 has been updated by rcm:

URL: https://cgit.FreeBSD.org/src/commit/?id=f424c4a907e12259fbc148d1dd0be13cf4025916

commit f424c4a907e12259fbc148d1dd0be13cf4025916
Author:     R. Christian McDonald <rcm@rcm.sh>
AuthorDate: 2023-11-09 20:22:21 +0000
Commit:     R. Christian McDonald <rcm@FreeBSD.org>
CommitDate: 2024-11-22 15:36:32 +0000

    libc: enable initial-exec (IE) as default thread-local storage model on arm
    
    As suggested by jrtc27@ in https://reviews.freebsd.org/D42415, this
    patch enables IE as default thread-local storage model in libc on arm.
    
    Reviewed by:    kib
    Approved by:    kp (mentor)
    Sponsored by:   Rubicon Communications, LLC ("Netgate")
    Differential Revision:  https://reviews.freebsd.org/D42445
    
    (cherry picked from commit 6e5b1ff71e01bd48172483cb6df921f84300ea3a)
---
 lib/libc/Makefile | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/lib/libc/Makefile b/lib/libc/Makefile
index fbfd6619784d..d887e0808ceb 100644
--- a/lib/libc/Makefile
+++ b/lib/libc/Makefile
@@ -54,11 +54,7 @@ CFLAGS+=${CANCELPOINTS_CFLAGS}
 
 # 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" || \
-    ${LIBC_ARCH:Mpowerpc*} != ""
 CFLAGS+= -ftls-model=initial-exec
-.endif
 
 #
 # Link with static libcompiler_rt.a.