This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]