Linking Problem..

Larry Gray larry@greenmotor.com
Thu Oct 4 08:11:00 GMT 2001


>
> /usr/local/m68k-coff/bin/ld:/tmp/cc1JQOUV.o:1: ignoring invalid character
> '\001' in expression.
> /usr/local/m68k-coff/bin/ld:/tmp/cc1JQOUV.o:1: ignoring invalid character
> '\000' in expression.
> /usr/local/m68k-coff/bin/ld:/tmp/cc1JQOUV.o:1: ignoring invalid character
> '\003' in expression.
> /usr/local/m68k-coff/bin/ld:/tmp/cc1JQOUV.o:1: parse error
> collect2: ld returned 1 exit status.

This I'm not sure about, possibly syntax errors in your linker script.
>
> > *link:
> > -T<your linker script>%s
> >
> > Also in specs, verify:
> >
> > *lib:
> > -lc -l<your libgloss library> -lc
>
> I am not able to locate libgloss library under '/usr/local' where i
> installed my cross compiler.
> Its there only in my source directory '/src'. Was it not installed ??
>
> Some more help pl ...
>
> Regard
> Surya

You never mentioned what board you're using. Does the board have a 
monitor program, such as CPU32BUG? If so, you can use a modified bcc.ld and 
libbcc.a. These files should be installed in /usr/local/m68k-coff/lib with 
specific versions in subdirectories m5200, m68000, mcpu32, and msoft-float. 
If you don't have a monitor program (bare board), then you'll have to write a 
new crt0.S with initialization code, and atleast an inbyte and outbyte 
routine if you want I/O. If I/O is not needed you can use libnosys.a.

Hope this Helps,
Larry Gray

------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com



More information about the crossgcc mailing list