Subject: Re: shared libs and impure text on sparc64
To: Frank Cusack <fcusack@fcusack.com>
From: Stoned Elipot <seb@starfleet.univ-paris7.fr>
List: port-sparc64
Date: 10/23/2002 17:24:35
On Wed, Oct 23, 2002 at 01:56:45AM -0700, Frank Cusack wrote:
> Can folks knowledgeable in the intracacies of ELF take a look at pr #16089?
> <http://www.netbsd.org/cgi-bin/query-pr-single.pl?number=16089> for your
> convenience. :-)
> 
> I did some google searching and found some references to 'impure text'
> bugs in earlier egcs versions.  (From what I can gather, impure text
> are unrelocateable references and are a no-no in shared libs, and the
> compiler (or assembler?) is mistakenly generating it.  But that's just
> an uninformed guess.)
> 
> I'm trying to get cyrus going on a sparc64 machine and it's useless
> without the cyradm program.
> 
> At least I'm hoping to hear whether or not it's a compiler/toolchain bug,
> if not an actual solution. :-)

The perl modules of cyrus are compiled as shared objects but the linking
is done with internal lib(s) which objects are not PIC, hence the impure text.

I first solved this by libtooling the whole lot, not very clean...
A better solution was found and should hit your favorite pkgsrc cvs
repository soon.

Cheers, Stoned.