From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2967 invoked by alias); 22 Jun 2006 15:06:06 -0000 Received: (qmail 2958 invoked by uid 22791); 22 Jun 2006 15:06:05 -0000 X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 22 Jun 2006 15:06:02 +0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11.20060308/8.12.11) with ESMTP id k5MF5rRv029398; Thu, 22 Jun 2006 11:05:53 -0400 Received: from pobox.surrey.redhat.com (pobox.surrey.redhat.com [172.16.10.17]) by int-mx1.corp.redhat.com (8.12.11.20060308/8.12.11) with ESMTP id k5MF5q1a000820; Thu, 22 Jun 2006 11:05:53 -0400 Received: from [10.32.68.2] (vpn-68-2.surrey.redhat.com [10.32.68.2]) by pobox.surrey.redhat.com (8.12.11.20060308/8.12.11) with ESMTP id k5MF5pbB015197; Thu, 22 Jun 2006 16:05:51 +0100 Message-ID: <449AB1C8.1070302@redhat.com> Date: Thu, 22 Jun 2006 15:39:00 -0000 From: Nick Clifton User-Agent: Thunderbird 1.5.0.4 (X11/20060516) MIME-Version: 1.0 To: Yvan Castilloux CC: binutils@sourceware.org Subject: Re: relocatable link problem References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact binutils-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sourceware.org X-SW-Source: 2006-06/txt/msg00340.txt.bz2 Hi Yvan, > The problems, for now, comes with pre-linking our code. There are some > functions that are called in our code but defined in the user's code. I > then decided to declare these functions as extern, otherwise there's an > undefined error. Then I added the -r option in the linkage. The command > was as follows: > > msp430-gcc -mmcu=${CPU} -r -olibdevice.a -Tldscript1612.x -L$(LIBDIR) > $(DEVICE_OBJS) -ldevice I suspect that the problem here is that the "-r" switch is not being interpreted by the msp430-gcc program as a switch for the linker. Try using "-Wl,-r" instead. Cheers Nick