Does anyone routinely use cegcc to compile in thumb mode?

I thought I would give it a try, but I'm having problems.

If I try:
  arm-wince-cegcc-g++ -mthumb -mcpu=xscale -c trivial.c

on some trivial code it appears to work fine, but then if I try on some 
real code (that works fine without the -mthumb option) it fails with 
lots of errors like this one:

/tmp/ccCzTOl1.s:213: Error: cannot represent 
BFD_RELOC_THUMB_PCREL_BRANCH23 relocation in this object file format

Any ideas?

I am not using the current version of cegcc (I'm using v0.50), but I 
imagine that it is just me doing something stupid (like using the wrong 
gcc options).  Is there anything I need to avoid doing in my sourcecode?

Thanks in advance,
Hywel.


------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
Cegcc-devel mailing list
Cegcc-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cegcc-devel

Reply via email to