All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andreas Oberritter <obi@opendreambox.org>
To: openembedded-devel@lists.openembedded.org
Subject: Re: undefined reference to `__gnu_thumb1_case_uqi'
Date: Sun, 17 Apr 2011 14:31:09 +0200	[thread overview]
Message-ID: <4DAADD8D.6060708@opendreambox.org> (raw)
In-Reply-To: <4DA97D88.9020509@atmel.com>

On 04/16/2011 01:29 PM, Ulf Samuelsson wrote:
> 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

Does adding -ffreestanding help?

Regards,
Andreas



  reply	other threads:[~2011-04-17 12:33 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-04-16 11:29 undefined reference to `__gnu_thumb1_case_uqi' Ulf Samuelsson
2011-04-17 12:31 ` Andreas Oberritter [this message]
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=4DAADD8D.6060708@opendreambox.org \
    --to=obi@opendreambox.org \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.