Symbols relocatable using dlopen?

Marcus Clyne maccaday@gmail.com
Fri Aug 28 12:05:00 GMT 2009


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.



More information about the Binutils mailing list