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 19:15:44 -0400	[thread overview]
Message-ID: <199610192315.TAA17824@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.
>
>I think it's worthwhile. Anyone else out there have the time to lend a hand?
>It would really expand the software possibilities. I can supply some system
>resources, ftp and a web site.

	A generous offer, but what is needed more are people willing to dig
in, solve some problems, and write some code.

	I have been contemplating this over the afternoon, and I am beginning
to think that a conversion utility that could convert an ECOFF binary to ELF
would make the most sense in this particular case.  It doesn't make much sense
for someone to have to try and figure out how to write a ECOFF dynamic linker
and all that, and the lack of support for linking ECOFF shared libraries in
binutils would eventually be a major hinderance.  In about 2 hours I was able
to hack together a utility that could wrap ELF file and section headers around
the ECOFF version of netscape (there - now you know why I really care about
this :-).  I still need to 'convert' the .dynamic, .hash, .dynsym sections,
and add/convert the dynamic relocations.  Oddly enough, the ECOFF binaries
use Elf32_* for .dynamic, .dynsym, so it is mainly just a matter of copying
data over to the larger structures, and then finding a place in VM to put
them so that the .text/.data sections don't get moved at all.

	WRT the libraries, I have verified that stdio in glibc is completely
incompatible with the OSF version.  Most things wouldn't notice the difference,
but there are macros for fileno(), feof() which depend upon the structure
layout, and the standard descriptor definitions for stdin, stdout and stderr
depend upon the size of the structure being the same.  I am not sure if
anything else in glibc is incompatible, however.  

	In theory we *might* be able to use glibc, with a compatible stdio
loaded ahead of it via LD_PRELOAD type of mechanism, but this could be broken
with dlopen() types of activity and it would ultimately be cleaner to build the
library from scratch with a compatible stdio.  Also, there are usually slight
naming differences (i.e. __foo instead of _foo) which sometimes get in the
way, and it is often easier just to build the library from scratch with
the right headers rather than just hack around it).

	Also OSF seems to be using X11R5, not X11R6, which means that we
wouldn't be able to use any of the existing X libraries.  Someone would have to
build these (with a compatible stdio version) before any X applications could
be run.  Also, I grepped through the X source tree, and they also use fileno
et. al., which would be a major nuisance to work around.

	The long and short of it is that it looks like there would have to be
seperate versions of all of the shared libraries that any OSF binary may
require.  In the case of netscape, the Motif libraries would appear to be
required, so we would eventually need a way to get someone to build both
native and OSF-compatible versions of Motif.

	Are there any other issues that anyone can think of?  Aside from
performance problems, would the math library routines be compatible?

	Anyone heard any rumors about a version of netscape for Linux/AXP :-)?
If so, now would be a good time to mention it.

-Eric

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

             reply	other threads:[~1996-10-19 23:15 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-10-19 23:15 Eric Youngdale [this message]
1996-10-20  2:09 ` Public Domain Jim Nance
1996-10-20  3:01   ` D. Steven Daniel
  -- strict thread matches above, loose matches on Subject: below --
1996-10-22  5:52 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 15:16 Michael W. Chalkley
1996-10-19 14:04 Eric Youngdale
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