Skip to content

Commit

Permalink
libc: enable initial-exec (IE) as default thread-local storage model …
Browse files Browse the repository at this point in the history
…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
  • Loading branch information
rcmcdonald91 authored and kprovost committed Nov 9, 2023
1 parent ede4c41 commit 6e5b1ff
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions lib/libc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 6e5b1ff

Please sign in to comment.