From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <199610192315.TAA17824@sub2317.jic.com> Date: Sat, 19 Oct 1996 19:15:44 -0400 From: Eric Youngdale Subject: Re: Public Domain >>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