public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
From: Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
To: "Heikki Keränen" <heikki.keranen@finwe.fi>
Cc: binutils@sourceware.org
Subject: Re: Linking against armlink produced ELF for armv6-m (thumb only) CPU
Date: Mon, 09 Aug 2010 15:42:00 -0000	[thread overview]
Message-ID: <1281357579.15516.9.camel@e102319-lin.cambridge.arm.com> (raw)
In-Reply-To: <4C5FEFEB.4070004@finwe.fi>

Hi,

On Mon, 2010-08-09 at 15:09 +0300, Heikki Keränen wrote:
> Hi,
> 
> I have found no good solution to this problem. Can anyone help?
> 
> We have a ROM image produced by RVCT toolchain: armlink produces .axf
> -file which is in ELF-format. Now we would like to create an executable
> to the RAM by using the GNU-toolchain. Those RAM-executables should of
> course link against functions in ROM.
> 
> If I have understood everything right the correct way to do this is to
> link against this armlink produced ELF-file by using option
> "--just-symbols=romimagefile.elf".
> 
> Everything works when I link against a ROM image ELF-file produced by
> the ld -linker, but when I link against armlink -produced ELF-file the
> following happens:
> 
> Build finishes, but in the ld -linker prints out a following error
> message: "Conflicting CPU architectures 11/0". Also the veneers
> generated by the ld -linker seem to contain ARM-instructions although we
> have a thumb-only CPU architecture (armv6-m).

Can you give some sample command lines (I don't think objects are
necessary at the moment) please?

What I am looking for are examples of how you call armcc, armlink, gcc,
and ld.

Can you also give the results of readelf -A when run on the armlink
produced image and also one of the gcc produced objects you are trying
to link against?

What version of RVCT are you using (what is the result of armlink
--vsn)?

[snip]

> Is there something I have not found by myself I could try or is this
> problem right now a compatibility problem with no solution?

I don't have enough information at the moment to be able to make a call
as to what the cause of this issue is.

> What would be the best solution in the long term?

If you can answer the questions above we might be able to give a good
answer to your question.

Thanks,

Matt

-- 
Matthew Gretton-Dann
Principal Engineer - PDSW Tools
ARM Ltd

  reply	other threads:[~2010-08-09 12:39 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-09 12:39 Heikki Keränen
2010-08-09 15:42 ` Matthew Gretton-Dann [this message]
2010-08-09 18:09   ` Heikki Keränen
2010-08-10 21:17     ` Matthew Gretton-Dann
2011-07-05 18:21       ` GusSabina
2011-07-06 14:58         ` Matthew Gretton-Dann
     [not found]           ` <1310448299.35910.YahooMailRC@web34301.mail.mud.yahoo.com>
2011-07-12 22:33             ` Matthew Gretton-Dann

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=1281357579.15516.9.camel@e102319-lin.cambridge.arm.com \
    --to=matthew.gretton-dann@arm.com \
    --cc=binutils@sourceware.org \
    --cc=heikki.keranen@finwe.fi \
    /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).