From: Linus Torvalds (torvalds@klaava.Helsinki.FI)
Date: 06/25/93


From: torvalds@klaava.Helsinki.FI (Linus Torvalds)
Subject: Re: Compiling Linux under OS/2
Date: 25 Jun 1993 13:51:50 +0300

In article <68760@mimsy.umd.edu> pr@umiacs.umd.edu (Jesus M. Rodriguez) writes:
>
>Has anyone successfully compiled linux using EMX 0.8f under OS/2 2.0?
>If so, could let me know how. Right Now I can't seem to find as86
>I don't really know what that is.

as86 is Bruce Evans' assembler that can assemble 16-bit and 32-bit x86
programs and is used under linux to do the 16-bit startup routines (I
use gas for the 32-bit stuff due to support from gcc and "correct"
operand order). The source to the assembler can be found on various
linux ftp archives, at least nic.funet.fi: pub/OS/Linux/PEOPLE/Linus.
Note that despite the pathname, I didn't write it, and it's not under
the GPL, but copyrighted by Bruce.

The as86 sources may need tweaking to get to work correctly (check the
readme) due to a.out.h differences, but it shouldn't be a major problem
even under OS/2. Also, I assume that EMX 0.8f is one of the gcc ports
to OS/2 - otherwise you'll have to get gcc for OS/2 somewhere (it
exists, I know, but I have absolutely no idea where to find it). I'd
assume that OS/2 doesn't use the a.out format, so you may have problems
at the linking and bootimage building stage: you're probably best off if
you "port" the linux ld to OS/2 for use as a cross-linker.

In case the OS/2 ports of gcc try to use the braindead intel asm syntax,
you'll probably have to port the whole gcc/as/ld suite for use as a
cross-compilation environment: it shouldn't be too painful, but if you
are low on diskspace it could turn out to be a problem.

                Linus