[1274] in SIPB_Linux_Development

home help back first fref pref prev next nref lref last post

PCLU binary for Linux modified to support mixed elf/a.out systems

daemon@ATHENA.MIT.EDU (Erik Nygren)
Sun Feb 25 14:21:22 1996

To: linux-dev@MIT.EDU, 6.170-staff@MIT.EDU, linux-announce@MIT.EDU,
        linux-help@MIT.EDU
Date: Sun, 25 Feb 1996 14:15:26 -0500
From: Erik Nygren <nygren@MIT.EDU>


[Summary: PCLU should now work for people who installed
Linux Slackware 3.0.0 with a.out compatability as well as for
people with older systems with only a.out support.]

I've modified the PCLU binary for Linux in the linux locker
(which the PCLU locker is linked to) to be able to compile
both on pure a.out systems and on mixed elf/a.out systems
(such as the current version of Slackware 3.0.0 which people
are installing).  In theory, this should have no effect on
people with old a.out systems but should allow people
on mixed elf/a.out systems to compile CLU programs
into a.out binaries.  

This is done by PCLU testing to see if /usr/lib/gcc-lib/i486-linuxaout
exists.  If it does, CLUHOME is set to
/afs/sipb/project/linux/lockers/PCLU/lib-aout and gcc is called with
the "-b i486-linuxaout" option.

This is just a hack for now.  The correct solution is to fix the PCLU
garbage collector to work with ELF.  For people interested, the patch
to the driver.c source code is in:
	/mit/linux/lockers/PCLU/etc/driver.c.linuxaouttest.patch

This hasn't been tested much.  There may be interactions between
gcc 2.7.0 or 2.6.3 or libc.4.7.x and pclu that I haven't discovered
yet.  This shouldn't affect people running pure a.out systems.
Note that to compile CLU programs on an ELF system you will
need a.out libraries and a.out support for gcc (both of
which are available in Slackware 3.0.0).

If you have questions, send email to linux-help@mit.edu or to me
(nygren@mit.edu).

	--- Erik

home help back first fref pref prev next nref lref last post