This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Symbols relocatable using dlopen?
- From: Marcus Clyne <maccaday at gmail dot com>
- To: binutils at sourceware dot org
- Date: Fri, 28 Aug 2009 12:58:06 +0300
- Subject: Symbols relocatable using dlopen?
Hi,
From the reading I've done, I thought that calling dlopen() allowed for
the relocating of symbols including those in the calling process.
I have a function my_print () defined in my program, but in calling
dlopen() I get the following error:
undefined symbol: my_print
This is true for all combinations of RTLD_LAZY/NOW/LOCAL/GLOBAL.
Is this normal? Do I explicitly need to add linker information to a
separate shared object that contains the my_print() function if I don't
want to include it in my shared object?
Thanks in advance for any responses,
Marcus.