Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Eric Youngdale <eric@sub2317.jic.com>
Subject: Re: Public Domain
Date: Sat, 19 Oct 1996 10:04:22 -0400	[thread overview]
Message-ID: <199610191404.KAA15811@sub2317.jic.com> (raw)

>I really don't think that is going to work.  It would require that a lot of
>stuff like libc, and libX* use identical data structures etc.

	This sounds a lot like the challenges we faced when we wanted to be
able to run SVr4 binaries under Intel Linux.

	Given that the machine is basically syscall compatible, you basically
don't need to mess with the kernel at all.  This was the first challenge
we faced (the SCO binaries and SVr4 binaries use a very similar interface,
so to run static linked SCO binaries the kernel end of things needed to be
done anyways).

	The libraries aren't really that big of a problem..  The problem is
that you need to have a publicly available dynamic loader that is ECOFF
compatible where none currently exists, and for this, someone needs to sit down
with the ECOFF documentation and a bunch of ECOFF libraries and figure out
exactly what is needed.

	Technically, the next step is to fix binutils so that it can build OSF
shared libraries, but this is no 100% required, at least to start with.  When I
first started with the SVr4 stuff, I was able to bootstrap things using the
SVr4 linker running under Linux.  Yeah, you need the license, but if you
already have it, you probably should be able to bootstrap things in this way.
If everything else falls into place, then yes, you would eventually need to
fix binutils so that you can generate an OSF shared library.

	Once you have a dynamic loader, the next step is to come up with
a libc that works.  When we did the SVr4 stuff, the hardest bit was stdio,
since it was basically pretty ancient compared to anything else we had
ever used.  Someone sat down and wrote a stdio implementation that was SVr4
compliant (and interestingly enough it outperforms the current versions).

	The main place you are limited in terms of the stdio implementation
are in that stdio.h defines a bunch of macros to operate on FILE * structures,
and whatever you use must be compatible.  If OSF doesn't use macros but uses
functions instead, then you have no problems at all in this area.

	If someone considers this a worthwhile project, I would be happy
to give the benefit of my experience.  If I were to attempt to do it myself,
it would probably take far too long as I have too many other things I am
trying to do.  I do have access to OSF at the office, so I could poke around
on my own if I really needed to.

-Eric

	In passing, I want to toss out one other idea.  It *may* be
theoretically possible to convert an OSF binary to ELF format.  Internally
they aren't that much different in a number of places, so it might be possible
to do this.  If this can be done, then the need for a publicly available loader
can be finessed, and all you would need would be the libraries.

--
To unsubscribe: mail -s unsubscribe axp-list-request@redhat.com < /dev/null

             reply	other threads:[~1996-10-19 14:04 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-10-19 14:04 Eric Youngdale [this message]
  -- strict thread matches above, loose matches on Subject: below --
1996-10-22  5:52 Public Domain Craig Burley
1996-10-22 11:54 ` Jim Nance
1996-10-21 18:43 Robert Williams
1996-10-21 18:21 dave madden
     [not found] <199610211712.NAA20052@rrdjazz.nist.gov>
1996-10-21 18:13 ` Jim Nance
1996-10-21 17:12 Przemek Klosowski
1996-10-21 15:33 Andrew J. Hutton
     [not found] <326A5DA2.61659567@bob.usuf2.usuhs.mil>
1996-10-21  7:05 ` Bernd
1996-10-21 12:00   ` Jim Nance
1996-10-20 17:13 Robert Williams
1996-10-20  1:23 David Mosberger
1996-10-20 14:43 ` Gerard Roudier
1996-10-19 23:15 Eric Youngdale
1996-10-20  2:09 ` Jim Nance
1996-10-20  3:01   ` D. Steven Daniel
1996-10-19 15:16 Michael W. Chalkley
1996-10-18 20:08 Michael W. Chalkley
1996-10-18 19:50 Robert Williams
1996-10-18 18:49 Michael W. Chalkley
1996-10-18 20:46 ` Jim Nance
1996-10-19  3:27 ` Brian E.W. Wood
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox