This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Symbols relocatable using dlopen?
On Fri, Aug 28, 2009 at 03:04:56PM +0300, Marcus Clyne wrote:
> my_print isn't a dynamic symbol in the program.
> Am I right in understanding that you mean that if I make the symbol
> dynamic in the main program, then it will be relocatable in the shared
> object when it's loaded, but if it's static, then it won't be?
Yes. If my_print is not dynamic, it is not available to the dynamic
loader to resolve references.
> I've looked in the man pages and online for the syntax for
> --dynamic-list files, but haven't found it yet. Do you know what the
> format for the dynamic list files is?
The ld info doc says: "The format of the dynamic list is the same as
the version node without scope and node name." Also see examples in
ld/testsuite/ld-elf.
--
Alan Modra
Australia Development Lab, IBM