Can't Execute m68k Programs

Larry Gray larry@greenmotor.com
Tue Sep 25 10:48:00 GMT 2001


>
> maybe the soft-float libc isn't getting linked properly?
>

> >
> > m68k-coff-gcc -Wall -m68332 -mshort -msoft-float -c hello.c
> >
> > I've modified the specs file to use bcc.ld and libbcc.a, I link with:
> >
> > m68k-coff-gcc -Wall hello.o -o hello.s19
> >
>
> it would appear the multilib stuff isn't getting properly linked.  if
> you use iprintf() do things work as expected?  (aside from no floating
> point?)  if you pass -t to the linker (-Wl,-t to gcc) it will show which
> libraries you are linking against.
>
Hello,
	Thanks, this was the problem. I had to add -msoft-float or -mcpu32 when 
compiling and linking. Now I can get this setup in a proper Makefile, with 
the appropriate options.


> > 4. Is there a way to generate a complete listing file? One that has
> > absolute addresses and assembly code? I can generate absolute
> > addresses with m68-coff-nm, and individual assembly code by stopping
> > gcc with -S. Is there a program that combines all these?
>
> m68k-coff-objdump -S maybe?

Where do I find m68k-coff-objdump? It didn't come in my version of binutils.

Thanks Again,
Larry Gray
larry@greenmotor.com

------
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