home *** CD-ROM | disk | FTP | other *** search
-
- Here is the basic run-time support for people who want to run Xenix GCC
- without the Microsoft Library. If you don't know what all this means,
- you probably don't want this file right now, but please save it anyway for
- further use if you use Xenix GCC :-)
-
- makesseg.c / Program to generate minimal segment ordering object file.
- Sseg.uu / UUencoded output from makesseg
- Scrt0.s / C runtime start-off.
- start.c / Continued from Scrt0.s
- exit.c / Dummy for use when no stdio library is in sight.
- echo.c / Demonstration program. Doesn't implement -n or \ escapes.
- hack.S / Needed to complete the link of the above. Mainly syscalls.
-
- These were mostly written by Steve B. except for the system calls which
- were abstracted from an earlier comp.unix.xenix posting. I wrote this
- bit of prose and threw the kit together.
-
- To run demonstration module:
- 1) EITHER
- $ HERE=`pwd`
- $ cp makesseg.c <your Xenix-patched GAS directory>
- $ cd <that GAS directory>
- $ gcc makesseg.c xenixomf.o
- $ ./a.out
- $ mv Sseg.o $HERE
- $ cd $HERE
- OR
- $ uudecode < Sseg.uu
-
- 2)
- $ gcc -nostdlib Sseg.o Scrt0.s start.c echo.c hack.S exit.c
-
- ./a.out should now be an executable image which contains no Microsoft library
- cruft at all.
-
- A couple of extra files:
-
- ftol.s / called by CC compiled gnulib, hopefully Microsoft compatible
- / but should be faster.
- altlib.sh / How to generate gnulib without CC at all, just using GCC
-
- You know how anything that's free comes with no warranty? Well, these come
- with even less. This distribution is intended for Dedicated Hackers Only.
-
- Sseg.o Scrt0.o could be moved to /usr/local/lib/gcc-{Sseg.o,Scrt0.o} for
- permanent use (Then DO NOT metion -nostdlib on the gcc control card)
- and start.o should be in your /usr/local/lib/gcc-Slibc.a along with the
- rest of your libc.
-
- Various bits of libc can be found in the comp.sources.unix archive and the
- BSD 4.3-tahoe free'd software tape. I have also successfully run the
- xercise test of Earl Chew <cechew@bruce.OZ> 's stdio library which was
- posted to comp.os.minix (though I think I had to reverse the definitions
- of __STDIO_VA_LIST__ and __STDIO_VA__ and #undef _SIZE_T to make it work).
-
- Another possible stdio candidate is the one posted recently to alt.sources
- by Steve Summit <scs@adam.mit.edu>.
-
- I've also thrown together a ctype package, If anyone wants it, mail me
- and I'll post it if I get fed up of mailing it out.
-