hi,

an arithmetic pointer operation on a odd byte alignment 
could also be a reason for a Unsupported Relocation Error.

e.g.:

  unsigned long ulX;

 *(unsigned long*)(&buf[2]) = ulX;    // for buf[2] this works, with buf[3] you
will get <Unsupported Relocation Error>


matthias

-----Ursprüngliche Nachricht-----
Von: mspgcc-users-ad...@lists.sourceforge.net
[mailto:mspgcc-users-ad...@lists.sourceforge.net]im Auftrag von Peter
Jansen
Gesendet: Donnerstag, 26. August 2004 00:26
An: mspgcc-users@lists.sourceforge.net
Betreff: Re: [Mspgcc-users] Unsupported Relocation Error


Hi Peter,

> I've started to add some assembly routines to my project which is in C 
> until now. Now I get the following error internal compiler error: 
> Unsupported Relocation Error

Without your code, its generally due to a symbol size problem. You have 
an instruction in Assembler taking a symbol from C and the C symbol has 
a larger address size than the assembler instruction can take.

This happens at link time when the symbols are allocated actual 
addresses and the instructions which use these symbols are updated with 
the allocated address.


-- 
Peter Jansen


-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
Mspgcc-users mailing list
Mspgcc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mspgcc-users

Reply via email to