main.c has no switch statements in it. Other C files do, but they
compiled to object files without a hitch.
"D. Jeff Dionne" wrote:
> Looks like a switch statement is too large.
> On Mon, 22 Jan 2001, Brian Riley wrote:
> > 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.
> > Thanks!
> > 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 firstname.lastname@example.org list server http://www.uClinux.com/
> This message resent by the email@example.com list server http://www.uClinux.com/
Brian Riley Lead Mechanical Engineer 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 firstname.lastname@example.org list server http://www.uClinux.com/
This archive was generated by hypermail 2b30 : Sun Apr 07 2002 - 00:01:40 EST