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.

17 comments:

Tim Connors said...

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

Andrae Muys said...

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.

Unknown said...

It helped me. Thanks for posting!

Unknown said...

Everyone here has the sense that right now is one of those moments when we are influencing the future.
Electrician Marbella

James said...

What I wouldn’t give to learn how you got your design to be so amazing ! I mean it. Besides the blog just being awesome, this page is too sweet !
schifffonds

Tutors in USA said...

Very nice and useful information. Why not write a book about this particular subject. For today’s economic variation and be short of of opportunities, it actually will be a very hot topic. Thanks a lot
Trap

Unknown said...

Thanks for sharing. Learn a lot from your Blog.I really enjoyed reading it, you may be a great author.I must say you've done a wonderful job by sharing your article with us. XPS Analysis

Unknown said...

Nice Blog! Thanks for sharing. Blackbox penetration testing

Unknown said...

Nice Blog! Really i am impressed from this post.Chiropractic care is one of best ways to get rid of any kind of body pain and increase muscles strength.Thanks again for posting such great reading material!! To get new information visit here Headache Treatment Perth.

Unknown said...

Nice Post,Thanks for Sharing me.Isabella's Salon provide top quality services for their customers. They offer a full line of services, including cuts and hair coloring for men and women.Greenwood Village Salons use professional products to achieve the most stylish looks.

Unknown said...

Thanks for sharing. Learn a lot from your Blog.I have read your blog It is very help full.I really enjoyed reading it, you may be a great author.I must say you've done a wonderful job by sharing your article with us. IT Support Bath

jhoney said...

The problem with beauty is that it's like being born rich and getting poorer.
Ativan Online

Dickster said...

As a creature of habit, I found it earier to create an alias:

alias ldd='otool -L'

jhoney said...

When virtue and modesty enlighten her charms, the lustre of a beautiful woman is brighter than the stars of heaven, and the influence of her power it is in vain to resist.
Injury Lawyers Sutton

jhoney said...

When everything else physical and mental seems to diminish, the appreciation of beauty is on the increase.
valium no prescription online

jhoney said...

The pursuit of truth and beauty is a sphere of activity in which we are permitted to remain children all our lives.
Phentermine Online

Unknown said...

I am certain that the data you imparted through your post is valuable for individuals. I am inspired with the method for stage. It kept joined me constantly. Keep doing awesome.

Visit : Accredited GED Diploma Online