Subject: Re: Dynamic linking is go (again)
To: Marcus Comstedt <marcus@mc.pp.se>
From: Jason Thorpe <thorpej@wasabisystems.com>
List: port-dreamcast
Date: 07/03/2003 10:21:42
On Thursday, July 3, 2003, at 07:45  AM, Marcus Comstedt wrote:

> Btw, I noticed that objects opened with dlopen() can not reference
> symbols in the main binary.  Does anyone know if this is a sh3-related
> issue, or a generic NetBSD bug?  If I link the main binary with the
> shared object, it can access the symbol.

You need to pass -E (--export-dynamic is the long option name, I think) 
to the linker in order for shared objects to access main program 
symbols.

Shared objects can always access each other's symbols (e.g. libc's) but 
the main program is a different situation.

         -- Jason R. Thorpe <thorpej@wasabisystems.com>