[Tinyos-help] warning: internal error: unsupported relocation error

Michael Schippling schip at santafe.edu
Tue Apr 6 10:01:18 PDT 2010


I got a link map from an atmega compile by adding this to the makefile:

CFLAGS	+= -Xlinker -M

YMMV...
MS




Xiaohui Liu wrote:
> Can anybody help? This warning seems to be causing strange behaviour of 
> my program. Thanks in advance.
> 
> On Wed, Mar 31, 2010 at 12:47 AM, Michael Schippling <schip at santafe.edu 
> <mailto:schip at santafe.edu>> wrote:
> 
>     oops....I was shooting from the hip and didn't read the whole
>     message... Presuming that "text" is 0 it seems that the program
>     should fit.
> 
>     Is there are way to cause gcc to cough up a link table?
> 
>     Otherwise, perhaps some experimental code removal could
>     focus in on where the problem lies.
> 
>     MS
> 
>     Xiaohui Liu wrote:
> 
>         Hi,
> 
>         Thanks for your attention. Could you please give me some further
>         info on what is causing the error and how to fix it? I really
>         appreciate your help.
> 
>         On Tue, Mar 30, 2010 at 5:15 PM, Philip Levis
>         <pal at cs.stanford.edu <mailto:pal at cs.stanford.edu>
>         <mailto:pal at cs.stanford.edu <mailto:pal at cs.stanford.edu>>> wrote:
> 
> 
>            On Mar 30, 2010, at 1:39 PM, Michael Schippling wrote:
> 
>             > How big is your program? You may have overrun your Flash
>         memory size.
>             > MS
> 
>            0x9424 is smaller than 48K (telosb); it sounds like an msp430-gcc
>            internal linker error.
> 
>             >
>             >
>             > Xiaohui Liu wrote:
>             >> Hi,
>             >>
>             >> After I compile my program using "make telosb", the following
>            warning
>             >> pops up: "app.c:(.text+0x9424): warning: internal error:
>         unsupported
>             >> relocation error". I looked up some of the related
>         threads, none of
>             >> which gives a solution. Can anybody tell me what causes this
>            warning and
>             >> how to get rid of it? Thanks.
>             >>
>             >> --
>             >> -Xiaohui Liu
>             >>
> 
>            Phil
> 
> 
> 
> 
>         -- 
>         -Xiaohui Liu
> 
> 
> 
> 
> -- 
> -Xiaohui Liu


More information about the Tinyos-help mailing list