[oe] undefined reference to `__gnu_thumb1_case_uqi'
Andreas Oberritter
obi at opendreambox.org
Sun Apr 17 12:31:09 UTC 2011
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
More information about the Openembedded-devel
mailing list