From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 14497 invoked from network); 24 Jul 1998 22:16:13 -0000 Received: from prophet.commonlink.com (scorpio@208.132.64.107) by mail2.redhat.com with SMTP; 24 Jul 1998 22:16:13 -0000 Received: from localhost (scorpio@localhost) by prophet.commonlink.com (8.8.8/8.8.8) with SMTP id RAA26706 for ; Fri, 24 Jul 1998 17:15:52 -0500 X-Authentication-Warning: prophet.commonlink.com: scorpio owned process doing -bs Date: Fri, 24 Jul 1998 17:15:52 -0500 (CDT) From: X-Sender: scorpio@prophet To: axp-list@redhat.com Subject: Re: em86 + glibc? In-Reply-To: <199807232117.RAA02430@linux01.hlo.dec.com> Message-ID: MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="2228251200-2058880581-901318552=:1832" This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. Send mail to mime@docserver.cac.washington.edu for more info. --2228251200-2058880581-901318552=:1832 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 --2228251200-2058880581-901318552=:1832 Content-Type: TEXT/PLAIN; charset=US-ASCII; name="glibc-ld.so.preload.patch" Content-Transfer-Encoding: BASE64 Content-ID: Content-Description: LS0tIGdsaWJjLTIuMC43L2VsZi9ydGxkLmMub3JpZwlGcmkgSnVsIDI0IDE0 OjI0OjE3IDE5OTgNCisrKyBnbGliYy0yLjAuNy9lbGYvcnRsZC5jCUZyaSBK dWwgMjQgMTY6NTA6MDAgMTk5OA0KQEAgLTI4LDYgKzI4LDkgQEANCiAjaW5j bHVkZSAiZHluYW1pYy1saW5rLmgiDQogI2luY2x1ZGUgPGRsLWVudnZhcnMu aD4NCiANCisjaWZuZGVmIExEX1NPX1BSRUxPQUQNCisjZGVmaW5lIExEX1NP X1BSRUxPQUQJIi9ldGMvbGQuc28ucHJlbG9hZCINCisjZW5kaWYNCiANCiAv KiBTeXN0ZW0tc3BlY2lmaWMgZnVuY3Rpb24gdG8gZG8gaW5pdGlhbCBzdGFy dHVwIGZvciB0aGUgZHluYW1pYyBsaW5rZXIuDQogICAgQWZ0ZXIgdGhpcywg ZmlsZSBhY2Nlc3MgY2FsbHMgYW5kIGdldGVudiBtdXN0IHdvcmsuICBUaGlz IGlzIHJlc3BvbnNpYmxlDQpAQCAtMzg3LDcgKzM5MCw3IEBADQogICAgIH0N CiANCiAgIC8qIFJlYWQgdGhlIGNvbnRlbnRzIG9mIHRoZSBmaWxlLiAgKi8N Ci0gIGZpbGUgPSBfZGxfc3lzZGVwX3JlYWRfd2hvbGVfZmlsZSAoIi9ldGMv bGQuc28ucHJlbG9hZCIsICZmaWxlX3NpemUsDQorICBmaWxlID0gX2RsX3N5 c2RlcF9yZWFkX3dob2xlX2ZpbGUgKExEX1NPX1BSRUxPQUQsICZmaWxlX3Np emUsDQogCQkJCSAgICAgUFJPVF9SRUFEIHwgUFJPVF9XUklURSk7DQogICBp ZiAoZmlsZSkNCiAgICAgew0K --2228251200-2058880581-901318552=:1832 Content-Type: TEXT/PLAIN; charset=US-ASCII; name="config.make.patch" Content-Transfer-Encoding: BASE64 Content-ID: Content-Description: LS0tIGdsaWJjLTIuMC43L2NvbmZpZy5tYWtlfglGcmkgSnVsIDI0IDE2OjI0 OjA4IDE5OTgNCisrKyBnbGliYy0yLjAuNy9jb25maWcubWFrZQlGcmkgSnVs IDI0IDE2OjI0OjM5IDE5OTgNCkBAIC02LDcgKzYsOCBAQA0KIGluc3RhbGxf cm9vdCA9DQogcHJlZml4ID0gL3Vzci94ODYNCiBleGVjX3ByZWZpeCA9ICR7 cHJlZml4fQ0KLXNsaWJkaXIgPSANCitzbGliZGlyID0gJHtwcmVmaXh9L2xp Yg0KK2xpYmRpciA9ICR7cHJlZml4fS91c3IvbGliDQogc3lzY29uZmRpciA9 IA0KIHJvb3RzYmluZGlyID0gDQogDQo= --2228251200-2058880581-901318552=:1832--