From: "aram bharathi" <arambharathi@linuxmail.org>
To: "Ian Lance Taylor" <ian@airs.com>
Cc: gcc@gcc.gnu.org, binutils@sourceware.org
Subject: interworking problem
Date: Tue, 22 Feb 2005 12:56:00 -0000 [thread overview]
Message-ID: <20050222042227.BEF75416119@ws5-2.us4.outblaze.com> (raw)
hi,
thanks for identifying the error.
i have gone through the a.out file after this error. that is producing full of arm instructions other than the main function(which is compiled for -mthumb). where should i change for this corresponding error.
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 instead of thumb instructions. which routine checks for this corresponding change.
thanks in advance
----- Original Message -----
From: "Ian Lance Taylor" <ian@airs.com>
To: "aram bharathi" <arambharathi@linuxmail.org>
Subject: Re: adding new instruction
Date: 12 Feb 2005 21:06:07 -0500
>
> "aram bharathi" <arambharathi@linuxmail.org> writes:
>
> > i like to add a new instruction based on thumb ISA. i have
> > added the instruction in both as and gcc. both of them are
> > working correctly. but when i call ld it shows an error like
> >
> > /home/.../arm-elf-ld :
> > /home/../arm-elf/lib/libc.a(printf.o)(printf): warning :
> > 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
> > the ld source file but i counldnt get one in the ld folder. which
> > file has to modified first and what kind of changes are needed.
>
> 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.
>
> Ian
--
______________________________________________
Check out the latest SMS services @ http://www.linuxmail.org
This allows you to send and receive SMS through your mailbox.
Powered by Outblaze
next reply other threads:[~2005-02-22 4:23 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-02-22 12:56 aram bharathi [this message]
2005-02-22 14:45 ` Nick Clifton
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20050222042227.BEF75416119@ws5-2.us4.outblaze.com \
--to=arambharathi@linuxmail.org \
--cc=binutils@sourceware.org \
--cc=gcc@gcc.gnu.org \
--cc=ian@airs.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).