[uCsimm] m68k-pic-coff assembler error

From: Brian Riley (riley@opticalaccess.com)
Date: Mon Jan 22 2001 - 20:21:42 EST

I'm working on porting an SNMP daemon to uClinux (specifically the
uCsimm). I have no problem compiling any of the object files except for
one: main.c. During compilation, I get the following error:

/tmp/ccPqDRxc.s: Assembler messages:
/tmp/ccPqDRxc.s:7070: Error: Signed .word overflow; switch may be too
large; 41546 at 0x71c6
/tmp/ccPqDRxc.s:7109: Error: Signed .word overflow; switch may be too
large; 41550 at 0x7222
(dozens of lines more...)

I'm not overly experienced with assemblers, but I've been able to figure
out from postings about similar errors (mainly for the Palm Pilot's M68K
processor) that this is the result of the jump distance between
functions being larger than 32k. The main.c file consists of some
#include's and 3 short function calls (<25 lines) in addition to main().

The only suggested solution I've seen is to break up the suspect code
into smaller fragments. Since this code is already fairly simple, I'm
not sure how to break it up even more...

Any suggestions? I'm really quite stumped at the moment and would
appreciate any pointers or information anyone could toss my direction.


BTW- I've tried using the m68k-pic-coff-gcc included on the uClinux CD
as well as the m68k-pic32-coff-gcc rpm from
http://home.at/uclinux/pic32/. I run into the same errors with either
compiler installed.


Brian Riley Optical Access 10343 Roselle St. San Diego, CA 92121

P: 858-792-8501 x116 F: 858-792-4962 http://www.opticalaccess.com This message resent by the ucsimm@uclinux.com list server http://www.uClinux.com/

This archive was generated by hypermail 2b30 : Sun Apr 07 2002 - 00:01:40 EST