Etymon

Tuesday, September 08, 2009

ldd equivalent under Darwin (OS X)

ldd is an incredibly useful command under linux. It lists the shared-libraries required by an executable, and exactly which .so file each dependency is currently resolved to.

A similarly useful tool is od, which permits inspection of object files, especially executable and shared-libraries, extracting things like the string-table, symbol-table, and various headers and sections.

Under Darwin these tools are combined in otool. ldd can be duplicated by otool -L.

4 Comments:

  • Since every other unix of importance already has ldd, wouldn't it have been more sensible of them to also have an ldd?

    By Blogger TimC, at 1:47 pm, September 08, 2009  

  • I've done C development under several unixes, and their binary toolchains are wide and varied. In my experience ldd is far from universal, and identifying which tools are available on your specific unix is one of the quirks of shifting platform.

    I'm not bothered by it, this wasn't a complaint. I just wanted to capture this piece of info for my own benefit, and made it public on the off chance it might help someone else.

    By Blogger Andrae Muys, at 10:05 am, September 16, 2009  

  • It helped me. Thanks for posting!

    By Blogger faldridge, at 6:09 am, October 17, 2010  

  • It is not enough that the bookworms basically comprehend the account, it ought to be captivating enough that stated http://www.bestcustomessay.org/essay-writing.

    By Blogger ADmin, at 7:25 am, March 14, 2013  

Post a Comment

<< Home