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]

Re: Add link library at runtime?


On 17 Nov 2015 19:54, Andrew Bell wrote:
> Not exactly a binutils question, but perhaps you can help?

you probably want to use the libc-help mailing list for such questions:
	https://www.gnu.org/software/libc/development.html

> I'm calling dlopen() on a library A.so that references an undefined symbol
> Foo.  Foo is defined in B.so, but A.so is not linked with B.so (not a
> dependency).  Can I somehow force resolution of Foo in A.so at runtime
> by providing B.so?

just do:
	dlopen("B.so", RTLD_GLOBAL)
-mike

Attachment: signature.asc
Description: Digital signature


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