public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
From: "Daniel Otte" <daniel.otte@rub.de>
To: binutils@sourceware.org
Subject: b[l]x instruction in cortex-m3 code
Date: Mon, 18 Jul 2011 21:50:00 -0000	[thread overview]
Message-ID: <4E249174.8080501@rub.de> (raw)

[-- Attachment #1: Type: text/plain, Size: 470 bytes --]

Hi,
when I link code for the ARM Cortex-M3 the b[l]x instruction is emitted.
Since Cortex-M3 has no ARM mode and no b[l]x instruction the CPU goes in a fault
mode when it is asked to execute it.

As far as I have read it is ok for the compiler to emit b[l]x but the linker is
required to translate it into b[l] instructions.

I tried a lot of linker flags with no success.

Are I'm missing something or is this really a bug?

Best regards,
  Daniel Otte


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

             reply	other threads:[~2011-07-18 20:03 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-18 21:50 Daniel Otte [this message]
2011-07-19  3:59 ` Daniel Jacobowitz
2011-07-19 10:45   ` Daniel Otte
2011-07-20  2:06     ` Dave Martin
2011-07-20  6:19     ` Daniel Jacobowitz

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=4E249174.8080501@rub.de \
    --to=daniel.otte@rub.de \
    --cc=binutils@sourceware.org \
    /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).