This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: dlopen() bug on Linux/Alpha ( Was: Unidentified subject!)
- To: axp-list at redhat dot com
- Subject: Re: dlopen() bug on Linux/Alpha ( Was: Unidentified subject!)
- From: Stefan Traby <stefan at sime dot com>
- Date: Sat, 10 Jan 1998 22:41:30 +0100
- CC: axp-list at redhat dot com, bug-glibc at prep dot ai dot mit dot edu, egcs-bugs at cygnus dot com
- Organization: Stefan Traby <stefan@sime.com>
- Reply-To: Stefan Traby <stefan at sime dot com>
Hi Dan !
> Let me make a correction to this. When the dlopen call is used it
> does _not_ kill the executable, it only returns a null file handle.
> When we use the exact same code on an SGI the shared library is opened
> and everything works fine.
The big question is, what "-ignore_unresolved" really does.
Each dynamic library has a "dependency list".
Maybe "-ignore_unresolved" doesn't create dependency entries under Linux.
This may cause runtime-linking to fail.
Try "-export-dynamic"
[man 1 ld ....]
-export-dynamic
When creating an ELF file, add all symbols to the
dynamic symbol table. Normally, the dynamic symbol
table contains only symbols which are used by a dy-
namic object. This option is needed for some uses
of dlopen.
Hope it helps.
--
ciao -
Stefan
Stefan Traby phone: +43-3133-6107-2
Mitterlasznitzstr. 13 fax: +43-3133-6107-9
8302 Nestelbach mailto://stefan@sime.com
Austria