Usenet comp.os.linux.alpha (1997-2013)
 help / color / mirror / Atom feed
From: Michal Jaegermann <michal@gortel.phys.ualberta.ca>
Subject: Re: x86 binary emulation for alpha
Date: Fri, 19 Mar 2004 17:57:00 +0000 (UTC)	[thread overview]
Message-ID: <c3fc9c$f4o$1@tabloid.srv.ualberta.ca> (raw)
In-Reply-To: yw1x8yhyhr4g.fsf@kth.se

M�ns Rullg�rd <mru@kth.se> wrote:
> Michal Jaegermann <michal@gortel.phys.ualberta.ca> 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


  reply	other threads:[~2004-03-19 17:57 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-03-16 23:47 x86 binary emulation for alpha Roy Kidder
2004-03-17  0:00 ` Måns Rullgård
2004-03-17  0:56   ` Roy Kidder
2004-03-17  1:02     ` Måns Rullgård
2004-03-18 12:49       ` Roy Kidder
2004-03-18 12:59         ` Måns Rullgård
2004-03-18 17:53         ` Michal Jaegermann
2004-03-18 19:50           ` Måns Rullgård
2004-03-19 17:57             ` Michal Jaegermann [this message]
2004-03-17  8:40 ` Falk Hueffner
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