Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 28 Feb 2007 02:34:32 +0100
From:      Pascal Hofstee <caelian@gmail.com>
To:        Olivier Houchard <mlfbsd@ci0.org>
Cc:        freebsd-arm@freebsd.org
Subject:   Re: __aeabi_read_tp missing symbol
Message-ID:  <1172626472.1394.29.camel@chekov>
In-Reply-To: <20070227115947.GA17619@ci0.org>
References:  <1172565447.1394.20.camel@chekov> <20070227115947.GA17619@ci0.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 2007-02-27 at 12:59 +0100, Olivier Houchard wrote:
> Hi Pascal,

[snip]

> Yes it is definitively a linux problem :-)
> See below.

[snip]

> Latest revisions of gcc/binutils have support for TLS. And using EABI is the
> right thing to do on linux. You're just using the wrong libc, eabi_read_tp and
> friends come from the glibc. If changing your glibc is not an option, you'll
> have to play with -mabi, and set it to something else than eabi, however if
> you need TLS I think you're doomed with this version of gcc, you'll have to
> find a matching glibc.
> 
> I could be wrong on this one, I'm not a linux/arm specialist.

I did some additional digging on my own and (since i am using a
Debian/Etch to currently do my "native compiling" on) decided to have a
closer look at the Debian support pages where i noticed that Debian
claims to fully support LE ARM .. and that there are unofficial images
for BE ARM and EABI ARM support.

That made me draw the conclusion that most likely my "armv5el" (if i
recall correctly) Debian/Etch simply doesn't support the EABI interface.

I however spent most of today to successfully rewrite the parts of my
code that used TLS to now use a mechanism involving
pthread_(set|get)specific instead. So the thing is a moot point for me
now anyway.

Thanks for the feedback though ... and i'll be seeing wether or not i
can put some time into trying out a FreeBSD/arm cross-compile build to
see if i can get that build to boot on one of our NSLU2s sometime during
the next couple of weeks ... If you could put up an updated set of
instructions somewhere on how to go about this (you gave some pointers
during an IRC chat a while ago) that would be awesome ... I'll gladly
provide feedback :)

-- 
  Pascal Hofstee




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