From owner-freebsd-arm@FreeBSD.ORG Tue Feb 27 09:04:31 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 A96B316A403 for ; Tue, 27 Feb 2007 09:04:31 +0000 (UTC) (envelope-from caelian@gmail.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.190]) by mx1.freebsd.org (Postfix) with ESMTP id 1D4AB13C48D for ; Tue, 27 Feb 2007 09:04:30 +0000 (UTC) (envelope-from caelian@gmail.com) Received: by nf-out-0910.google.com with SMTP id k27so101863nfc for ; Tue, 27 Feb 2007 01:04:29 -0800 (PST) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:subject:from:to:content-type:date:message-id:mime-version:x-mailer:content-transfer-encoding; b=RmAcJZDRKikNFSOCAqxJqJ7inI0liyidcD4d6wBRHVZ6fyxYB2/MYBiYRQmMActur1NLpoQoz8O5bwjclreNsnbNco33x8NdZYAeoIy2bWQiF5cGlUhnIa3b0tyMQVPxR4U77cKh4kn5fYWGVrlv4e/xpvnibr4iM3IO39O+oSk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:subject:from:to:content-type:date:message-id:mime-version:x-mailer:content-transfer-encoding; b=FJ/RlwNLdTR546U4DgHJUSzTYpj6wxb8qp+geo1OCdVXy9z/jvHQwBb1RvgwHPbTJpnbH3b4uDFgo0/o4kfskFbRneaOBZXWA6VGKCwctxu6pk/1zezaQ4rwyOinBxYTK/WkHx4nbM45XP5ZB+oW8rzvDsdwhO5AhqKMKBv9VN0= Received: by 10.49.20.15 with SMTP id x15mr565502nfi.1172565449066; Tue, 27 Feb 2007 00:37:29 -0800 (PST) Received: from ?192.168.0.21? ( [87.166.94.114]) by mx.google.com with ESMTP id e8sm4412489muf.2007.02.27.00.37.28; Tue, 27 Feb 2007 00:37:28 -0800 (PST) From: Pascal Hofstee To: freebsd-arm@FreeBSD.org Content-Type: text/plain Date: Tue, 27 Feb 2007 09:37:27 +0100 Message-Id: <1172565447.1394.20.camel@chekov> Mime-Version: 1.0 X-Mailer: Evolution 2.9.91 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit Cc: Subject: __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: Tue, 27 Feb 2007 09:04:31 -0000 Hi, I just finished writing a small application for my job on FreeBSD/i386 making sure everything compiles WARNS=9 clean. Now comes the task to move this code over to our embedded platform which is an Intel XScale (Linksys NSLU2) at the moment i have not been able to test out cognet@'s FreeBSD/arm work yet .. so we're using a Linux (Debian/Etch) to do our embedded development on, so i apologise if this tunrs out to be a Linux problem and i am asking the wrong people for assistence :) The problem i am encountering is that during the link stage i get a lot of the following link errors: datastream.o: In function `deleteSynchronisedData': ...../datastream.c:909: undefined reference to `__aeabi_read_tp' Googling so far has taught me that this is GCC's work and well the following: `-mtp=NAME' Specify the access model for the thread local storage pointer. The valid models are `soft', which generates calls to `__aeabi_read_tp', `cp15', which fetches the thread pointer from `cp15' directly (supported in the arm6k architecture), and `auto', which uses the best available method for the selected processor. The default setting is `auto'. Obviously GCC is of the opinion that it should use the "soft" access model for thread local storage (which i am indeed using a lot in this source file). But somehow the link stage fails to find these symbols. Where should these symbols be coming from normally and how would i go about fixing my link stage ... It seems as if the compiler is of the opinion that TLS is supported. Once again i know this is currently on a Linux platform but i have much bigger trust in the FreeBSD community to provide sensible answers in this regard. -- Pascal Hofstee