|
|
Subscribe / Log in / New account

Identifying dependencies used via dlopen()

Identifying dependencies used via dlopen()

Posted Apr 24, 2024 9:11 UTC (Wed) by farnz (subscriber, #17727)
In reply to: Identifying dependencies used via dlopen() by Cyberax
Parent article: Identifying dependencies used via dlopen()

I was referring not to dlopen, but to libraries that are lazily linked in to the binary via Mach-O dynamic linking; at the first use of a symbol from the library, the library's deferred dynamic initialization code is run.


to post comments

Identifying dependencies used via dlopen()

Posted Apr 24, 2024 11:00 UTC (Wed) by Cyberax (✭ supporter ✭, #52523) [Link]

I tried it for a while and couldn't get it to work. I went down the rabbit hole of reading the source code of reading the LDD code before finding this:

https://developer.apple.com/forums/thread/131252

> That feature has been removed from the linker. The only work around is to not link with library and instead dlopen() it at runtime and then use dlsym() to find the functions you want from it.

So yes, it's was a horrible feature that was barely used. So Apple did the right thing and removed it.


Copyright © 2025, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds