Re: Work on adding TLS support to LLVM on m68k

Karoly Balogh <[email protected]>
Newsgroups gmane.linux.ports.m68k,gmane.linux.debian.ports.68k,gmane.os.netbsd.ports.m68k
Message-ID <[email protected]>
Hi,

On Sat, 28 Jan 2023, Chris Hanson wrote:

> That said, any compiler or linker for 68K needs to support multiple ABI
> standards since Mac OS, Atari, Amiga, and all the different UNIX and
> UNIX-like operating systems had their own ABI. Fortunately LLVM itself
> supports the concept of multiple ABIs…

Indeed, but the systems you mention A., use a mixure of ABIs, I mean one
system with many ABIs, even if there are some "basic assumptions" about
volatile/nonvolatile registers and so on, but otherwise "you're on your
own", and B., neither of these have "threads" as such, let alone anything
that resembles the concept of a Thread Local Storage in the modern sense.

Point is: it's safe to start on Linux/NetBSD, because there the OS at
least knows about these as a concept, so there's some framework for it to
follow as guard rails. Elsewhere - prepare for a lot of faking, and
hacking, and cheating. :)

(Ask me where I know... ;) )

Charlie
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.