Cross gcc Mailing List Archive

[Prev][Next][Index][Thread]

Re: Linux->go32 for RTEMS




My email and posts are erratic this week.  Myself and 3 of my 4 kids have 
chicken pox.  Please cut me some slack as my answers may seem terse. :)

 On Tue, 19 Nov 1996, Kurt Van Delden wrote:

> I've compiled binutils 2.7 & gcc 2.7.2 for	
> 	host    i586-unknown-linux
> 	target  i386-coff-go32
> 	
> I've also compiled newlib for
> 	host    i586-unknown-linux
> 	target  i386-go32-rtems

Sounds OK assuming that the newlib is the one in the rtems release directory.

> For RTEMS 3.6.0, the librarys compiles to completion.
> Once the first sample program links, I get a whole
> bunch of unresolved references.  Some of them are
> _sbrk, go32...set_vector_..... .  I copied a few
> .h files from a djgpp distribution and only one
> library, crtO.o.  

If memory serves me right some of these are from rtems and some are from 
djgpp.

> Question 1:
> Which .h files and libraries are
> required from the djgpp distribution(v2?).

This rtems configuration has never been updated to djgpp v2.  You should 
only need the library binary part of the 1.12 relerase.  I should still 
have it laying around if you can't find it on the www.

> Quesstion 2:
> Also, should the target be i386-go32-coff or just
> i386-coff...

The tool configuration for gcc and binutils should be exactly like it is 
in the crossgcc faq.  I can't remember what that is off the top of my 
head.  You should be able to use the one tree build procedure to get the 
linux->go32 cross.  Use that to build the rtems specific newlib.  Missing 
files and libraries should be grabbed fromt he binary library 
distribution of djgpp. 1.1[12].

--joel (aka pox man :)

Joel Sherrill                    Sr. Computer Scientist
joel@OARcorp.com                 On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805
   Support Available             (205) 722-9985



References:

Home | Subject Index | Thread Index