Symbols relocatable using dlopen?

Marcus Clyne maccaday@gmail.com
Fri Aug 28 15:06:00 GMT 2009


Ian Lance Taylor wrote:
> Alan Modra <amodra@bigpond.net.au> writes:
>
>   
>> On Fri, Aug 28, 2009 at 12:58:06PM +0300, Marcus Clyne wrote:
>>     
>>> I have a function my_print () defined in my program, but in calling  
>>> dlopen() I get the following error:
>>>
>>> undefined symbol: my_print
>>>       
>> my_print is likely not a dynamic symbol.  You can check with nm -D.
>> There are a number of ways to make sure it is dynamic, eg. link
>> your program against your dlopen'd shared lib with --no-add-needed,
>> or use --dynamic-list.
>>     
>
> Or link your main program with --export-dynamic.
>
>   
Thanks.

Marcus.




More information about the Binutils mailing list