Openembedded Devel Discussions
 help / color / mirror / Atom feed
From: Ulf Samuelsson <ulf.samuelsson@atmel.com>
To: openembedded-devel@lists.openembedded.org
Subject: undefined reference to `__gnu_thumb1_case_uqi'
Date: Sat, 16 Apr 2011 13:29:12 +0200	[thread overview]
Message-ID: <4DA97D88.9020509@atmel.com> (raw)

The following code, (part of a bootloader - at91bootstrap-3.0)

"void sub(unsigned char Mode)
{
    switch (Mode) {
    ...
    /* 4 case statements */
"

generates an error when compiling in thumb mode, using the latest OE.

"undefined reference to `__gnu_thumb1_case_uqi'"

I think this subroutine will optimize a switch statment
with only a few choices.


Googling for this seems to indicate that __gnu_thumb1_case_uqi is part
of libgcc, but hidden.

Switches used: -DCONFIG_THUMB -mthumb -mthumb-interwork

Any clues on fixing this?
Meanwhile I will rewrite the bootloader using if statements

Best Regards
Ulf Samuelsson




             reply	other threads:[~2011-04-16 11:49 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-04-16 11:29 Ulf Samuelsson [this message]
2011-04-17 12:31 ` undefined reference to `__gnu_thumb1_case_uqi' Andreas Oberritter
2011-05-03 18:41 ` Khem Raj

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=4DA97D88.9020509@atmel.com \
    --to=ulf.samuelsson@atmel.com \
    --cc=openembedded-devel@lists.openembedded.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