public inbox for gas2@sourceware.org
 help / color / mirror / Atom feed
* bin86 0.2 is released.
       [not found] <199411190328.WAA15221@calum.csclub.uwaterloo.ca>
@ 1994-11-21 20:09 ` H.J. Lu
  1994-11-21 20:41   ` Cross-compiling the kernel (Was: binx86 0.2) Ian Goldberg
  0 siblings, 1 reply; 2+ messages in thread
From: H.J. Lu @ 1994-11-21 20:09 UTC (permalink / raw)
  To: iagoldbe; +Cc: Bruce Evans, Ron Guilmette, linuxgcc, gas2

> We seem to have cross bin86 for Solaris working.  The most important
> changes involve alignment (it needs to be on) and byte ordering.
> Some of the patches just eliminate compiler warnings (conversion of
> pointer to integer without a cast, etc.) and some (in the Makefiles)
> reflect the local setup, and can probably be ignored (the change to $BINDIR,
> for example).
> 

Thanks a lot. I release it as bin86 0.2 with some minor modifications.
The primary ftp sites for the compiler/C library are tsx-11.mit.edu
under pub/linux/packages/GCC/private/dontuse and sunsite.unc.edu under
pub/Linux/GCC/private/dontuse. The two secondary ftp sites are
i44s10.info.uni-karlsruhe.de under pub/linux/libc/private/dontuse and
ftp.ctd.comsat.com under pub/linux/alpha.

Gals, Guys, I'd like to hear the cross-compile kernel stories. I
tried it under SunOS 4.1.3. But the kernel code has a few endian
dependent code in ./zBoot.


H.J.
------
To build this real mode as/ld for x86, just edit Makefile and then
do

make install

It is only tested under SunOS 4.1.3 and Linux.

H.J. Lu
hjl@nynexst.com
11/21/94
------
We seem to have cross bin86 for Solaris working.  The most important
changes involve alignment (it needs to be on) and byte ordering.
Some of the patches just eliminate compiler warnings (conversion of
pointer to integer without a cast, etc.) and some (in the Makefiles)
reflect the local setup, and can probably be ignored (the change to $BINDIR,
for example).

   - Ian (iagoldbe@csclub.uwaterloo.ca)

----
I modified it for the latest Linux C library 4.5.21 and released it as
bin86 0.1. It is only tested for building the Linux kernel and is not
intended for any other purposes. To build it under Linux, just type

make all
make install

It is not tested for cross-compiling. If you have any patches for
cross-compiling, please send them to me.

Thanks.


H.J. Lu
hjl@nynexst.com
03/03/94
-------------
This is the as86 and ld86 distribution written by Bruce Evans.  It's
copyright Bruce Evans, all rights reserved although you may use and copy
it for your personal use.  It's a complete 8086 assembler and loader
which can make 32-bit code for the 386+ processors (under linux it's
used only to create the 16-bit bootsector and setup binaries).  The
syntax is not compatible with the GNU assembler, but closer to intel
syntax ("wrong" order of operands etc). 

Hints for compiling:

 - you'll need the a.out.h-files from the a.out.h directory for the
linker.  These aren't really part of the distribution, but I included
them for ease of setup (in case you need to crosscompile etc).  Do a 
	cp a.out.h/* ld/
or similar before compiling the linker. 

 - the assembler needs the typeconv.o file produced by the linker
compilation.  So compile the linker first, and then do a
	cp ld/typeconv.o as/
before making the assembler. 

This distribution also contains some test-files etc that aren't actually
needed, but as they also give some idea of the assembler syntax, I left
them in.  The directories are as follows:

  as - the assembler sources (minus typeconv.c)
  ld - linker sources
  bcc - bruce evans' cc frontend sources (the actual compiler isn't
	included).
  bccfp - assembly floating point routines written by bruce evans.  Note
	that these use integer register returns, and won't work with the
	linux libraries.  They can be used as examples of as86 code. 
  a.out.h - header files for crosscompilation.

Note that I am NOT the author of this package, but I'll forward any
comments to bruce evans and I'll try to answer any questions about the
assembler/linker I can.  I just made it available as bde doesn't have
ftp capability right now.  Bruce Evans does have mail as
<bde@runx.oz.au>. 

		Linus Torvalds


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Cross-compiling the kernel (Was: binx86 0.2)
  1994-11-21 20:09 ` bin86 0.2 is released H.J. Lu
@ 1994-11-21 20:41   ` Ian Goldberg
  0 siblings, 0 replies; 2+ messages in thread
From: Ian Goldberg @ 1994-11-21 20:41 UTC (permalink / raw)
  To: H.J. Lu; +Cc: bde, rfg, linux-gcc, gas2

> Gals, Guys, I'd like to hear the cross-compile kernel stories. I
> tried it under SunOS 4.1.3. But the kernel code has a few endian
> dependent code in ./zBoot.

We fixed those endian problems in zBoot and tools/build.  We now have
a working cross-compile for the Linux kernel that should work on
any big- or little-endian machine with the appropriate tools (a cross-
compiler/assembler, etc).  The patches to the Makefiles and the zBoot
and tools stuff have been sent to Linus.  The 1.1.64 kernel I'm using right
now was compiled on a Solaris 2.3 machine.

---------.. ._ _.------------

Ian Goldberg  University of Waterloo PM+CS
iagoldberg@csclub.uwaterloo.ca

foo(a) { return (a?foo(a&a-1)+1:0); }

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1994-11-21 20:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <199411190328.WAA15221@calum.csclub.uwaterloo.ca>
1994-11-21 20:09 ` bin86 0.2 is released H.J. Lu
1994-11-21 20:41   ` Cross-compiling the kernel (Was: binx86 0.2) Ian Goldberg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).