Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 9 Nov 2023 20:24:43 GMT
From:      Kristof Provost <kp@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 6e5b1ff71e01 - main - libc: enable initial-exec (IE) as default thread-local storage model on arm
Message-ID:  <202311092024.3A9KOhvF049593@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by kp:

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

commit 6e5b1ff71e01bd48172483cb6df921f84300ea3a
Author:     R. Christian McDonald <rcm@rcm.sh>
AuthorDate: 2023-11-09 20:22:21 +0000
Commit:     Kristof Provost <kp@FreeBSD.org>
CommitDate: 2023-11-09 20:24:23 +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
    Sponsored by:   Rubicon Communications, LLC ("Netgate")
    Differential Revision:  https://reviews.freebsd.org/D42445
---
 lib/libc/Makefile | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/lib/libc/Makefile b/lib/libc/Makefile
index 7540eb8c21ad..e817104642b8 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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202311092024.3A9KOhvF049593>