On Thu, 23 Jul 1998, Jim Paradis wrote: > Remember; everything pertaining to "em86-x86" is *INTEL* stuff. You've > got to have access to an Intel development system and the Intel SRPMS > in order to do anything useful. Good thing I have access to 5 intel boxxen, 2 alphas, and (with a little work) a PPC or 2 running linux, eh? ;-) > That said, the goods are in glibc-2.0.7-19.src.rpm. Yes, you will have to > hunt down the pieces you need and toss the rest... Got it. Couldn't use much of it save the tarballs and patches, but then that's the only reason I got it. :-) Ok, I have ld-linux.so.2 built now, but I get an illegal instruction every time I try to run it. Running either the binary, or the old ldd86 or the ldd that came with glibc (hacked to use /usr/x86/lib/ld-linux.so.2 instead of /lib/ld-linux.so.2) causes a segfault, presumably because ld-linux.so.2 dies with SIGILL. The build process I used: rpm -bp /usr/src/redhat/SPECS/glibc-2.0.7.spec -- unarchive all the tarballs, prep it. apply the attached patch to rtld.c (allows changing the path of ld.so.cache) (in BUILD/glibc-2.0.7/) CFLAGS="-O2" ./configure --disable-sanity-checks --prefix=/usr/x86 --host=i386-unknown-linux-gnu apply the patch to config.make (sets slibdir and libdir to use /usr/x86) make -r CC='gcc -DLD_SO_PRELOAD=\"/usr/x86/etc/ld.so.preload\" -DLD_SO_CACHE=\"/usr/x86/etc/ld.so.cache\"' -C elf copy glibc-2.0.7/elf/ld-linux.so.2 to /usr/x86/lib/ld-linux.so.2 on the alpha, run ldconfig86, etc., etc. (Note that since this uses /usr/x86/etc/ld.so.{preload,cache} and the old stuff uses stuff in /usr/x86, some symlinks or copies will be necessary.) run some intel glibc-based proggy, see segfault, get register list, smile wearily. Contemplate. Experiment. ;-) Any ideas or suggestions? The binary I built can be grabbed from ftp.dodds.net/incoming/ld-linux.so.2.gz if it'll help. Thanks! - Bob