[NTLUG:Discuss] cross-compile to vxworks (m68k) from linux

Seth Daniel seth at ti.com
Thu Aug 19 14:47:54 CDT 1999


seth:~/prj/68k > file hello.o
hello.o: ELF 32-bit MSB relocatable, Motorola 68000, version 1

seth:~/prj/.../util > m68k-elf-nm httpd.o
m68k-elf-nm: httpd.o: File format not recognized

seth:~/prj/.../util > file httpd.o
httpd.o: mc68020 executable not stripped

seth:~/prj/68k > m68k-elf-nm hello.o
00000000 t gcc2_compiled.
00000000 T helloworld
         U printf


On Thu, Aug 19, 1999 at 02:33:08PM -0500, Greg E wrote:
> Do a file command on the pre-compiled binaries and see if it can id
> what they are.  I'd be supprised if an elf file would work on a target
> device.
> 
> Greg E
> 
> 
> Seth Daniel wrote:
> > 
> > I'm beginning to suspect that my target is wrong.  I have a few
> > pre-compiled binaries that work fine under vxworks, but if I
> > run a ``m68k-elf-nm'' on one of these binaries it complains
> > that it doesn't recognize the format.  I wonder if there are more
> > m68k targets for gcc than m68k-coff and m68k-elf??
> > 
> > On Thu, Aug 19, 1999 at 01:27:30PM -0500, Greg E wrote:
> > > When you cross-compile for another target you need to link with
> > > libraries for that target as well.  I'm not familar with vxworks
> > > off hand, I assume it's an OS for the device?  Device dependend
> > > libraries and drivers you will either need to get from the OEM or
> > > develop yourself.  Check the GNU site for a generic m68k
> > > cross-compiler.
> > >
> > > Greg E
> > >
> 
> _______________________________________________
> http://ntlug.org/mailman/listinfo/discuss

-- 
seth daniel  |  Texas Instruments DMOS4/5
seth at ti.com  |   Automation Engineering




More information about the Discuss mailing list