This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Can't Execute m68k Programs


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]