Have you used "attribute((__packed__))" anywhere?  If so, remove it.

-Joe

On 1/17/06, Vinayak Naik <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I have a question about a warning issued by the msp430-gcc compiler. It
> says "internal error: unsupported relocation error". I still haven't
> executed my program on tmotes to see whether I get any erroneous behavior.
> I was wondering whether anyone has seen this warning and has experienced
> any problem due to it?
>
> I have seen some postings on this bug inside TinyOS mailing list and
> outside, e.g. a msp430 user attributes this problem to memcpy
> http://www.nabble.com/memcpy-assumes-16-bit-alignment--t712619.html
> I am not using memcpy at the error location. But commenting out memcpy at
> these other locations does not eliminate the warning message.
>
> Thank you,
>
> - Vinayak
>
>
> mkdir -p build/telosb
>     compiling Harvest to a telosb binary
> ncc -o build/telosb/main.exe -O -Wall -Wshadow -DDEF_TOS_AM_GROUP=0x7d
> -Wnesc-all -target=telosb -fnesc-cfile=build/telosb/app.c -board=
> -I%T/lib/Deluge
> -Wl,--section-start=.text=0x4800,--defsym=_reset_vector__=0x4000
> -DIDENT_PROGRAM_NAME=\"Harvest\" -DIDENT_USER_ID=\"naik\"
> -DIDENT_HOSTNAME=\"malik\" -DIDENT_USER_HASH=0xbac68415L
> -DIDENT_UNIX_TIME=0x43cc3171L -DIDENT_UID_HASH=0xfcc7932cL -mdisable-hwmul
> -I/home/naik/tinyos-1.x/tos/lib/CC2420Radio Harvest.nc -lm
> /home/naik/tinyos-1.x/tos/lib/CC2420Radio/CC2420RadioM.nc:116: warning:
> `Send.sendDone' called asynchronously from `sendFailed'
> /tmp/ccU5DQIk.o: In function `HarvestNeighborhoodM$sendMessage':
> app.c:(.text+0x32ac): warning: internal error: unsupported relocation
> error
> app.c:(.text+0x32d6): warning: internal error: unsupported relocation
> error
> app.c:(.text+0x32da): warning: internal error: unsupported relocation
> error
>     compiled Harvest to build/telosb/main.exe
>            16234 bytes in ROM
>              830 bytes in RAM
> msp430-objcopy --output-target=ihex build/telosb/main.exe
> build/telosb/main.ihex
>     writing TOS image
>
>
>
>
>
> _______________________________________________
> Tinyos-help mailing list
> [email protected]
> https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>

_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to