From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII X-Google-Thread: 111c93,c6543716eddb32d8 X-Google-Attributes: gid111c93,public X-Google-ArrivalTime: 2004-03-19 10:00:03 PST Path: archiver1.google.com!news1.google.com!news.glorb.com!prodigy.com!newsfeed.telusplanet.net!newsfeed.telus.net!cyclone.bc.net!tabloid.srv.ualberta.ca!not-for-mail From: Michal Jaegermann Newsgroups: comp.os.linux.alpha Subject: Re: x86 binary emulation for alpha Date: Fri, 19 Mar 2004 17:57:00 +0000 (UTC) Organization: Disorganized Bits Message-ID: References: NNTP-Posting-Host: gortel.phys.ualberta.ca Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: tabloid.srv.ualberta.ca 1079719020 15512 129.128.7.128 (19 Mar 2004 17:57:00 GMT) X-Complaints-To: abuse@ualberta.ca NNTP-Posting-Date: Fri, 19 Mar 2004 17:57:00 +0000 (UTC) User-Agent: tin/1.5.13-20020614 ("Sugar") (UNIX) (Linux/2.4.20-30.7hd (i686)) Xref: archiver1.google.com comp.os.linux.alpha:595 M�ns Rullg�rd wrote: > Michal Jaegermann writes: > >> Also Tru64 programs using threading will have problems on Linux. Saying >> that on a number of occasions I got such things to run correctly by >> "cheating" and making 'libpthread.so' into a link to libc.so, IIRC; of >> course in /usr/shlib and not with Linux libraries. Surprisingly enough >> quite often this is all what you need. > > Really? Those programs must be linking against libpthread.so without > actually using any of it. Is there a reason for doing that way, or > are they just being stupid? I did not study that deeply beeing satisfied with a hack results. :-) I see some possible reasons why this worked after making loader happy. One is that during a compilation linker was grabbing references to libraries which were never really required. Or maybe a program never used threading capablities, due to a way in which Linux kernel operates and loader is doing some "lazy reference resolution" for symbols. Or these were "weak symbols" provided by various libraries and a non-threaded functions variants were using instead of what would be in a real libpthread.so. Just guessing and maybe this is something else. I also _think_ that this was libc.so which I used as a substitute. I would have to check but this may not matter - either calls are resolved in a run time by some loaded libraries or not. A hack of that sort also is not likely to work always but it worked in some cases. Michal