Subject: Re: ld: RRS text relocation
To: Simon J. Gerraty <sjg@quick.com.au>
From: Paul Kranenburg <pk@cs.few.eur.nl>
List: current-users
Date: 04/17/1997 23:39:01
> works, but on NetBSD 1.2D (i386 if that matters) I get: 
> 
> ld: /usr/local/src/sjg/lib/obj/libsslfd.a(write_.o): RRS text relocation at 0xed45 for "cerror"
> 
> and I'd like to know why.

This is because the modules come from libc.a where the reference to `cerror' 
is compiled for "non-PIC" use in the system call stubs. You've now made
it an undefined in your library which eventually resolves to the 
definition in the shared libc.so.n.m

Pull cerror.o from libc.a as well and put it in with the other modules
in your library.

-pk