Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 18 Feb 2021 17:57:00 -0600
From:      "Brandon Bergren" <bdragon@FreeBSD.org>
To:        "Jessica Clarke" <jrtc27@freebsd.org>, "Konstantin Belousov" <kostikbel@gmail.com>
Cc:        "John Baldwin" <jhb@freebsd.org>, src-committers@freebsd.org, dev-commits-src-all@freebsd.org, dev-commits-src-main@freebsd.org
Subject:   =?UTF-8?Q?Re:_git:_24fd63e0970f_-_main_-_mips:_Don't_set_=5F=5FNO=5FTLS_?= =?UTF-8?Q?to_disable_some_uses_of_TLS.?=
Message-ID:  <ce964b75-4a11-4b5e-b47e-43a384da047f@www.fastmail.com>
In-Reply-To: <DBFAB331-737A-44E0-BBAA-65AF2C870AA9@freebsd.org>
References:  <202102180035.11I0ZnL3070354@gitrepo.freebsd.org> <9687575c-dd7c-1496-850b-2018f4bca3da@FreeBSD.org> <YC7TcMtrg8r7eAuL@kib.kiev.ua> <DBFAB331-737A-44E0-BBAA-65AF2C870AA9@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help


On Thu, Feb 18, 2021, at 3:07 PM, Jessica Clarke wrote:
> > But, I wonder, what does CALL_ELF mean?  Is it for old 64bit PowerPC ABI,
> > that was abandoned with the switch to ELFv2?
> 
> Yes, _CALL_ELF == 2 for ELFv2. I highly doubt the defines were needed
> for the ELFv1 ABI, but they're especially redundant now. Presumably
> David's original fixed commit[1] added powerpc64 to that list because
> TLS wasn't yet supported in LLVM; that happened later in 2012 and our
> wiki changed it to being implemented in December 2012[2]. So I suspect
> it should have been deleted 8 years ago.

FreeBSD 13 will be the first ELFv2 release. FreeBSD 12 and below are ELFv1.

The reason for the line was to avoid breaking things during the development period for ELFv2. Switching TLS on was one of the things I did at the same time as the official ELFv2 transition. See 2db975b0eb0f3378a39d63eeabe4e3617f4557f0.

This is NOT an 8 year old change, but I believe it can go away in HEAD as long as the change isn't MFC'd to 12 or earlier.

-- 
  Brandon Bergren
  bdragon@FreeBSD.org



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?ce964b75-4a11-4b5e-b47e-43a384da047f>