From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12441 invoked by alias); 22 Feb 2005 04:23:59 -0000 Mailing-List: contact binutils-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sources.redhat.com Received: (qmail 12383 invoked from network); 22 Feb 2005 04:23:53 -0000 Received: from unknown (HELO webmail-outgoing.us4.outblaze.com) (205.158.62.67) by sourceware.org with SMTP; 22 Feb 2005 04:23:53 -0000 Received: from wfilter.us4.outblaze.com (wfilter.us4.outblaze.com [205.158.62.180]) by webmail-outgoing.us4.outblaze.com (Postfix) with QMQP id DE9A118001B3 for ; Tue, 22 Feb 2005 04:23:52 +0000 (GMT) X-OB-Received: from unknown (205.158.62.132) by wfilter.us4.outblaze.com; 22 Feb 2005 04:22:27 -0000 Received: by ws5-2.us4.outblaze.com (Postfix, from userid 1001) id BEF75416119; Tue, 22 Feb 2005 04:22:27 +0000 (GMT) Content-Type: text/plain; charset="iso-8859-1" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Received: from [203.101.73.166] by ws5-2.us4.outblaze.com with http for arambharathi@linuxmail.org; Tue, 22 Feb 2005 10:22:27 +0600 From: "aram bharathi" To: "Ian Lance Taylor" Cc: gcc@gcc.gnu.org, binutils@sourceware.org Date: Tue, 22 Feb 2005 12:56:00 -0000 Subject: interworking problem Message-Id: <20050222042227.BEF75416119@ws5-2.us4.outblaze.com> X-SW-Source: 2005-02/txt/msg00498.txt.bz2 hi, thanks for identifying the error. i have gone through the a.out file after this error. that is producing f= ull of arm instructions other than the main function(which is compiled for = -mthumb). where should i change for this corresponding error.=20 i have added one new add instruction in thumb mode. based on that i have= written one sample program to emit the corresponding new instruction. gcc = works fine. when i assemble the function it emits correct opcode. but when = i give the same function to the ld it emits full of arm instructions instea= d of thumb instructions. which routine checks for this corresponding change= .=20 thanks in advance=20=20 ----- Original Message ----- From: "Ian Lance Taylor" To: "aram bharathi" Subject: Re: adding new instruction Date: 12 Feb 2005 21:06:07 -0500 >=20 > "aram bharathi" writes: >=20 > > i like to add a new instruction based on thumb ISA. i have=20 > > added the instruction in both as and gcc. both of them are=20 > > working correctly. but when i call ld it shows an error like > > > > /home/.../arm-elf-ld :=20 > > /home/../arm-elf/lib/libc.a(printf.o)(printf): warning :=20 > > interworking not enabled > > first occurance : /tmp/cc00zhyh.o : thumb call to arm > > /tmp//cc00zhyh.o(.text+0x4e>: In function 'main' > > new.c:internal error: dangerous error > > > > whether i have to change anything in the ld. i have searched for=20 > > the ld source file but i counldnt get one in the ld folder. which=20 > > file has to modified first and what kind of changes are needed. >=20 > The source code for that error is in the bfd directory. In general, > if you want to link ARM and Thumb code together, you should compile > all your code with the -mthumb-interwork option. See the > documentation. >=20 > Ian --=20 ______________________________________________ Check out the latest SMS services @ http://www.linuxmail.org=20 This allows you to send and receive SMS through your mailbox. Powered by Outblaze