From bug-octave-request at bevo dot che dot wisc dot edu Wed Oct 22 03:42:01 1997 Subject: Fix for loading oct-files From: Michael Hanke To: bug-octave at bevo dot che dot wisc dot edu Date: Wed, 22 Oct 1997 10:41:25 +0200 > roughly one month ago I was reporting about a bug which is more > related to the implementation of the loader library than to > octave. Unfortunately, I dropped the description. You can find it at > URL > http://www.che.wisc.edu/octave/mailing-lists/bug-octave/1997/474. In > short: If I write a .oct file containing two function definitions > which share a common global object and make links under both names to > the same .oct file, some versions of the dynamic loader (I found it in > IRIX 6.2 and Linux) load two images with the same symbols. This means > that the "shared" objects are no longer shared! > > So I introduced some new code into dynamic-ld.cc for > some bookkeeping in order to avoid this situation. The new text is > included below. > > Notes: 1. On some systems (e.g. OSF/1 4.0) this bookkeeping is done by > the loader itself. > 2. The code is only tested under Linux. I try to test it under IRIX, > too. But I do not have time for more extensive tests. The code works on IRIX 6.2, too. Michael