From owner-freebsd-arm@FreeBSD.ORG Wed Feb 28 01:34:44 2007 Return-Path: X-Original-To: freebsd-arm@freebsd.org Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 6EE4E16C20A for ; Wed, 28 Feb 2007 01:34:44 +0000 (UTC) (envelope-from caelian@gmail.com) Received: from mu-out-0910.google.com (mu-out-0910.google.com [209.85.134.187]) by mx1.freebsd.org (Postfix) with ESMTP id 00C2113C4C7 for ; Wed, 28 Feb 2007 01:34:41 +0000 (UTC) (envelope-from caelian@gmail.com) Received: by mu-out-0910.google.com with SMTP id g7so1730829muf for ; Tue, 27 Feb 2007 17:34:35 -0800 (PST) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:subject:from:to:cc:in-reply-to:references:content-type:date:message-id:mime-version:x-mailer:content-transfer-encoding; b=NoCBOVI4rRDofYK3H77EuFAa8RqABc+W6tT4p4dzYZWSxDQUJDTqdVN7RixsjuVcdnuCK+xDTOkzS83vsz/BWtL1nJYJuhPQ2ugMb8evrgjncMq9mPGg0t7p15d8OK+5zUwYig3i19dUHh+YZF0Gm8cf7YegqPdk0txPNTLKbS8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:subject:from:to:cc:in-reply-to:references:content-type:date:message-id:mime-version:x-mailer:content-transfer-encoding; b=jsJFAdoOHYZ76ZOJrX6HA0uTRe9U7wPL4z2PxJyCO+Sj3W4ALPthvrHQBsa/rAPQkJyB1m+AOhuea7NxOnJr3Q53ggTAs/OmvP6j6ZGJNz3yJEjFWD+YrEJasfnUtDFsB6+VHnV+Ts6kK62Lj+cmBo47nFE3X0GTo9POfXjk3kc= Received: by 10.82.116.15 with SMTP id o15mr2539939buc.1172626475309; Tue, 27 Feb 2007 17:34:35 -0800 (PST) Received: from ?192.168.0.21? ( [87.166.94.114]) by mx.google.com with ESMTP id y6sm8388552mug.2007.02.27.17.34.34; Tue, 27 Feb 2007 17:34:34 -0800 (PST) From: Pascal Hofstee To: Olivier Houchard In-Reply-To: <20070227115947.GA17619@ci0.org> References: <1172565447.1394.20.camel@chekov> <20070227115947.GA17619@ci0.org> Content-Type: text/plain Date: Wed, 28 Feb 2007 02:34:32 +0100 Message-Id: <1172626472.1394.29.camel@chekov> Mime-Version: 1.0 X-Mailer: Evolution 2.9.91 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit Cc: freebsd-arm@freebsd.org Subject: Re: __aeabi_read_tp missing symbol X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Feb 2007 01:34:44 -0000 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